Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
84 changes: 84 additions & 0 deletions .github/workflows/build-sakura.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,84 @@
name: build sakura

# Controls when the action will run. Triggers the workflow on push or pull request
# events but only for the master branch
on:
push:
branches:
- master
- feature/*
paths-ignore:
- '*.md'
- .gitignore
- .editorconfig
- appveyor.yml
- 'azure-pipelines*.yml'
- 'ci/azure-pipelines/template*.yml'
- '.github/*.md'
- '.github/ISSUE_TEMPLATE/*.md'

pull_request:
branches:
- master
- feature/*
- release/*
paths-ignore:
- '*.md'
- .gitignore
- .editorconfig
- appveyor.yml
- 'azure-pipelines*.yml'
- 'ci/azure-pipelines/template*.yml'
- '.github/*.md'
- '.github/ISSUE_TEMPLATE/*.md'

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
build:
# The type of runner that the job will run on
name: MSBuild
runs-on: windows-latest

strategy:
matrix:
config:
- Debug
- Release
platform:
- Win32
- x64

# Steps represent a sequence of tasks that will be executed as part of the job
steps:
## see https://github.com/actions/checkout
- uses: actions/checkout@v2
Copy link
Member Author

@m-tmatma m-tmatma May 3, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

メモ

actions/checkouthttps://github.com/actions/checkout でソースが公開されている GitHub 純正の GitHub Action です。ソースを checkout します。

@v2 というのは actions/checkout のバージョンです。

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

雑談

「謹製」に関して
https://suzumi-ya.com/epub/post-990/


## see https://github.com/microsoft/setup-msbuild
- name: Add msbuild to PATH
uses: microsoft/[email protected]
Copy link
Member Author

@m-tmatma m-tmatma May 3, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

現状では msbuild に対してバージョン指定してないので Visual studio 2019 が使われる

https://github.com/microsoft/setup-msbuild
の markdown 参照


- name: MSBuild
run: build-sln.bat ${{ matrix.platform }} ${{ matrix.config }}
shell: cmd

## #922 のため無効化
#
#- name: Build HTML Help
# run: build-chm.bat
# shell: cmd
#
#- name: Build installer with Inno Setup
# run: build-installer.bat ${{ matrix.platform }} ${{ matrix.config }}
# shell: cmd

- name: zipArtifacts
run: zipArtifacts.bat ${{ matrix.platform }} ${{ matrix.config }}
shell: cmd

## see https://github.com/actions/upload-artifact
- name: Upload
uses: actions/upload-artifact@v2
with:
name: exe ${{ matrix.platform }} ${{ matrix.config }}
path: '*.zip'
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

メモ

パス名の部分で wildcard が使えるのは actions/upload-artifact@v2 以降。
actions/upload-artifact@v1 では使えなくて悩んだ。

1 change: 1 addition & 0 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ skip_commits:
- 'ci/azure-pipelines/template*.yml'
- '.github/*.md'
- '.github/ISSUE_TEMPLATE/*.md'
- '.github/workflows/*.yml'

install:
- cmd: |
Expand Down
1 change: 1 addition & 0 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ trigger:
- "*.md"
- .github/*.md
- .github/ISSUE_TEMPLATE/*.md
- .github/workflows/*.yml
- .gitignore
- .travis.yml
- appveyor.yml
Expand Down