Merge pull request #384 from Nadrieril/ci #1606
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
on: | |
# Run the checks on any push to any branch of the repo that doesn't start with `_`. | |
push: | |
branches: | |
- main | |
# Run the check for any pull request. The check is run on a merge between the | |
# PR commit and the `main` branch at the time of running the check. | |
pull_request: | |
# Runs the check when a PR is added to the merge queue. | |
merge_group: | |
# Makes it possible to run the forkflow by hand from GItHub's interface. | |
workflow_dispatch: | |
# Cancel previous versions of this job that are still running. | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | |
cancel-in-progress: true | |
jobs: | |
nix: | |
#runs-on: ubuntu-latest | |
runs-on: [self-hosted, linux, nix] | |
steps: | |
- uses: actions/checkout@v4 | |
- run: nix build -L .#checks.x86_64-linux.aeneas-check-tidiness | |
- run: nix build -L .#checks.x86_64-linux.check-charon-pin | |
- run: nix build -L .#aeneas | |
- run: nix build -L .#checks.x86_64-linux.default | |
lean: | |
runs-on: [self-hosted, linux, nix] | |
steps: | |
# Lean cannot run its tests in the sandbox because `elan` will download things | |
- uses: actions/checkout@v4 | |
- run: nix develop --command bash -c "cd tests/lean && make" | |
charon-pin-is-forward: | |
runs-on: [self-hosted, linux, nix] | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 # deep clone in order to get access to other commits | |
- run: nix develop --command ./scripts/ci-check-charon-pin-is-forward.sh | |
charon-pin-is-merged: | |
runs-on: [self-hosted, linux, nix] | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 # deep clone in order to get access to other commits | |
- run: nix develop --command ./scripts/ci-check-charon-pin-is-merged.sh | |
userdocs: | |
runs-on: [self-hosted, linux, nix] | |
steps: | |
- uses: actions/checkout@v4 | |
- run: nix build '.?dir=docs/user'#book | |
# TODO: test the Lean examples code via nix build '.?dir=docs/user'#test or something similar. |