Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build: Add aarch64 to release workflow #294

Merged
merged 1 commit into from
Nov 15, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 14 additions & 2 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,10 @@ jobs:
uses: dtolnay/rust-toolchain@stable
- name: Install rust-src
run: rustup component add rust-src
- name: Build (release)
- name: Build (release) for x86_64
run: cargo build --release --target x86_64-unknown-none.json -Zbuild-std=core,alloc -Zbuild-std-features=compiler-builtins-mem
- name: Build (release) for aarch64
run: cargo build --release --target aarch64-unknown-none.json -Zbuild-std=core,alloc -Zbuild-std-features=compiler-builtins-mem
- name: Create release
id: create_release
uses: actions/create-release@v1
Expand All @@ -29,7 +31,7 @@ jobs:
tag_name: ${{ github.ref }}
release_name: ${{ github.ref }}
draft: true
- name: Upload hypervisor-fw
- name: Upload hypervisor-fw for x86_64
id: upload-release-hypervisor-fw
uses: actions/upload-release-asset@v1
env:
Expand All @@ -39,3 +41,13 @@ jobs:
asset_path: target/x86_64-unknown-none/release/hypervisor-fw
asset_name: hypervisor-fw
asset_content_type: application/octet-stream
- name: Upload hypervisor-fw for aarch64
id: upload-release-hypervisor-fw-aarch64
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: target/aarch64-unknown-none/release/hypervisor-fw
asset_name: hypervisor-fw-aarch64
asset_content_type: application/octet-stream
Loading