Skip to content

Commit 04c7534

Browse files
committed
chore: update CI, docs, and justfile for aarch64
- Add concurrency group to cancel stale CI runs - Gate KVM setup on X64 runners - Gate run-guest on X64 (no host support on ARM yet) - Update README to mention aarch64 target - Use arch() in justfile for target-independent paths Signed-off-by: Ludvig Liljenberg <4257730+ludfjig@users.noreply.github.com>
1 parent aabc669 commit 04c7534

File tree

3 files changed

+9
-3
lines changed

3 files changed

+9
-3
lines changed

.github/workflows/ci.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,11 @@ on:
1111
branches: [main]
1212
workflow_call:
1313

14+
# Cancels old running job if a new one is triggered (e.g. by a push onto the same branch).
15+
concurrency:
16+
group: ${{ github.workflow }}-${{ github.ref }}
17+
cancel-in-progress: true
18+
1419
env:
1520
CARGO_TERM_COLOR: always
1621

@@ -27,7 +32,7 @@ jobs:
2732
- uses: Swatinem/rust-cache@v2
2833
- uses: extractions/setup-just@v3
2934
- name: Enable kvm
30-
if: runner.os == 'Linux'
35+
if: runner.os == 'Linux' && runner.arch == 'X64'
3136
run: |
3237
echo 'KERNEL=="kvm", GROUP="kvm", MODE="0666", OPTIONS+="static_node=kvm"' | sudo tee /etc/udev/rules.d/99-kvm4all.rules
3338
sudo udevadm control --reload-rules
@@ -39,6 +44,7 @@ jobs:
3944
shell: bash
4045
run: just build-guest
4146
- name: Run example
47+
if: runner.arch == 'X64'
4248
shell: bash
4349
run: just run-guest
4450

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ Then to build the hyperlight guest binary, run
8383
cargo hyperlight build --release
8484
```
8585

86-
Your binary will be built for the `x86_64-hyperlight-none` target by default, and placed in `target/x86_64-hyperlight-none/release/guest`.
86+
Your binary will be built for the `x86_64-hyperlight-none` target (or `aarch64-hyperlight-none` on ARM) by default, and placed in `target/<arch>-hyperlight-none/release/guest`.
8787

8888
There's no need for any extra configuration, the command will take care of everything.
8989

justfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,4 @@ build-guest:
2222
cargo hyperlight build --manifest-path ./examples/guest/Cargo.toml
2323

2424
run-guest: build-guest
25-
cargo run --manifest-path ./examples/host/Cargo.toml -- ./target/x86_64-hyperlight-none/debug/guest
25+
cargo run --manifest-path ./examples/host/Cargo.toml -- ./target/{{arch()}}-hyperlight-none/debug/guest

0 commit comments

Comments
 (0)