forked from abulmo/edax-reversi
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4d1d323
commit 7944953
Showing
1 changed file
with
38 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
name: build | ||
|
||
on: | ||
pull_request: | ||
paths: ['src/**', 'include/**', '.github/workflows/build.yaml'] | ||
push: | ||
branches: [ master ] | ||
paths: ['src/**', 'include/**', '.github/workflows/build.yaml'] | ||
|
||
jobs: | ||
build: | ||
runs-on: ${{ matrix.os }} | ||
timeout-minutes: 10 | ||
strategy: | ||
fail-fast: false # We want results from all OSes even if one fails. | ||
matrix: | ||
os: [ubuntu-latest, windows-latest, macos-latest] | ||
include: | ||
- os: ubuntu-latest | ||
build_command: make build ARCH=x64-modern COMP=gcc OS=linux | ||
- os: windows-latest | ||
build_command: make build ARCH=x64 COMP=gcc OS=windows | ||
- os: macos-latest | ||
build_command: make build ARCH=x64-modern COMP=gcc OS=osx | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: build | ||
run: |- | ||
mkdir -p bin | ||
cd src | ||
${{ matrix.build_command }} | ||
- uses: actions/upload-artifact@v2 | ||
with: | ||
name: artifact_${{ runner.os }} | ||
path: bin |