Skip to content

Add GitHub composite action for installing Agda and standard library #6

Add GitHub composite action for installing Agda and standard library

Add GitHub composite action for installing Agda and standard library #6

Workflow file for this run

name: Example Usage
on: [push, pull_request]
permissions:
contents: read
jobs:
example:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup Agda
id: setup-agda
uses: agda/agda-setup-action@v1
with:
agda-version: '2.8.0'
agda-stdlib-version: '2.3'
- name: Show Agda info
run: |
echo "Agda path: ${{ steps.setup-agda.outputs.agda-path }}"
echo "Agda dir: ${{ steps.setup-agda.outputs.agda-dir }}"
agda --version
- name: Create a simple Agda file
run: |
cat > Example.agda << 'EOF'
module Example where
open import Data.Bool
open import Data.Nat
example : Bool
example = true
EOF
- name: Type-check Agda file
run: agda Example.agda