Skip to content

Commit 78b851f

Browse files
committed
feat: add musl (Alpine) build target for hyperlight-analysis
- Add x86_64-unknown-linux-musl to napi targets in package.json - Add linux-musl build matrix entry in publish.yml (same Linux runner, installs musl-tools and adds Rust musl target) Signed-off-by: Simon Davies <simongdavies@users.noreply.github.com>
1 parent dc79634 commit 78b851f

2 files changed

Lines changed: 11 additions & 1 deletion

File tree

.github/workflows/publish.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,14 @@ jobs:
2828
strategy:
2929
fail-fast: true
3030
matrix:
31-
build: [linux-kvm, windows-whp]
31+
build: [linux-kvm, linux-musl, windows-whp]
3232
include:
3333
- build: linux-kvm
3434
os: [self-hosted, Linux, X64, "1ES.Pool=hld-kvm-amd"]
3535
hypervisor: kvm
36+
- build: linux-musl
37+
os: [self-hosted, Linux, X64, "1ES.Pool=hld-kvm-amd"]
38+
hypervisor: kvm
3639
- build: windows-whp
3740
os: [self-hosted, Windows, X64, "1ES.Pool=hld-win2022-amd"]
3841
hypervisor: whp
@@ -53,6 +56,12 @@ jobs:
5356
- name: Setup
5457
run: just setup
5558

59+
- name: Install musl tools
60+
if: matrix.build == 'linux-musl'
61+
run: |
62+
sudo apt-get update && sudo apt-get install -y musl-tools
63+
rustup target add x86_64-unknown-linux-musl
64+
5665
- name: Build release binary
5766
run: node scripts/build-binary.js --release
5867
env:

src/code-validator/guest/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
"binaryName": "hyperlight-analysis",
1414
"targets": [
1515
"x86_64-unknown-linux-gnu",
16+
"x86_64-unknown-linux-musl",
1617
"x86_64-pc-windows-msvc"
1718
]
1819
},

0 commit comments

Comments
 (0)