Skip to content

Commit e120250

Browse files
committed
fix: typo in nix command
1 parent 9baafa4 commit e120250

File tree

1 file changed

+49
-0
lines changed

1 file changed

+49
-0
lines changed

.github/workflows/e2e.yaml

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
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

0 commit comments

Comments
 (0)