-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (36 loc) · 947 Bytes
/
ci.yaml
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
name: "CI"
on:
push:
branches:
- master
pull_request:
jobs:
build-test:
name: "Build & test"
runs-on: ubuntu-latest
steps:
- name: 📥 Checkout repository
uses: actions/checkout@v4
- name: ❄ Prepare nix
uses: cachix/install-nix-action@v26
with:
extra_nix_config: |
accept-flake-config = true
log-lines = 1000
- name: Prepare
run: |
nix develop --command bash -c "cabal update"
- name: Build
run: |
nix develop --command bash -c "cabal build"
mkdir -p bin
nix develop --command bash -c "cp $(cabal list-bin pegasus) bin"
- name: 💾 Upload executables
uses: actions/upload-artifact@v4
with:
name: pegasus-x86_64-linux
path: bin/*
- name: Test
# NOTE: The ci shell does not contain cardano-node
run: |
nix develop .#ci --command bash -c "cabal test"