-
Notifications
You must be signed in to change notification settings - Fork 5
68 lines (55 loc) · 1.91 KB
/
build-pr.yml
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
name: Test Runner
on:
pull_request:
branches:
- main
jobs:
build_tests:
name: Test ${{ matrix.name }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
include:
- os: ubuntu-latest
name: linux
runTest: true
testExe: build/tests/sst-waveshapers-tests
- os: macos-latest
name: mac-x86
runTest: true
testExe: build/tests/sst-waveshapers-tests
cmakeArgs: -DCMAKE_OSX_ARCHITECTURES=x86_64
- os: macos-latest
name: mac-arm
cmakeArgs: -DCMAKE_OSX_ARCHITECTURES=arm64
- os: macos-latest
name: mac-arm-nonative
cmakeArgs: -DCMAKE_OSX_ARCHITECTURES=arm64 -DSST_BASIC_BLOCKS_SIMD_OMIT_NATIVE_ALIASES=TRUE
- os: windows-latest
name: win-x86
runTest: true
testExe: build/tests/Release/sst-waveshapers-tests.exe
- os: windows-latest
name: win-arm64
cmakeArgs: -G"Visual Studio 17 2022" -A arm64 -DCMAKE_SYSTEM_VERSION=10
- os: windows-latest
name: win-arm64ec
cmakeArgs: -G"Visual Studio 17 2022" -A arm64ec -DCMAKE_SYSTEM_VERSION=10
- os: windows-latest
name: win-arm64-non-native
cmakeArgs: -G"Visual Studio 17 2022" -A arm64 -DCMAKE_SYSTEM_VERSION=10 -DSST_BASIC_BLOCKS_SIMD_OMIT_NATIVE_ALIASES=TRUE
steps:
- name: Checkout code
uses: actions/checkout@v2
with:
submodules: recursive
- name: Build Smoke test
run: |
cmake -S . -B ./build -DCMAKE_BUILD_TYPE=Release -DSST_WAVESHAPERS_BUILD_TESTS=TRUE ${{ matrix.cmakeArgs }}
cmake --build ./build --config Release
- name: Run Smoke Test
if: ${{ matrix.runTest }}
run: |
ls ${{ matrix.testExe }}
${{ matrix.testExe }}