Skip to content

Commit f9d98b4

Browse files
authored
revert: "fix: worker binary release targets and cross-compilation deps (#1428)" (#1433)
1 parent 381cce7 commit f9d98b4

11 files changed

Lines changed: 143 additions & 239 deletions

File tree

.github/workflows/_rust-binary.yml

Lines changed: 1 addition & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -84,8 +84,6 @@ env:
8484
CARGO_TERM_COLOR: always
8585
CARGO_TARGET_AARCH64_UNKNOWN_LINUX_GNU_LINKER: aarch64-linux-gnu-gcc
8686
CARGO_TARGET_ARMV7_UNKNOWN_LINUX_GNUEABIHF_LINKER: arm-linux-gnueabihf-gcc
87-
CARGO_TARGET_AARCH64_UNKNOWN_LINUX_GNU_PKG_CONFIG_ALLOW_CROSS: '1'
88-
PKG_CONFIG_SYSROOT_DIR_aarch64_unknown_linux_gnu: /usr/aarch64-linux-gnu
8987

9088
jobs:
9189
prepare-matrix:
@@ -206,25 +204,9 @@ jobs:
206204

207205
- name: Install additional system dependencies
208206
if: runner.os == 'Linux' && inputs.system_deps != ''
209-
env:
210-
BUILD_TARGET: ${{ matrix.target }}
211207
run: |
212208
sudo apt-get update
213-
case "$BUILD_TARGET" in
214-
aarch64-unknown-linux-gnu)
215-
sudo dpkg --add-architecture arm64
216-
sudo sed -i 's/^deb /deb [arch=amd64] /' /etc/apt/sources.list
217-
echo "deb [arch=arm64] http://ports.ubuntu.com/ $(lsb_release -cs) main restricted universe" | sudo tee /etc/apt/sources.list.d/arm64.list
218-
echo "deb [arch=arm64] http://ports.ubuntu.com/ $(lsb_release -cs)-updates main restricted universe" | sudo tee -a /etc/apt/sources.list.d/arm64.list
219-
sudo apt-get update
220-
for pkg in ${{ inputs.system_deps }}; do
221-
sudo apt-get install -y "${pkg}:arm64"
222-
done
223-
;;
224-
*)
225-
sudo apt-get install -y ${{ inputs.system_deps }}
226-
;;
227-
esac
209+
sudo apt-get install -y ${{ inputs.system_deps }}
228210
229211
- name: Install cross-compilation tools
230212
if: runner.os == 'Linux'

Cargo.lock

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

crates/iii-worker/Cargo.toml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ embed-init = ["iii-filesystem/embed-init"]
2121
[dependencies]
2222
iii-filesystem = { path = "../iii-filesystem" }
2323
iii-network = { path = "../iii-network" }
24+
msb_krun = { version = "0.1.9", features = ["net"] }
2425
oci-client = "0.16"
2526
oci-spec = "0.9"
2627
tokio = { version = "1", features = ["process", "macros", "rt-multi-thread", "fs", "signal", "time", "io-std"] }
@@ -44,9 +45,6 @@ tracing-subscriber = { version = "0.3", features = ["fmt", "env-filter"] }
4445
futures = "0.3"
4546
indicatif = "0.17"
4647

47-
[target.'cfg(all(target_os = "linux", not(target_env = "musl")))'.dependencies]
48-
msb_krun = { version = "0.1.9", features = ["net"] }
49-
5048
[dev-dependencies]
5149
tokio = { version = "1", features = ["test-util"] }
5250
tempfile = "3"

crates/iii-worker/src/cli/app.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,6 @@ pub enum Commands {
136136
},
137137

138138
/// Internal: boot a libkrun VM (crash-isolated subprocess)
139-
#[cfg(all(target_os = "linux", not(target_env = "musl")))]
140139
#[command(name = "__vm-boot", hide = true)]
141140
VmBoot(super::vm_boot::VmBootArgs),
142141
}

0 commit comments

Comments
 (0)