refactor (for qtils) #694
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: CI | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
branches: | |
- master | |
jobs: | |
MacOS: | |
runs-on: macos-14 | |
steps: | |
- uses: actions/checkout@dc323e67f16fb5f7663d20ff7941f27f5809e9b6 | |
- name: install | |
run: | | |
python3 -m pip install --upgrade pip | |
python3 -m pip install scikit-build | |
python3 -m pip install cmake==3.25 requests gitpython gcovr | |
brew install ninja | |
- name: cmake | |
env: | |
CURL_SSL_BACKEND: SecureTransport | |
run: cmake -G Ninja -B build . | |
- name: build | |
run: cmake --build build -- -j4 | |
- name: test | |
env: | |
CTEST_OUTPUT_ON_FAILURE: 1 | |
run: cmake --build build --target test | |
Linux: | |
runs-on: ubuntu-latest | |
container: qdrvm/kagome-dev@sha256:2d70246c32418a3dd45c246d3f5c2dd99bdafde145b903271849affe476c4cfc | |
strategy: | |
fail-fast: false | |
matrix: | |
compiler: [{ | |
"cc": "gcc", | |
"cxx": "g++" | |
}, { | |
"cc": "clang", | |
"cxx": "clang++" | |
}] | |
steps: | |
- name: venv | |
run: ./housekeeping/github_venv.sh | |
- uses: actions/checkout@dc323e67f16fb5f7663d20ff7941f27f5809e9b6 | |
- name: cmake | |
env: | |
CC: ${{ matrix.compiler.cc }} | |
CXX: ${{ matrix.compiler.cxx }} | |
shell: bash | |
run: cmake -B build . | |
- name: build | |
run: cmake --build build -- -j4 | |
- name: test | |
env: | |
CTEST_OUTPUT_ON_FAILURE: 1 | |
run: cmake --build build --target test |