-
Notifications
You must be signed in to change notification settings - Fork 23
56 lines (53 loc) · 1.37 KB
/
build.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
# Build and run tests on the baseline platform
name: build
on:
push:
branches: master
pull_request:
branches: master
jobs:
build:
name: Build and test
runs-on: ubuntu-latest
strategy:
matrix:
include:
- BUILD_TYPE: Release
BUILD_FAST: OFF
BASH_PLATFORM: BASH_64
CC: gcc
- BUILD_TYPE: Check
BUILD_FAST: OFF
BASH_PLATFORM: BASH_SSE2
CC: gcc
- BUILD_TYPE: ASan
BUILD_FAST: OFF
BASH_PLATFORM: BASH_32
CC: gcc
- BUILD_TYPE: MemSan
BUILD_FAST: ON
BASH_PLATFORM: BASH_AVX2
CC: clang
- BUILD_TYPE: Debug
BUILD_FAST: ON
BASH_PLATFORM: BASH_64
CC: clang
steps:
- name: Get source
uses: actions/checkout@v3
- name: Configure CMake
run: >
CC=${{matrix.CC}} cmake
-B ${{github.workspace}}/build
-DCMAKE_BUILD_TYPE=${{matrix.BUILD_TYPE}}
-DBUILD_FAST=${{matrix.BUILD_FAST}}
-DBASH_PLATFORM=${{matrix.BASH_PLATFORM}}
- name: Build
run: cmake --build ${{github.workspace}}/build
- name: Test
working-directory: ${{github.workspace}}/build
run: ctest --verbose
- name: Test bee2cmd
working-directory: ${{github.workspace}}/build/cmd
run: ../../cmd/test/test.sh
shell: bash