-
Notifications
You must be signed in to change notification settings - Fork 2
80 lines (67 loc) · 1.63 KB
/
ci.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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
name: Juvix standard library CI
on:
push:
branches:
- main
pull_request:
branches:
- main
types:
- opened
- reopened
- synchronize
- ready_for_review
schedule:
- cron: '0 3 * * 1'
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout Juvix
uses: actions/checkout@v3
with:
repository: anoma/juvix
path: juvix
submodules: true
- name: install LLVM
run: |
sudo apt install llvm
- name: Make runtime
run: |
cd juvix
make runtime
- name: Stack setup
id: stack
uses: freckle/stack-action@v4
with:
working-directory: juvix
test: false
fast: false
- name: Install Juvix
run: |
cd juvix
echo "$GITHUB_WORKSPACE/.local/bin" >> $GITHUB_PATH
stack install
- name: Checkout Std Library
uses: actions/checkout@v3
- name : Typecheck library code
run : make check
- name: HTML
run: make html
- name: test
run: make test
- name: check-format-and-typecheck-all
shell: bash
run: |
make check-format && make typecheck
- name: Deploy HTML to github pages
uses: peaceiris/actions-gh-pages@v3
if: >-
github.ref == 'refs/heads/main'
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: docs
enable_jekyll: false