-
Notifications
You must be signed in to change notification settings - Fork 5
69 lines (60 loc) · 1.75 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: PR
on:
pull_request:
branches:
- main
jobs:
build_test:
name: Test ${{ matrix.name }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
include:
- os: ubuntu-latest
name: linux
- os: macos-latest
name: mac
- os: windows-latest
name: win
steps:
- name: Checkout code
uses: actions/checkout@v2
with:
submodules: recursive
- name: Build Tests
run: |
cmake -S . -B ./build -DCMAKE_BUILD_TYPE=Release -DSST_PLUGININFRA_PROVIDE_MINIZ=TRUE -DSST_PLUGININFRA_BUILD_TESTS=TRUE
cmake --build ./build --target sst-all-tests
- name: Run Test
run: |
pushd ./build/test-binary
./sst-plugininfra-tests
./sst-tixml-tests
./dumppaths
build_fs_test:
name: FS Test ${{ matrix.name }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
include:
- os: ubuntu-latest
name: linux-ghc
cmakeFS: -DSST_PLUGININFRA_FILESYSTEM_FORCE_GHC=ON
- os: macos-latest
name: mac-ghc
cmakeFS: -DSST_PLUGININFRA_FILESYSTEM_FORCE_GHC=ON
- os: ubuntu-latest
name: linux-native
cmakeFS: -DSST_PLUGININFRA_FILESYSTEM_FORCE_PLATFORM=ON
- os: macos-latest
name: mac-native
cmakeFS: -DSST_PLUGININFRA_FILESYSTEM_FORCE_PLATFORM=ON
steps:
- name: Checkout code
uses: actions/checkout@v2
with:
submodules: recursive
- name: Build Library
run: |
cmake -S . -B ./build -DCMAKE_BUILD_TYPE=Debug -DSST_PLUGININFRA_PROVIDE_MINIZ=TRUE ${{ matrix.cmakeFS }}
cmake --build ./build