Bump actions/download-artifact from 2 to 4.1.7 in /.github/workflows #512
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-focal-clang | |
on: [push, pull_request] | |
jobs: | |
configure: | |
runs-on: ubuntu-latest | |
container: | |
image: pasbi/ommpfritt-focal | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
path: omm | |
- run: cmake -S omm | |
-B omm-build | |
-GNinja | |
-DCMAKE_BUILD_TYPE=Release | |
-DCMAKE_PREFIX_PATH="${QT_PREFIX}" | |
-DBUILD_TESTING=ON | |
-DCMAKE_EXPORT_COMPILE_COMMANDS=ON | |
-DCMAKE_CXX_COMPILER=clang++ | |
-DCMAKE_C_COMPILER=clang | |
- uses: actions/upload-artifact@v2 | |
with: | |
name: configure | |
path: omm-build | |
build: | |
needs: configure | |
runs-on: ubuntu-latest | |
container: | |
image: pasbi/ommpfritt-focal | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
path: omm | |
- uses: actions/download-artifact@v4.1.7 | |
with: | |
name: configure | |
path: omm-build | |
- run: cmake --build omm-build --config Release -j4 | |
- run: tar -cvf omm-build.tar omm-build | |
- uses: actions/upload-artifact@v2 | |
with: | |
name: build | |
path: omm-build.tar | |
clazy: | |
runs-on: ubuntu-latest | |
container: | |
image: pasbi/ommpfritt-focal | |
needs: configure | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
path: omm | |
fetch-depth: 0 | |
- run: cd omm; current=$(git branch --show-current); git checkout main; git checkout $current; | |
- uses: actions/download-artifact@v4.1.7 | |
with: | |
name: configure | |
path: omm-build | |
- run: | | |
cd omm | |
files="$(build-scripts/files.py --mode changed)" | |
cmake --build ../omm-build --config Release -j4 --target libommpfritt_autogen | |
if [ -z "$files" ]; then | |
echo "Skip clazy: No relevant files have changed." | |
else | |
clazy --standalone -p ../omm-build --ignore-included-files $files --checks "$(build-scripts/list-clazy-checks.py)" | |
fi | |
clang-tidy: | |
runs-on: ubuntu-latest | |
container: | |
image: pasbi/ommpfritt-focal | |
needs: configure | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
path: omm | |
fetch-depth: 0 | |
- run: cd omm; current=$(git branch --show-current); git checkout main; git checkout $current; | |
- uses: actions/download-artifact@v4.1.7 | |
with: | |
name: configure | |
path: omm-build | |
- run: | | |
cd omm | |
cmake --build ../omm-build --config Release -j4 --target libommpfritt_autogen | |
files="$(build-scripts/files.py --mode changed)" | |
if [ -z "$files" ]; then | |
echo "Skip clang-tidy: No relevant files have changed." | |
else | |
clang-tidy -p ../omm-build $files | |
fi | |
unit-tests: | |
runs-on: ubuntu-latest | |
container: | |
image: pasbi/ommpfritt-focal | |
needs: build | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
path: omm | |
- uses: actions/download-artifact@v4.1.7 | |
with: | |
name: build | |
- run: tar -xf omm-build.tar | |
- env: | |
HAVE_OPENGL: 1 | |
run: xvfb-run ctest --test-dir omm-build --output-on-failure --no-tests=error |