File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -16,36 +16,23 @@ jobs:
1616 - name : Install Agda and standard library
1717 run : |
1818 sudo apt-get update
19- sudo apt-get install -y agda agda-stdlib
19+ sudo apt-get install -y agda git
2020
21- - name : Locate Agda standard library
21+ - name : Fetch Agda standard library (v2.3)
2222 id : stdlib
2323 run : |
24- STDLIB_DIR="$(
25- find /usr/share /usr/lib -type f -path '*/Data/Nat/Base.agda' 2>/dev/null \
26- | head -n 1 \
27- | sed 's#/Data/Nat/Base.agda##'
28- )"
29-
30- if [ -z "$STDLIB_DIR" ]; then
31- echo "Could not locate Agda standard library directory"
32- exit 1
33- fi
34-
24+ STDLIB_DIR="$RUNNER_TEMP/agda-stdlib"
25+ git clone --depth 1 --branch v2.3 https://github.com/agda/agda-stdlib.git "$STDLIB_DIR"
3526 echo "stdlib_dir=$STDLIB_DIR" >> "$GITHUB_OUTPUT"
3627
3728 - name : Register standard library for Agda
3829 run : |
3930 mkdir -p "$HOME/.agda"
4031
41- STDLIB_COPY="$RUNNER_TEMP/agda-stdlib-copy"
42- mkdir -p "$STDLIB_COPY"
43- cp -a "${{ steps.stdlib.outputs.stdlib_dir }}/." "$STDLIB_COPY/"
44-
4532 STDLIB_LIB="$RUNNER_TEMP/standard-library.agda-lib"
4633 cat > "$STDLIB_LIB" <<EOF
4734 name: standard-library
48- include: $STDLIB_COPY
35+ include: ${{ steps.stdlib.outputs.stdlib_dir }}
4936 EOF
5037
5138 printf '%s\n' "$STDLIB_LIB" > "$HOME/.agda/libraries"
You can’t perform that action at this time.
0 commit comments