-
Notifications
You must be signed in to change notification settings - Fork 182
37 lines (34 loc) · 917 Bytes
/
mhs-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
name: MicroHs CI for containers
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
jobs:
build-mhs-containers:
runs-on: ubuntu-latest
steps:
- name: checkout containers repo
uses: actions/checkout@v4
with:
path: cont
- name: checkout mhs repo
# workaround for `act`: https://github.com/nektos/act/issues/678#issuecomment-1693751996
run: git clone https://github.com/augustss/MicroHs.git --branch stable-5 mhs
# uses: actions/checkout@v4
# with:
# repository: augustss/MicroHs
# ref: stable-4
# path: mhs
- name: make and install mhs
run: |
cd mhs
make minstall
- name: compile and install containers package
run: |
PATH="$HOME/.mcabal/bin:$PATH"
cd cont/containers
mcabal install
- name: cleanup
run: |
rm -rf $HOME/.mcabal