-
Notifications
You must be signed in to change notification settings - Fork 72
98 lines (71 loc) · 1.68 KB
/
idris2.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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
## Adapted from The Frex Project.
name: Idris2 on Ubuntu
# -- [ When to Act]
on:
push:
branches:
- '*'
tags:
- '*'
pull_request:
branches:
- main
# -- [ ENV Variables ]
env:
SCHEME: scheme
# -- [ Jobs ]
jobs:
## -- [ Initialise Build Environment ]
build:
runs-on: ubuntu-latest
timeout-minutes: 60
strategy:
matrix:
emacs: [27.2, 28.2, 29.3]
env:
EMACS_VERSION: ${{ matrix.emacs }}
## -- [ Steps To Run ]
steps:
### -- [ Initialise Variables ]
- name: Initialise variables
run: |
# Only deploy if the build follows from pushing to main
echo "$HOME/.idris2/bin" >> $GITHUB_PATH
### -- [ Cache Idris2 ]
- name: Cache Idris2
uses: actions/cache@v3
id: cache-idris2
with:
path: |
~/.idris2
key: ${{ runner.os }}-idris2
### -- [ Fetch Dependencies ]
#### -- [ Chez Scheme ]
- name: Install Chez
run: |
sudo apt-get update
sudo apt-get install -y chezscheme
#### -- [ Idris2 ]
- name: Install Idris2
if: steps.cache-idris2.outputs.cache-hit != 'true'
run: |
pushd .
git clone https://github.com/idris-lang/idris2
cd idris2
make bootstrap && make install
popd
#### -- [ Emacs ]
- name: Fetch Emacs
uses: purcell/setup-emacs@master
with:
version: ${{ matrix.emacs }}
### -- [ Checkout the test ]
- name: Checkout
uses: actions/checkout@v3
### -- [ Test ]
- name: Build and Run
run: |
make clean
make build
make test2
# -- [ EOF ]