Skip to content

Commit 5465c5d

Browse files
committed
CI: HOL-Light: ensure necessary theorems are proven
Add the check-theorems script to the HOL-Light CI action. Fail the CI if any of the required proofs are not present. Signed-off-by: Andreas Hatziiliou andreas.hatziiliou@savoirfairelinux.com
1 parent e42abce commit 5465c5d

1 file changed

Lines changed: 26 additions & 0 deletions

File tree

.github/workflows/hol_light.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,12 +39,37 @@ concurrency:
3939
cancel-in-progress: true
4040

4141
jobs:
42+
# Check that all proofs provide the expected theorems.
43+
hol_light_check_structure:
44+
strategy:
45+
fail-fast: true
46+
matrix:
47+
arch: [aarch64, x86_64]
48+
include:
49+
- arch: aarch64
50+
runs-on: pqcp-arm64
51+
- arch: x86_64
52+
runs-on: pqcp-x64
53+
name: HOL-Light theorem structure check for ${{ matrix.arch }}
54+
runs-on: ${{ matrix.runs-on }}
55+
if: github.repository_owner == 'pq-code-package' && !github.event.pull_request.head.repo.fork
56+
steps:
57+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
58+
with:
59+
fetch-depth: 0
60+
- uses: ./.github/actions/setup-shell
61+
with:
62+
gh_token: ${{ secrets.GITHUB_TOKEN }}
63+
nix-shell: 'hol_light'
64+
script: |
65+
scripts/check-theorems ${{ matrix.arch }}
4266
# The proofs also check that the byte code is up to date,
4367
# but we use this as a fast path to not even start the proofs
4468
# if the byte code needs updating.
4569
hol_light_bytecode:
4670
name: AArch64 HOL-Light bytecode check
4771
runs-on: pqcp-arm64
72+
needs: [ hol_light_check_structure ]
4873
if: github.repository_owner == 'pq-code-package' && !github.event.pull_request.head.repo.fork
4974
steps:
5075
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
@@ -153,6 +178,7 @@ jobs:
153178
hol_light_bytecode_x86_64:
154179
name: x86_64 HOL-Light bytecode check
155180
runs-on: pqcp-x64
181+
needs: [ hol_light_check_structure ]
156182
if: github.repository_owner == 'pq-code-package' && !github.event.pull_request.head.repo.fork
157183
steps:
158184
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2

0 commit comments

Comments
 (0)