Skip to content

Commit 36fd097

Browse files
committed
Fix CI by registering standard-library .agda-lib on runner
1 parent 35035dd commit 36fd097

1 file changed

Lines changed: 14 additions & 1 deletion

File tree

.github/workflows/agda.yml

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,5 +34,18 @@ jobs:
3434
3535
echo "stdlib_dir=$STDLIB_DIR" >> "$GITHUB_OUTPUT"
3636
37+
- name: Register standard library for Agda
38+
run: |
39+
mkdir -p "$HOME/.agda"
40+
41+
STDLIB_LIB="$RUNNER_TEMP/standard-library.agda-lib"
42+
cat > "$STDLIB_LIB" <<EOF
43+
name: standard-library
44+
include: ${{ steps.stdlib.outputs.stdlib_dir }}
45+
EOF
46+
47+
printf '%s\n' "$STDLIB_LIB" > "$HOME/.agda/libraries"
48+
printf '%s\n' "standard-library" > "$HOME/.agda/defaults"
49+
3750
- name: Typecheck full suite
38-
run: agda -i proofs/agda -i "${{ steps.stdlib.outputs.stdlib_dir }}" proofs/agda/All.agda
51+
run: agda -i proofs/agda proofs/agda/All.agda

0 commit comments

Comments
 (0)