Skip to content

Commit

Permalink
add build for musl
Browse files Browse the repository at this point in the history
  • Loading branch information
maminrayej committed Oct 25, 2024
1 parent 7a9d897 commit 3459334
Showing 1 changed file with 17 additions and 9 deletions.
26 changes: 17 additions & 9 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,17 @@ jobs:
strategy:
matrix:
target:
- id: 'linux-amd64'
# - id: 'linux-amd64'
# os: 'ubuntu-20.04'
- id: 'linux-musl'
os: 'ubuntu-20.04'
- id: 'darwin-amd64'
os: 'macos-13'
- id: 'darwin-aarch64'
os: 'macos-latest'
- id: 'windows-amd64'
os: 'windows-2022'
container: alpine:latest
# - id: 'darwin-amd64'
# os: 'macos-13'
# - id: 'darwin-aarch64'
# os: 'macos-latest'
# - id: 'windows-amd64'
# os: 'windows-2022'
# When unpacking an archive on Windows, the symlinks can't be
# created unless the target path already exists. This causes
# problems when the linked file is ordered after the link
Expand All @@ -28,16 +31,21 @@ jobs:
fail-fast: true

runs-on: ${{ matrix.target.os }}

container: ${{ matrix.container }}
steps:
- name: Check out the code
uses: actions/checkout@v3

- name: Install `ninja` on Ubuntu
if: startsWith(matrix.target.id, 'linux-')
if: startsWith(matrix.target.id, 'linux-amd64')
shell: bash
run: |
sudo apt-get install ninja-build -y
- name: Install `ninja` on Alpine
if: startsWith(matrix.target.id, 'linux-musl')
run: |
apk install ninja
- name: Install `ninja` on macOS
if: startsWith(matrix.target.id, 'darwin-')
Expand Down

0 comments on commit 3459334

Please sign in to comment.