This repository has been archived by the owner on Jun 7, 2024. It is now read-only.
Pipeline #26
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: Maintenance checks | |
on: | |
pull_request: | |
paths: | |
- '.github/workflows/**' | |
- 'src/**' | |
- 'include/**' | |
- 'Makefile' | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
# Don't fail on empty include (not tracked by git) | |
- run: if ! [ -d include ]; then mkdir include; fi | |
- run: make | |
format: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
# clang-format doesn't come with act's local images. This is just for testing, as | |
# scripts contain | |
- run: if [ -n "$ACT" ]; then apt update && apt -y install clang-format; fi | |
# Don't fail on empty include (not tracked by git) | |
- run: if ! [ -d include ]; then mkdir include; fi | |
- run: ./scripts/format.sh --check |