-
Notifications
You must be signed in to change notification settings - Fork 3
39 lines (36 loc) · 1003 Bytes
/
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
name: build
on:
push:
branches: [develop]
pull_request:
permissions:
contents: read
jobs:
build:
runs-on: ubuntu-latest
name: build (${{ matrix.system }})
strategy:
matrix:
system:
- x86_64-linux
# - aarch64-linux
steps:
- uses: actions/checkout@v4
with:
submodules: true
# - run: sudo apt-get update && sudo apt-get install -y qemu-user-static
- name: Setup Nix
uses: cachix/install-nix-action@v30
with:
# newer versions result in different store paths
install_url: https://releases.nixos.org/nix/nix-2.18.5/install
github_access_token: ${{ secrets.GITHUB_TOKEN }}
extra_nix_config: |
system = ${{ matrix.system }}
- name: Setup Cachix
uses: cachix/cachix-action@v15
with:
name: bootstrap-academy
authToken: ${{ secrets.CACHIX_AUTH_TOKEN }}
useDaemon: false
- run: nix build