Repository navigation
149 lines (139 loc) · 6.83 KB
/
Copy pathagda.yml
File metadata and controls
149 lines (139 loc) · 6.83 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
# SPDX-License-Identifier: MPL-2.0
name: Agda
on:
push:
branches: [main, master]
pull_request:
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
permissions:
contents: read
jobs:
check:
runs-on: ubuntu-24.04
timeout-minutes: 30
steps:
- name: Checkout
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- name: Kernel certificate and module classification
run: sh scripts/kernel-guard.sh
- name: Experimental aggregate coverage
run: |
bash scripts/check-experimental-aggregate.sh
bash scripts/test-experimental-aggregate.sh
- name: Agda invocation profiles
run: sh scripts/check-agda-invocations.sh
- name: Foundation guardrail
run: bash tools/check-guardrails.sh proofs/agda
- name: Install checksum-pinned Agda 2.7.0.1 and pinned libraries
run: bash scripts/setup-agda.sh
- name: Cache interface files for this compiler and dependency set
uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0
with:
path: |
${{ runner.temp }}/echo-agda/**/*.agdai
proofs/agda/**/*.agdai
key: agdai-${{ runner.os }}-2.7.0.1-stdlib8326c747-abszf486c299-${{ hashFiles('proofs/agda/**/*.agda') }}
restore-keys: |
agdai-${{ runner.os }}-2.7.0.1-stdlib8326c747-abszf486c299-
- name: Typecheck shipped closure and headlines
run: |
agda --no-libraries -i "$AGDA_STDLIB" -i "$ABSOLUTE_ZERO_AGDA" --safe --without-K --cubical-compatible -i proofs/agda proofs/agda/All.agda
agda --no-libraries -i "$AGDA_STDLIB" -i "$ABSOLUTE_ZERO_AGDA" --safe --without-K --cubical-compatible -i proofs/agda proofs/agda/Smoke.agda
agda --no-libraries -i "$AGDA_STDLIB" -i "$ABSOLUTE_ZERO_AGDA" --safe --without-K --cubical-compatible -i proofs/agda proofs/agda/AuditSmoke.agda
agda --no-libraries -i "$AGDA_STDLIB" -i "$ABSOLUTE_ZERO_AGDA" --safe --without-K --cubical-compatible -i proofs/agda proofs/agda/characteristic/All.agda
agda --no-libraries -i "$AGDA_STDLIB" -i "$ABSOLUTE_ZERO_AGDA" --safe --without-K --cubical-compatible -i proofs/agda proofs/agda/examples/All.agda
cold-check:
# A separate runner and no restored interfaces: cached success never
# substitutes for checking the shipped source with the pinned compiler.
runs-on: ubuntu-24.04
timeout-minutes: 30
steps:
- name: Checkout
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- name: Install checksum-pinned Agda 2.7.0.1 and pinned libraries
run: bash scripts/setup-agda.sh
- name: Cold typecheck shipped closure and headlines
run: |
agda --no-libraries -i "$AGDA_STDLIB" -i "$ABSOLUTE_ZERO_AGDA" --ignore-interfaces --safe --without-K --cubical-compatible -i proofs/agda proofs/agda/All.agda
agda --no-libraries -i "$AGDA_STDLIB" -i "$ABSOLUTE_ZERO_AGDA" --ignore-interfaces --safe --without-K --cubical-compatible -i proofs/agda proofs/agda/Smoke.agda
agda --no-libraries -i "$AGDA_STDLIB" -i "$ABSOLUTE_ZERO_AGDA" --ignore-interfaces --safe --without-K --cubical-compatible -i proofs/agda proofs/agda/AuditSmoke.agda
agda --no-libraries -i "$AGDA_STDLIB" -i "$ABSOLUTE_ZERO_AGDA" --ignore-interfaces --safe --without-K --cubical-compatible -i proofs/agda proofs/agda/characteristic/All.agda
agda --no-libraries -i "$AGDA_STDLIB" -i "$ABSOLUTE_ZERO_AGDA" --ignore-interfaces --safe --without-K --cubical-compatible -i proofs/agda proofs/agda/examples/All.agda
experimental:
name: Experimental echo-additive
runs-on: ubuntu-24.04
timeout-minutes: 30
steps:
- name: Checkout
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- name: Install checksum-pinned Agda 2.7.0.1 and pinned libraries
run: bash scripts/setup-agda.sh
- name: Check experimental aggregate coverage
run: bash scripts/check-experimental-aggregate.sh
- name: Typecheck experimental closure on its own signal
run: agda --no-libraries -i "$AGDA_STDLIB" -i "$ABSOLUTE_ZERO_AGDA" --ignore-interfaces --safe --without-K --cubical-compatible -i proofs/agda proofs/agda/experimental/echo-additive/All.agda
narrowing:
name: Bit-narrowing exhibit
runs-on: ubuntu-24.04
timeout-minutes: 30
steps:
- name: Checkout
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- name: Install checksum-pinned Agda 2.7.0.1 and pinned libraries
run: bash scripts/setup-agda.sh
- name: Typecheck narrowing closure on its own signal
run: agda --no-libraries -i "$AGDA_STDLIB" -i "$ABSOLUTE_ZERO_AGDA" --ignore-interfaces --safe --without-K --cubical-compatible -i proofs/agda proofs/agda/NarrowingSmoke.agda
cubical:
name: Cubical epi/mono profile
runs-on: ubuntu-24.04
timeout-minutes: 30
steps:
- name: Checkout
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- name: Install checksum-pinned Agda 2.7.0.1 and pinned libraries
run: bash scripts/setup-agda.sh
- name: Typecheck isolated full-Cubical profile
run: agda --no-libraries -i "$AGDA_STDLIB" -i "$ABSOLUTE_ZERO_AGDA" --ignore-interfaces --safe --cubical -i proofs/agda proofs/agda/EchoImageFactorizationPropCubical.agda
# PROOF-POLICY section 2 recheck legs for EchoSearchExample: hand
# re-proofs in Rocq and in Lean core (no Mathlib). Each fails on any axiom.
# Toolchains are version-asserted (Lean archive checksum-pinned); the
# section 6 deviation is recorded in proofs/RECHECK-EchoSearchExample.adoc.
rocq-recheck:
name: Rocq recheck leg
runs-on: ubuntu-24.04
timeout-minutes: 15
steps:
- name: Checkout
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- name: Install version-asserted Rocq (Coq 8.18.0)
run: bash scripts/setup-recheck.sh rocq
- name: Check the Rocq leg (no axioms)
run: bash scripts/check-recheck.sh rocq
lean-recheck:
name: Lean recheck leg
runs-on: ubuntu-24.04
timeout-minutes: 15
steps:
- name: Checkout
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- name: Install checksum-pinned Lean 4.30.0
run: bash scripts/setup-recheck.sh lean
- name: Check the Lean leg (no axioms)
run: bash scripts/check-recheck.sh lean