-
Notifications
You must be signed in to change notification settings - Fork 3
56 lines (55 loc) · 1.71 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
48
49
50
51
52
53
54
55
56
name: "Build"
on:
pull_request:
merge_group:
push:
branches:
- master
jobs:
build-iso:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install Nix
uses: cachix/install-nix-action@v22
with:
extra_nix_config: |
system-features = kvm
- uses: DeterminateSystems/magic-nix-cache-action@v2
- name: pin nixpkgs
run: nix registry add nixpkgs github:NixOS/nixpkgs/nixos-23.11
- name: build generic-x86_64.install-iso
run: nix build .#all-download-images.generic-x86_64.install-iso --print-build-logs
build-frontend:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install Nix
uses: cachix/install-nix-action@v22
with:
extra_nix_config: |
system-features = kvm
- uses: DeterminateSystems/magic-nix-cache-action@v2
- name: pin nixpkgs
run: nix registry add nixpkgs github:NixOS/nixpkgs/nixos-23.11
- name: build frontend
run: nix build .#thymis-frontend-container --print-build-logs
build-controller:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install Nix
uses: cachix/install-nix-action@v22
with:
extra_nix_config: |
system-features = kvm
- uses: DeterminateSystems/magic-nix-cache-action@v2
- name: pin nixpkgs
run: nix registry add nixpkgs github:NixOS/nixpkgs/nixos-23.11
- name: build controller
run: nix build .#thymis-controller-container --print-build-logs
build:
runs-on: ubuntu-latest
needs: [build-iso, build-frontend, build-controller]
steps:
- run: echo "Build successful"