Skip to content

Commit d89f99e

Browse files
committed
Use writable copied stdlib in CI to avoid /usr/share interface writes
1 parent 91bc5c6 commit d89f99e

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

.github/workflows/agda.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,14 +38,18 @@ jobs:
3838
run: |
3939
mkdir -p "$HOME/.agda"
4040
41+
STDLIB_COPY="$RUNNER_TEMP/agda-stdlib-copy"
42+
mkdir -p "$STDLIB_COPY"
43+
cp -a "${{ steps.stdlib.outputs.stdlib_dir }}/." "$STDLIB_COPY/"
44+
4145
STDLIB_LIB="$RUNNER_TEMP/standard-library.agda-lib"
4246
cat > "$STDLIB_LIB" <<EOF
4347
name: standard-library
44-
include: ${{ steps.stdlib.outputs.stdlib_dir }}
48+
include: $STDLIB_COPY
4549
EOF
4650
4751
printf '%s\n' "$STDLIB_LIB" > "$HOME/.agda/libraries"
4852
printf '%s\n' "standard-library" > "$HOME/.agda/defaults"
4953
5054
- name: Typecheck full suite
51-
run: agda --local-interfaces -i proofs/agda proofs/agda/All.agda
55+
run: agda -i proofs/agda proofs/agda/All.agda

0 commit comments

Comments
 (0)