-
Notifications
You must be signed in to change notification settings - Fork 87
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #901 from mkroening/firecracker-ci
fix: proper firecracker shutdown
- Loading branch information
Showing
2 changed files
with
36 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -414,20 +414,19 @@ jobs: | |
with: | ||
repo: hermitcore/rusty-loader | ||
file: rusty-loader-x86_64-fc | ||
- name: Download firecracker | ||
uses: dsaltares/[email protected] | ||
with: | ||
repo: firecracker-microvm/firecracker | ||
version: tags/v1.4.1 | ||
file: firecracker-v1.4.1-x86_64.tgz | ||
target: 'firecracker-x86_64.tgz' | ||
- name: Install firecracker | ||
run: | | ||
tar xzvf firecracker-x86_64.tgz --one-top-level=fc --strip-components 1 | ||
# https://github.com/firecracker-microvm/firecracker/blob/7c5fc8707f26c4244d48a747631ab0fb31fc4c39/docs/getting-started.md#getting-a-firecracker-binary | ||
ARCH="$(uname -m)" | ||
release_url="https://github.com/firecracker-microvm/firecracker/releases" | ||
latest=$(basename $(curl -fsSLI -o /dev/null -w %{url_effective} ${release_url}/latest)) | ||
curl -L ${release_url}/download/${latest}/firecracker-${latest}-${ARCH}.tgz \ | ||
| tar -xz | ||
# Rename the binary to "firecracker" | ||
mv release-${latest}-$(uname -m)/firecracker-${latest}-${ARCH} firecracker | ||
echo "$PWD" >> $GITHUB_PATH | ||
- name: Build minimal profile (debug) | ||
run: cargo build -Zbuild-std=std,panic_abort --target x86_64-unknown-hermit --no-default-features --package hello_world | ||
- name: Test debug profile (Firecracker) | ||
run: | | ||
./fc/firecracker-v1.4.1-x86_64 --no-api --config-file ./kernel/fc-config.json & | ||
sleep 1 | ||
kill -KILL $(pidof firecracker-v1.4.1-x86_64) | ||
run: firecracker --no-api --config-file ./kernel/fc-config.json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters