Skip to content

Commit

Permalink
Support musllinux builds for some variety.
Browse files Browse the repository at this point in the history
  • Loading branch information
LTLA committed Oct 14, 2023
1 parent 1351bb1 commit 66afbdf
Showing 1 changed file with 30 additions and 1 deletion.
31 changes: 30 additions & 1 deletion .github/workflows/build-libraries.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,38 @@ jobs:
name: ${{ env.ARTIFACT_NAME }}
path: hdf5/${{ env.ARTIFACT_NAME }}.tar.gz

build_musllinux_x86_64:
name: Build musllinux (x86_64)
runs-on: ubuntu-latest
container:
image: quay.io/pypa/musllinux_1_1_x86_64
env:
ARTIFACT_NAME: musllinux_x86_64

steps:
- name: Checkout
uses: actions/checkout@v3

- name: Set up CMake
uses: lukka/get-cmake@latest

- name: Install wget
run: apk add --no-cache wget

- name: Run the build
run: |
git config --global --add safe.directory $(pwd)
./build.sh "${ARTIFACT_NAME}"
- name: Upload tarball
uses: actions/upload-artifact@v3
with:
name: ${{ env.ARTIFACT_NAME }}
path: hdf5/${{ env.ARTIFACT_NAME }}.tar.gz

publish:
name: Publish libraries
needs: [build_manylinux_x86_64]
needs: [build_manylinux_x86_64, build_musllinux_x86_64]
if: startsWith(github.ref, 'refs/tags/')
runs-on: ubuntu-latest

Expand Down

0 comments on commit 66afbdf

Please sign in to comment.