forked from herd/herdtools7
-
Notifications
You must be signed in to change notification settings - Fork 0
46 lines (36 loc) · 1.2 KB
/
build-asl-reference.yml
File metadata and controls
46 lines (36 loc) · 1.2 KB
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
name: Build ASL reference
on:
workflow_dispatch:
schedule:
# Prime the caches every Monday
- cron: 0 1 * * MON
pull_request:
paths:
- 'internal/bento.mll'
- 'asllib/doc/**'
- '.github/workflows/build-asl-reference.yml'
permissions: read-all
# Copy-pasted from https://stackoverflow.com/questions/66335225/how-to-cancel-previous-runs-in-the-pr-when-you-push-new-commitsupdate-the-curre
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
make-asldoc:
runs-on: ubuntu-latest
steps:
- name: Checkout tree
uses: actions/checkout@v4
- name: Update apt database
run: sudo apt-get update --quiet --yes
- name: Install opam and texlive
run: sudo apt-get install --quiet --yes opam texlive-full
- name: Make sure opam is well installed
run: opam init
- name: Install opam dependencies
run: opam install . --deps-only --yes
- name: Build ASL Reference
run: opam exec -- make asldoc
- uses: actions/upload-artifact@v4
with:
name: ASL Reference Document
path: asllib/doc/ASLReference.pdf