Skip to content

Commit 0c1030a

Browse files
committed
fix: add only one CI
1 parent a39eea0 commit 0c1030a

File tree

2 files changed

+12
-61
lines changed

2 files changed

+12
-61
lines changed

.github/workflows/build.yaml

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,12 @@ name: Build mkosi Image
33
on:
44
workflow_dispatch:
55
push:
6-
branches: [ main ]
6+
branches:
7+
- main
8+
- feat/add-warp-ci # TODO: Remove this once the CI is working
79
pull_request:
8-
branches: [ main ]
10+
branches:
11+
- main
912

1013
jobs:
1114
build-mkosi:
@@ -30,6 +33,12 @@ jobs:
3033
# restore-keys: |
3134
# ${{ runner.os }}-mkosi-cache-
3235

36+
- name: Enable user namespaces for mkosi
37+
run: |
38+
echo 'kernel.unprivileged_userns_clone=1' | sudo tee -a /etc/sysctl.conf
39+
sudo sysctl -p
40+
cat /proc/sys/kernel/unprivileged_userns_clone
41+
3342
- name: Install system dependencies
3443
run: |
3544
sudo apt-get update
@@ -46,4 +55,4 @@ jobs:
4655
- name: Build mkosi image using nix
4756
run: |
4857
mkdir -p ~/.cache/mkosi/
49-
ix develop --command mkosi --force -I tdx-dummy.conf
58+
nix develop --command mkosi --force -I tdx-dummy.conf

.github/workflows/e2e.yaml

Lines changed: 0 additions & 58 deletions
This file was deleted.

0 commit comments

Comments
 (0)