-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Switch to Docker images for the Linux builds.
- Loading branch information
Showing
6 changed files
with
56 additions
and
98 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
on: | ||
push: | ||
tags: | ||
- '*' | ||
workflow_dispatch: | ||
|
||
name: Publish Docker image | ||
|
||
jobs: | ||
publish_docker: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
arch: [manylinux_x86_64, musllinux_x86_64] | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
|
||
- name: Publish to Registry | ||
uses: elgohr/Publish-Docker-Github-Action@master | ||
with: | ||
name: ${{ github.repository }}/${{ matrix.arch }}:${{ github.ref_name }} | ||
username: ${{ github.actor }} | ||
password: ${{ secrets.GITHUB_TOKEN }} | ||
dockerfile: ${{ matrix.arch }}.dockerfile | ||
registry: ghcr.io |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,8 @@ | ||
# Build HDF5 libraries for Python packages | ||
|
||
Pretty much does as I say. | ||
Builds HDF5 libraries (version 1.12.2) so that they can be used for linking in various Python packages. | ||
This attempts to match the build process used by [`cibuildwheel`](https://github.com/pypa/cibuildwheel): | ||
|
||
- For `manylinux_x86_64`, we create a Docker image based on `quay.io/pypa/manylinux2014_x86_64`. | ||
- For `musllinux_x86_64`, we create a Docker image based on `quay.io/pypa/musllinux_1_1_x86_64`. | ||
- For `macosx_x86_64`, we build binaries using the `macosx-11` runner. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
FROM quay.io/pypa/manylinux2014_x86_64 | ||
WORKDIR /home/root | ||
COPY build.sh build.sh | ||
RUN bash build.sh "-DCMAKE_INSTALL_PREFIX=/usr/local" | ||
CMD ["/bin/bash"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
FROM quay.io/pypa/musllinux_1_1_x86_64 | ||
WORKDIR /home/root | ||
COPY build.sh build.sh | ||
RUN bash build.sh "-DCMAKE_INSTALL_PREFIX=/usr/local" | ||
CMD ["/bin/bash"] |