-
Notifications
You must be signed in to change notification settings - Fork 2
48 lines (37 loc) · 1.06 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
name: Build
on: [push]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install Packages
run: |
# get system packages
set -euxo pipefail
export DEBIAN_FRONTEND=noninteractive
sudo apt-get update -q
sudo apt-get install -yq llvm-15-dev clang-15
# make sure we have llvm binaries on the path
echo "/usr/lib/llvm-15/bin" >> $GITHUB_PATH
# install just
sudo snap install --edge --classic just
- name: Verify package install
run: |
set -euxo pipefail
ls -la $(which llvm-config-15)
llvm-config --version
clang --version
- name: Cache Global Stack
uses: actions/cache@v3
with:
path: ~/.stack/
key: stack-global-${{ hashFiles('package.yaml') }}-${{ hashFiles('stack.yaml.lock') }}
restore-keys: stack-global
- name: Install Dependencies
run: just install-dev-deps
- name: Build
run: just build
- name: Test
run: just test