-
Notifications
You must be signed in to change notification settings - Fork 3
45 lines (45 loc) · 1.28 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
name: "Build"
on:
pull_request:
push:
jobs:
fernglas:
strategy:
matrix:
packageset: [
"pkgs",
"pkgsStatic",
"pkgsCross.musl64",
"pkgsCross.aarch64-multiplatform",
"pkgsCross.aarch64-multiplatform.pkgsStatic",
"pkgsCross.aarch64-multiplatform-musl"
]
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- uses: cachix/install-nix-action@v23
- uses: cachix/cachix-action@v12
with:
name: wobcom-public
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
- run: 'nix build .#${{ matrix.packageset }}.fernglas -vL'
- uses: actions/upload-artifact@v3
with:
name: '${{ matrix.packageset }}.fernglas'
path: result/bin/fernglas
fernglas-frontend:
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- uses: cachix/install-nix-action@v23
- uses: cachix/cachix-action@v12
with:
name: wobcom-public
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
- run: nix build .#fernglas-frontend -vL
# https://github.com/actions/upload-artifact/issues/92
- run: cp -r result/ result-frontend
- uses: actions/upload-artifact@v3
with:
name: fernglas-frontend
path: result-frontend/*