Skip to content

Commit

Permalink
Merge pull request #1259 from m-tmatma/feature/introduce-github-actio…
Browse files Browse the repository at this point in the history
…ns-sakura-build

sakura editor のビルド用の GitHub Actions を導入する
  • Loading branch information
m-tmatma authored May 3, 2020
2 parents d2a5a15 + c8d2253 commit 2c77cc7
Show file tree
Hide file tree
Showing 3 changed files with 86 additions and 0 deletions.
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

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

- 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'
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

0 comments on commit 2c77cc7

Please sign in to comment.