-
Notifications
You must be signed in to change notification settings - Fork 176
sakura editor のビルド用の GitHub Actions を導入する #1259
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
8d1c95c
923992e
9ae4f5e
72bcb28
331543f
c8d2253
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| 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 | ||
|
|
||
| ## see https://github.com/microsoft/setup-msbuild | ||
| - name: Add msbuild to PATH | ||
| uses: microsoft/[email protected] | ||
|
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 現状では msbuild に対してバージョン指定してないので Visual studio 2019 が使われる https://github.com/microsoft/setup-msbuild |
||
|
|
||
| - 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' | ||
|
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. メモ パス名の部分で wildcard が使えるのは |
||
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
メモ
actions/checkoutは https://github.com/actions/checkout でソースが公開されている GitHub 純正の GitHub Action です。ソースを checkout します。@v2というのはactions/checkoutのバージョンです。There was a problem hiding this comment.
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/