chore: add infer.yml
#352
Workflow file for this run
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: ubuntu_build | |
'on': | |
workflow_dispatch: | |
push: | |
branches: | |
- master | |
pull_request: | |
schedule: | |
- cron: '15 3 * * 4' | |
env: | |
build_path: ${{github.workspace}}/build | |
jobs: | |
build: | |
runs-on: ${{matrix.os}} | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [ubuntu-22.04] | |
compiler: | |
- g++-10 | |
- g++-11 | |
- clang++-10 | |
- clang++-12 | |
exclude: | |
- os: ubuntu-22.04 | |
compiler: clang++-10 | |
build_type: [Release, Debug] | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Install ${{matrix.compiler}} | |
run: | | |
sudo apt-get update | |
sudo apt-get install ${{matrix.compiler}} | |
- name: Display versions | |
run: | | |
${{matrix.compiler}} --version | |
cmake --version | |
- name: Install boost | |
run: | | |
sudo apt-get install libboost-all-dev | |
- name: Display boost version | |
run: | | |
dpkg -s libboost-dev | grep Version | |
- name: Create Build Environment | |
run: cmake -E make_directory ${{env.build_path}} | |
- name: Configure CMake | |
working-directory: ${{env.build_path}} | |
run: > | |
cmake ../ | |
-D CMAKE_BUILD_TYPE=${{matrix.build_type}} | |
-D CMAKE_CXX_COMPILER=${{matrix.compiler}} | |
- name: Build with ${{matrix.compiler}} | |
working-directory: ${{env.build_path}} | |
run: cmake --build . --config ${{matrix.build_type}} | |
- name: Test | |
working-directory: ${{env.build_path}} | |
run: ctest -C ${{matrix.build_type}} | |
... |