Skip to content

Pin CI to agda-stdlib v2.3 for import compatibility #6

Pin CI to agda-stdlib v2.3 for import compatibility

Pin CI to agda-stdlib v2.3 for import compatibility #6

Workflow file for this run

name: Agda
on:
push:
branches:
- "**"
pull_request:
jobs:
check:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install Agda and standard library
run: |
sudo apt-get update
sudo apt-get install -y agda git
- name: Fetch Agda standard library (v2.3)
id: stdlib
run: |
STDLIB_DIR="$RUNNER_TEMP/agda-stdlib"
git clone --depth 1 --branch v2.3 https://github.com/agda/agda-stdlib.git "$STDLIB_DIR"
echo "stdlib_dir=$STDLIB_DIR" >> "$GITHUB_OUTPUT"
- name: Register standard library for Agda
run: |
mkdir -p "$HOME/.agda"
STDLIB_LIB="$RUNNER_TEMP/standard-library.agda-lib"
cat > "$STDLIB_LIB" <<EOF
name: standard-library
include: ${{ steps.stdlib.outputs.stdlib_dir }}
EOF
printf '%s\n' "$STDLIB_LIB" > "$HOME/.agda/libraries"
printf '%s\n' "standard-library" > "$HOME/.agda/defaults"
- name: Typecheck full suite
run: agda -i proofs/agda proofs/agda/All.agda