File tree Expand file tree Collapse file tree 1 file changed +49
-0
lines changed Expand file tree Collapse file tree 1 file changed +49
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : Build mkosi Image
2
+
3
+ on :
4
+ workflow_dispatch :
5
+ push :
6
+ branches : [ main ]
7
+ pull_request :
8
+ branches : [ main ]
9
+
10
+ jobs :
11
+ build-mkosi :
12
+ runs-on : warp-ubuntu-latest-x64-8x
13
+
14
+ permissions :
15
+ contents : read
16
+
17
+ steps :
18
+ - name : Checkout repository
19
+ uses : actions/checkout@v4
20
+
21
+ - name : Setup Nix
22
+ uses : DeterminateSystems/nix-installer-action@main
23
+
24
+ # TODO: Setup Warp cache
25
+ # - name: Setup Warp cache
26
+ # uses: WarpBuilds/cache@v1
27
+ # with:
28
+ # path: ~/.cache/mkosi/
29
+ # key: ${{ runner.os }}-mkosi-cache-${{ hashFiles('**/mkosi.conf', '**/mkosi.packages') }}
30
+ # restore-keys: |
31
+ # ${{ runner.os }}-mkosi-cache-
32
+
33
+ - name : Install system dependencies
34
+ run : |
35
+ sudo apt-get update
36
+ sudo apt-get install -y \
37
+ qemu-system-x86 qemu-utils \
38
+ debian-archive-keyring systemd-boot reprepro xz-utils
39
+
40
+ - name : Configure Nix
41
+ run : |
42
+ mkdir -p ~/.config/nix
43
+ echo 'experimental-features = nix-command flakes' > ~/.config/nix/nix.conf
44
+
45
+ # Building tdx-image for testing
46
+ - name : Build mkosi image using nix
47
+ run : |
48
+ mkdir -p ~/.cache/mkosi/
49
+ nix develop --command mkosi --force -I tdx-dummy.conf
You can’t perform that action at this time.
0 commit comments