-
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.
Add HDF5 support for building wheels (#5)
* Remove boost from sdist build, not needed * Bump cibuildwheel and some cleanup * Bump boost to 1.85.0 * Config updates * Add hdf5 for macos and turn off fail fast * Move some more config to pyproject.toml * Update some build steps from h5py * Star the python config * Use boost install action on Linux * Adapt windows builder from h5py * Update macos build after h5py * Checkout the repo * D'oh * Hopefully fixes for boost * Fix boost locations * Fix paths to script locations * Boost is built-in to the Linux cibuildwheel image now * Set MACOSX_DEPLOYMENT_TARGET for hdf5 We need to set MACOSX_DEPLOYMENT_TARGET when building HDF5, explained here https://github.com/h5py/h5py/pull/2444/files#r1679541011 * Fix boost arch for macos * Cache HDF5 after building * Try setting up HDF5 libs for macOS * Fix boost paths on Windows * More Boost fixes * Move building hdf5 into macos script * Set MACOSX_DEPLOYMENT_TARGET to support C++17 * Fix some bash syntax errors * Patch libaec * Debugging * Fix dots and dashes in hdf5 version * Fix building HDF5 on macOS * Add container engine config to environment * Bump MACOSX_DEPLOYMENT_TARGET Latest error message says 10.15 * Export variables on macos to the environment * Fix Windows test paths * Simplify to a single job definition * Rename the action file * Add arch to boost installer * Need to set boost arch for macos * Fix download action * Cache pip dependencies * Fix build selectors on macOS * Action garbage * Quoting problems * Windows updates * Typo! * Fix a macos arm misconfig * Set HDF5 and ZLIB dirs so delvewheel config doesn't need to know the installation structure * Clean up unused script and add README * Try to clean up env var setting * Set CMAKE parallel level on Windows The other platforms should use Ninja which is automatically parallel * Formatting and updates * Address review comments
- Loading branch information
1 parent
b5b5354
commit 2a48c5b
Showing
7 changed files
with
615 additions
and
149 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
name: "Download Cantera Test Files" | ||
description: "Download and cache Cantera's Python test suite" | ||
inputs: | ||
incoming-sha: | ||
description: The hash of the commit that should be downloaded | ||
required: true | ||
outputs: | ||
test-root: | ||
description: The root folder where the tests are located | ||
value: ${{ steps.set-output.outputs.DESTINATION_PATH }} | ||
|
||
runs: | ||
using: "composite" | ||
steps: | ||
- name: Sanitize the destination path | ||
run: | | ||
$DESTINATION_PATH = "${{ runner.temp }}" -replace "\\", "/" | ||
echo "DESTINATION_PATH=$DESTINATION_PATH" | Out-File -FilePath $Env:GITHUB_ENV -Encoding utf8 -Append | ||
if: runner.os == 'Windows' | ||
shell: pwsh | ||
- name: Sanitize the destination path | ||
run: echo "DESTINATION_PATH=${{ runner.temp }}" >> $GITHUB_ENV | ||
shell: bash | ||
if: runner.os != 'Windows' | ||
- name: Set the outputs | ||
id: set-output | ||
run: echo "DESTINATION_PATH=${{ env.DESTINATION_PATH }}" >> $GITHUB_OUTPUT | ||
shell: bash | ||
- name: Download and unpack the tarball | ||
if: steps.restore-cache.outputs.cache-hit != 'true' | ||
run: | | ||
curl -fsSL "https://github.com/cantera/cantera/archive/${{ inputs.incoming-sha }}.tar.gz" -o cantera.tar.gz | ||
tar -xzf cantera.tar.gz --strip-components=1 "cantera-${{ inputs.incoming-sha }}/test" | ||
rm cantera.tar.gz | ||
shell: bash | ||
working-directory: ${{ steps.set-output.outputs.DESTINATION_PATH }} | ||
- name: Save the test file cache | ||
uses: actions/cache/save@v4 | ||
if: always() && steps.restore-cache.outputs.cache-hit != true | ||
id: save-cache | ||
with: | ||
path: ${{ steps.set-output.outputs.DESTINATION_PATH }}/test | ||
key: ${{ steps.restore-cache.outputs.cache-primary-key }} |
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
Oops, something went wrong.