-
Notifications
You must be signed in to change notification settings - Fork 9
53 lines (48 loc) · 1.2 KB
/
Copy pathimage.yml
File metadata and controls
53 lines (48 loc) · 1.2 KB
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
48
49
50
51
52
53
name: Build and cache VM image
on:
push:
branches: [main]
paths:
[
"!flake.nix",
"!lib/**",
"!module/**",
"!pkgs/vm-runner/**",
"!README.md",
"flake.lock",
"pkgs/vm-image/**",
]
pull_request:
types: [closed]
branches: [main]
paths:
[
"!flake.nix",
"!lib/**",
"!module/**",
"!pkgs/vm-runner/**",
"!README.md",
"flake.lock",
"pkgs/vm-image/**",
]
workflow_dispatch:
jobs:
build:
name: packages.aarch64-linux.vm-image
if: github.event_name != 'pull_request' || github.event.pull_request.merged == true
runs-on: ubuntu-24.04-arm
steps:
- uses: actions/checkout@v6
- name: Set up Nix
uses: cachix/install-nix-action@v31
with:
enable_kvm: true
extra_nix_config: "system-features = kvm"
github_access_token: ${{ secrets.GITHUB_TOKEN }}
- name: Set up Cachix
uses: cachix/cachix-action@v17
with:
name: virby-nix-darwin
authToken: ${{ secrets.CACHIX_AUTH_TOKEN }}
- name: Nix build
run: nix build -L .#packages.aarch64-linux.vm-image