-
Notifications
You must be signed in to change notification settings - Fork 5
47 lines (40 loc) · 1.13 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
47
name: build
on:
workflow_dispatch:
pull_request:
push:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
build:
strategy:
matrix:
config:
- host: macos-latest
system: x86_64-darwin
target: aarch64-apple-darwin
- host: macos-latest
system: x86_64-darwin
target: x86_64-apple-darwin
- host: ubuntu-latest
system: x86_64-linux
target: aarch64-unknown-linux-musl
- host: ubuntu-latest
system: x86_64-linux
target: x86_64-unknown-linux-musl
runs-on: ${{ matrix.config.host }}
steps:
- uses: actions/checkout@v3
- uses: cachix/install-nix-action@v19
with:
extra_nix_config: |
access-tokens = github.com=${{ github.token }}
- uses: cachix/cachix-action@v12
with:
name: enarx
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
- run: rustup show
- run: cargo update
- run: git add -f Cargo.lock
- run: nix build -L --show-trace '.#checks.${{ matrix.config.system }}.vfs-${{ matrix.config.target }}'