Bump jwlawson/actions-setup-cmake from 1.14 to 2.0 #170
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: | |
pull_request: | |
push: | |
branches: | |
- gh-pages | |
jobs: | |
pre-commit: | |
name: Format | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-python@v5 | |
- uses: pre-commit/[email protected] | |
test: | |
name: Test | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: jwlawson/[email protected] | |
with: | |
cmake-version: "3.15" | |
- name: Install boost | |
run: | | |
sudo apt-get update | |
sudo apt-get install -y libboost-dev | |
- name: 00-intro | |
run: | | |
cp _includes/code/00-intro/CMakeLists.txt code/00-intro | |
cmake -S code/00-intro -B build-00-intro | |
cmake --build build-00-intro | |
./build-00-intro/simple_example | |
- name: 01-simple | |
run: | | |
cp _includes/code/01-simple/CMakeLists.txt code/01-simple | |
cmake -S code/01-simple -B build-01-simple | |
cmake --build build-01-simple | |
./build-01-simple/simple_example | |
- name: 03-structure | |
run: | | |
cmake -S code/03-structure -B build-03-structure | |
cmake --build build-03-structure | |
./build-03-structure/apps/app | |
./build-03-structure/tests/testlib | |
cmake --build build-03-structure --target test | |
root-test: | |
name: ROOT Test | |
runs-on: ubuntu-latest | |
container: rootproject/root:latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Build 05a-root | |
run: | | |
cmake -S code/05a-root -B build-05a-root | |
cmake --build build-05a-root | |
- name: Test 05a-root | |
run: root -b -q -x ../code/05a-root/CheckLoad.C | |
working-directory: build-05a-root | |
- name: Build 05b-root | |
run: | | |
cmake -S code/05b-root -B build-05b-root | |
cmake --build build-05b-root | |
- name: Test 05b-root | |
run: root -b -q -x ../code/05b-root/CheckLoad.C | |
working-directory: build-05b-root |