-
Notifications
You must be signed in to change notification settings - Fork 8
46 lines (37 loc) · 1.04 KB
/
build.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
name: Build fh artifacts
on:
workflow_call:
pull_request:
push:
branches: [main]
jobs:
build-artifacts-X64-macOS:
runs-on: macos-12
steps:
- uses: actions/checkout@v3
- uses: DeterminateSystems/nix-installer-action@main
- uses: DeterminateSystems/magic-nix-cache-action@main
- name: Build package
run: |
nix build .# -L
- name: Upload a Build Artifact
uses: actions/[email protected]
with:
name: fh-X64-macOS
path: result/bin/fh
retention-days: 1
build-artifacts-X64-Linux:
runs-on: UbuntuLatest32Cores128G
steps:
- uses: actions/checkout@v3
- uses: DeterminateSystems/nix-installer-action@main
- uses: DeterminateSystems/magic-nix-cache-action@main
- name: Build package
run: |
nix build .# -L
- name: Upload a Build Artifact
uses: actions/[email protected]
with:
name: fh-X64-Linux
path: result/bin/fh
retention-days: 1