-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (35 loc) · 1.13 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
name: "Test"
on:
push:
pull_request:
jobs:
nix:
strategy:
fail-fast: false
matrix:
os:
- name: linux
id: ubuntu-latest
- name: macos
id: macos-latest
runs-on: ${{ matrix.os.id }}
steps:
- uses: DeterminateSystems/nix-installer-action@main
with:
extra-conf: |
substituters = https://cl-nix-lite.cachix.org https://cache.nixos.org/
trusted-public-keys = cl-nix-lite.cachix.org-1:ab6+b0u2vxymMLcZ5DDqPKnxz0WObbMszmC+BDBHpFc= cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
- uses: DeterminateSystems/magic-nix-cache-action@main
- uses: actions/checkout@v4
- name: Channel-based Nix
run: nix-build
- name: "Flake: regular build"
run: "nix build --print-build-logs"
# This will need to recompile SBCL
- name: "Flake: build with purged Nix references"
run: "nix build --print-build-logs .#norefs"
- name: "Upload stand-alone binary"
uses: actions/upload-artifact@v4
with:
name: git-hly-${{ matrix.os.name }}-${{ github.sha }}
path: result/bin/git-hly