-
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.
* MPICH: Configure --with-device=ch4:ofi,ucx * Open MPI: Configure --with-ofi --with-ucx * Reproducible builds * Strip binaries to reduce size * Remove unneeded binaries * Package various licenses
- Loading branch information
Showing
13 changed files
with
714 additions
and
127 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 |
---|---|---|
|
@@ -76,6 +76,7 @@ jobs: | |
shell: python | ||
name: 'setup build matrix' | ||
run: | | ||
# setup build matrix # " | ||
keys = ("os", "arch", "runner") | ||
rows = [ | ||
("Linux", "aarch64", "ubuntu-22.04"), | ||
|
@@ -93,6 +94,7 @@ jobs: | |
import os, json | ||
with open(os.getenv("GITHUB_OUTPUT"), "w") as out: | ||
print(f"matrix={json.dumps(matrix)}", file=out) | ||
# " | ||
build: | ||
needs: setup | ||
|
@@ -113,16 +115,21 @@ jobs: | |
if: ${{ runner.os == 'macOS' }} | ||
name: setup-macOS | ||
run: | | ||
# set macOS deployment target | ||
case $(uname -m) in | ||
arm64) echo MACOSX_DEPLOYMENT_TARGET=11.0 >> $GITHUB_ENV ;; | ||
x86_64) echo MACOSX_DEPLOYMENT_TARGET=10.15 >> $GITHUB_ENV ;; | ||
esac | ||
# create gfortran symlink | ||
cd $(brew --prefix)/bin | ||
gfortran=$(ls gfortran-* | sort | head -n 1) | ||
sudo ln -s $gfortran gfortran | ||
# unlink libevent | ||
brew unlink libevent || true | ||
# install autotools | ||
brew install autoconf | ||
brew install automake | ||
brew install libtool | ||
# unlink libevent | ||
brew unlink libevent || true | ||
# install uv | ||
brew install uv | ||
|
@@ -142,9 +149,14 @@ jobs: | |
|
||
- id: source-date-epoch | ||
run: | | ||
SOURCE_DATE_EPOCH=$(git log -1 --pretty=%ct) | ||
read -r SOURCE_DATE_EPOCH < source-date-epoch || true | ||
SOURCE_DATE_EPOCH=${SOURCE_DATE_EPOCH:-$(git log -1 --pretty=%ct)} | ||
echo SOURCE_DATE_EPOCH=$SOURCE_DATE_EPOCH >> $GITHUB_ENV | ||
echo $(git log -1 --pretty=%ci) [timestamp=$SOURCE_DATE_EPOCH] | ||
test $(uname) = Darwin && (echo ZERO_AR_DATE=1 >> $GITHUB_ENV) | ||
echo [SOURCE_DATE_EPOCH=$SOURCE_DATE_EPOCH] $( | ||
date -u -d @$SOURCE_DATE_EPOCH 2>/dev/null || | ||
date -u -r $SOURCE_DATE_EPOCH 2>/dev/null ) | ||
working-directory: package/source | ||
|
||
- id: build | ||
uses: pypa/[email protected] | ||
|
@@ -190,7 +202,9 @@ jobs: | |
- id: upload | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: wheel-${{ inputs.mpiname }}-${{ matrix.os }}-${{ matrix.arch }} | ||
name: "wheel-${{ inputs.mpiname }}-\ | ||
${{ inputs.version || 'latest' }}-\ | ||
${{ matrix.os }}-${{ matrix.arch }}" | ||
path: wheelhouse/*.whl | ||
|
||
- id: check | ||
|
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 |
---|---|---|
|
@@ -5,4 +5,5 @@ | |
/venv/ | ||
*.egg-info/ | ||
*.tar.gz | ||
*.tar.bz2 | ||
*~ |
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
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.