Merge pull request #477 from IFCjs/fixes #657
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |