Skip to content

Commit ef18f26

Browse files
committed
Update E2E kernel handling and Rust toolchain version
- Modify E2E workflow to copy and adjust kernel file permissions dynamically before exporting. - Bump Rust msrv to 1.78 in CI workflow and update `Cargo.toml` to reflect the new version.
1 parent 3086048 commit ef18f26

File tree

3 files changed

+9
-3
lines changed

3 files changed

+9
-3
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,10 +116,10 @@ jobs:
116116
steps:
117117
- uses: actions/checkout@v4
118118

119-
- name: Install Rust 1.70
119+
- name: Install Rust 1.78
120120
uses: dtolnay/rust-toolchain@master
121121
with:
122-
toolchain: "1.70"
122+
toolchain: "1.78"
123123

124124
- name: Check build with MSRV
125125
run: cargo build --workspace --all-features

.github/workflows/e2e.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,12 @@ jobs:
7979
VOID_BOX_INITRAMFS: /tmp/void-box-test-rootfs.cpio.gz
8080
run: |
8181
# Detect kernel version at runtime (env context can't run commands)
82-
export VOID_BOX_KERNEL="/boot/vmlinuz-$(uname -r)"
82+
KERNEL_SRC="/boot/vmlinuz-$(uname -r)"
83+
KERNEL_COPY="/tmp/void-box-kernel-$(uname -r)"
84+
sudo cp "$KERNEL_SRC" "$KERNEL_COPY"
85+
sudo chown "$USER:$USER" "$KERNEL_COPY"
86+
chmod 644 "$KERNEL_COPY"
87+
export VOID_BOX_KERNEL="$KERNEL_COPY"
8388
echo "Kernel: $VOID_BOX_KERNEL"
8489
echo "Initramfs: $VOID_BOX_INITRAMFS"
8590

Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
name = "void-box"
33
version = "0.1.0"
44
edition = "2021"
5+
rust-version = "1.78"
56
authors = ["Diego Parra <diegolparra@gmail.com>"]
67
description = "Composable workflow sandbox with KVM micro-VMs and native observability"
78
repository = "https://github.com/the-void-ia/void-box"

0 commit comments

Comments
 (0)