-
Notifications
You must be signed in to change notification settings - Fork 205
35 lines (30 loc) · 1.1 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
name: Build
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
runs-on: ${{matrix.os-type}}
strategy:
matrix:
os-type: [ubuntu-latest]
configuration: [Debug, Release, RelWithDebInfo]
steps:
- uses: actions/checkout@v2
- name: Install
run: |
sudo apt update
sudo apt install gcc-13 g++-13
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-13 100 --slave /usr/bin/g++ g++ /usr/bin/g++-13 --slave /usr/bin/gcov gcov /usr/bin/gcov-13
sudo update-alternatives --set gcc /usr/bin/gcc-13
- name: Configure
working-directory: ${{github.workspace}}/src/wasm
run: cmake -B ${{github.workspace}}/src/wasm/Build -DCMAKE_BUILD_TYPE=${{matrix.configuration}}
- name: Build
working-directory: ${{github.workspace}}/src/wasm
run: cmake --build ${{github.workspace}}/src/wasm/Build --config ${{matrix.configuration}}
- name: Test
working-directory: ${{github.workspace}}/src/wasm/Build
run: ctest -VV -C ${{matrix.configuration}} -L web-ifc