-
Notifications
You must be signed in to change notification settings - Fork 34
45 lines (39 loc) · 1.22 KB
/
build.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
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=x86-64-v3 COMP=gcc OS=linux
build_shell: bash
- os: windows-latest
build_command: |
call "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Auxiliary\Build\vcvars64.bat"
nmake -fnmakefile vc-x64
build_shell: cmd
- os: macos-latest
build_command: make build ARCH=armv8.5-a COMP=gcc OS=osx
build_shell: bash
steps:
- uses: actions/checkout@v2
- name: build
run: |-
mkdir -p bin
cd src
${{ matrix.build_command }}
shell: ${{ matrix.build_shell }}
- uses: actions/upload-artifact@v4
with:
name: artifact_${{ runner.os }}
path: bin