Skip to content

Add integration bridge, next-question backlog, and robust CI stdlib r… #2

Add integration bridge, next-question backlog, and robust CI stdlib r…

Add integration bridge, next-question backlog, and robust CI stdlib r… #2

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 agda-stdlib
- name: Locate Agda standard library
id: stdlib
run: |
STDLIB_DIR="$(
find /usr/share /usr/lib -type f -path '*/Data/Nat/Base.agda' 2>/dev/null \
| head -n 1 \
| sed 's#/Data/Nat/Base.agda##'
)"
if [ -z "$STDLIB_DIR" ]; then
echo "Could not locate Agda standard library directory"
exit 1
fi
echo "stdlib_dir=$STDLIB_DIR" >> "$GITHUB_OUTPUT"
- name: Typecheck full suite
run: agda -i proofs/agda -i "${{ steps.stdlib.outputs.stdlib_dir }}" proofs/agda/All.agda