-
Notifications
You must be signed in to change notification settings - Fork 2
60 lines (57 loc) · 1.52 KB
/
aya.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
name: Aya CI
on:
push:
branches: [ main ]
paths:
- '.github/workflows/aya.yml'
- 'aya/**'
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
test-aya-examples:
name: Test Aya Examples
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ ubuntu-latest, macos-latest, windows-latest]
fail-fast: false
steps:
- uses: actions/checkout@v4
- name: Cache github-pages
uses: actions/cache@v4
with:
path: github-pages
key: github-pages-${{ github.run_id }}
restore-keys: |
github-pages
- uses: extractions/setup-just@v1
with:
just-version: 1.35.0
- name: Setup Aya
uses: aya-prover/setup-aya@latest
with:
version: 'nightly-build'
distribution: 'jlink'
build-from-source: 'false'
# - name: Show aya version
# run: aya --version
# - name: Show aya-lsp version
# run: aya-lsp --version
# - name: Show aya help
# run: aya --help
# - name: Show aya-lsp help
# run: aya-lsp --help
- name: Test Aya Examples
run: |
cd aya
just test
- name: Generate literate Aya documentation
if: >-
matrix.os == 'ubuntu-latest'
run: |
cd aya
just doc
cd ..
mkdir -p github-pages
rm -rf ./github-pages/aya
mv ./aya/dist ./github-pages/aya