Skip to content

Commit

Permalink
ci: move loader binaries into kernel directory
Browse files Browse the repository at this point in the history
Signed-off-by: Martin Kröning <[email protected]>
  • Loading branch information
mkroening committed Sep 8, 2023
1 parent 8562d83 commit a3fa18b
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,7 @@ jobs:
with:
repo: hermitcore/rusty-loader
file: rusty-loader-x86_64
target: kernel/
- name: Install virtiofsd
run: cargo install virtiofsd
- name: rusty_demo with pci-ids and virtiofsd
Expand Down Expand Up @@ -193,6 +194,7 @@ jobs:
with:
repo: hermitcore/rusty-loader
file: rusty-loader-aarch64
target: kernel/
- uses: mkroening/rust-toolchain-toml@main
- name: Install QEMU
run: |
Expand Down Expand Up @@ -246,11 +248,13 @@ jobs:
with:
file: rusty-loader-x86_64
repo: hermitcore/rusty-loader
target: kernel/
- name: Download loader (x86_64-fc)
uses: dsaltares/fetch-gh-release-asset@master
with:
file: rusty-loader-x86_64-fc
repo: hermitcore/rusty-loader
target: kernel/
- name: Install firecracker
run: |
# https://github.com/firecracker-microvm/firecracker/blob/7c5fc8707f26c4244d48a747631ab0fb31fc4c39/docs/getting-started.md#getting-a-firecracker-binary
Expand Down
2 changes: 1 addition & 1 deletion xtask/src/ci/firecracker.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ impl Firecracker {

let config = format!(
include_str!("firecracker_vm_config.json"),
kernel_image_path = "../rusty-loader-x86_64-fc",
kernel_image_path = "rusty-loader-x86_64-fc",
initrd_path = self.build.image().display()
);
eprintln!("firecracker config");
Expand Down
2 changes: 1 addition & 1 deletion xtask/src/ci/qemu.rs
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ impl Qemu {
let cmd = cmd!(sh, "qemu-system-{arch}")
.args(&["-display", "none"])
.args(&["-serial", "stdio"])
.args(&["-kernel", format!("../rusty-loader-{arch}").as_ref()])
.args(&["-kernel", format!("rusty-loader-{arch}").as_ref()])
.args(self.machine_args())
.args(self.cpu_args())
.args(self.smp_args())
Expand Down

0 comments on commit a3fa18b

Please sign in to comment.