Skip to content
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
13 changes: 10 additions & 3 deletions .github/workflows/package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ jobs:
fail-fast: false
matrix:
include:
- { name: x86_64 Linux, target: x86_64-unknown-linux-gnu, runner: bare-metal }
- { name: x86_64 Linux, target: x86_64-unknown-linux-gnu, runner: bare-metal, container: debian:bookworm }
- { name: aarch64 Linux, target: aarch64-unknown-linux-gnu, runner: arm-runner }
- { name: x86_64 Linux musl, target: x86_64-unknown-linux-musl, runner: bare-metal }
- { name: x86_64 Linux musl, target: x86_64-unknown-linux-musl, runner: bare-metal, container: alpine }
# FIXME: arm musl build. "JavaScript Actions in Alpine containers are only supported on x64 Linux runners"
# - { name: aarch64 Linux musl, target: aarch64-unknown-linux-musl, runner: arm-runner }
- { name: aarch64 macOS, target: aarch64-apple-darwin, runner: macos-latest }
Expand All @@ -25,7 +25,7 @@ jobs:

name: Build CLI for ${{ matrix.name }}
runs-on: ${{ matrix.runner }}
container: ${{ endsWith(matrix.target, '-musl') && 'alpine' || '' }}
container: ${{ matrix.container || '' }}

steps:
- name: Checkout
Expand All @@ -34,7 +34,14 @@ jobs:
- name: Show arch
run: uname -a

- name: Install ubuntu dependencies
if: matrix.container == 'debian:bookworm'
run: |
apt-get update -y
apt-get install -y gcc g++ bash curl perl git make

- name: Install musl dependencies
# TODO: Should we use `matrix.container == 'alpine'` instead of the `endsWith` check?
if: endsWith(matrix.target, '-musl')
run: apk add gcc g++ bash curl linux-headers perl git make

Expand Down
Loading