Skip to content

Commit 3f18b1c

Browse files
Copilotandreasabel
andcommitted
Add example workflow and .gitignore
Co-authored-by: andreasabel <1155218+andreasabel@users.noreply.github.com>
1 parent 51c0389 commit 3f18b1c

File tree

2 files changed

+63
-0
lines changed

2 files changed

+63
-0
lines changed

.github/workflows/example.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: Example Usage
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
example:
7+
runs-on: ubuntu-latest
8+
9+
steps:
10+
- name: Checkout repository
11+
uses: actions/checkout@v4
12+
13+
- name: Setup Agda
14+
id: setup-agda
15+
uses: agda/agda-setup-action@v1
16+
with:
17+
agda-version: '2.8.0'
18+
agda-stdlib-version: '2.3'
19+
20+
- name: Show Agda info
21+
run: |
22+
echo "Agda path: ${{ steps.setup-agda.outputs.agda-path }}"
23+
echo "Agda dir: ${{ steps.setup-agda.outputs.agda-dir }}"
24+
agda --version
25+
26+
- name: Create a simple Agda file
27+
run: |
28+
cat > Example.agda << 'EOF'
29+
module Example where
30+
31+
open import Data.Bool
32+
open import Data.Nat
33+
34+
example : Bool
35+
example = true
36+
EOF
37+
38+
- name: Type-check Agda file
39+
run: agda Example.agda

.gitignore

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# Temporary files
2+
*.tmp
3+
*.temp
4+
/tmp/
5+
6+
# Archive files used during testing
7+
*.tar.xz
8+
*.tar.gz
9+
*.zip
10+
11+
# Agda build artifacts
12+
*.agdai
13+
_build/
14+
15+
# OS files
16+
.DS_Store
17+
Thumbs.db
18+
19+
# IDE files
20+
.vscode/
21+
.idea/
22+
*.swp
23+
*.swo
24+
*~

0 commit comments

Comments
 (0)