Update actions/checkout action to v4 #29
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: Build | |
on: | |
push: | |
branches: | |
- master | |
# Run tests for any PRs. | |
pull_request: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4 | |
# Set timezone so we can assume the tests getting age will work. | |
- name: Setup timezone | |
uses: zcong1993/setup-timezone@master | |
with: | |
timezone: Europe/Stockholm | |
- name: cmake | |
run: | | |
cmake \ | |
--no-warn-unused-cli \ | |
-DCMAKE_EXPORT_COMPILE_COMMANDS:BOOL=TRUE \ | |
-DCMAKE_BUILD_TYPE:STRING=Debug \ | |
-DCMAKE_C_COMPILER:FILEPATH=/usr/bin/clang \ | |
-DCMAKE_CXX_COMPILER:FILEPATH=/usr/bin/clang++ \ | |
-DWITH_TEST=1 \ | |
-H$GITHUB_WORKSPACE \ | |
-B$GITHUB_WORKSPACE/build | |
- name: cmake build | |
run: | | |
cmake \ | |
--build $GITHUB_WORKSPACE/build \ | |
--config Debug \ | |
--target all \ | |
-- \ | |
-j 10 | |
- name: run tests | |
run: $GITHUB_WORKSPACE/build/test/unittest |