-
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.
- Loading branch information
1 parent
542dfc0
commit d664443
Showing
9 changed files
with
96 additions
and
9 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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
name: scipy-openblas32 | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
app_name: | ||
description: 'Build package' | ||
required: true | ||
default: 'MacPython/openblas-libs' | ||
app_version: | ||
description: 'Build version' | ||
required: true | ||
default: 'latest' | ||
build_manylinux: | ||
description: 'Build manylinux' | ||
required: true | ||
default: 'cp39-manylinux_*' | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout Code | ||
uses: actions/checkout@v4 | ||
with: | ||
repository: ${{ github.event.inputs.app_name }} | ||
ref: ${{ github.event.inputs.app_version }} | ||
|
||
- name: Cache build | ||
uses: actions/cache@v4 | ||
with: | ||
path: | | ||
/home/runner/data/cache | ||
key: ${{ runner.os }}-scipy-openblas32 | ||
restore-keys: | | ||
${{ runner.os }}-scipy-openblas32 | ||
- name: Setup Cache | ||
run: | | ||
sudo mkdir -p /home/runner/data/cache/.cache /home/runner/data/cache/dnf | ||
sudo chown -R root:docker /home/runner/data/cache | ||
sudo mkdir -p /tmp/pip | ||
sudo wget -O /tmp/pip/pip.conf https://github.com/loong64/buildwheel/raw/refs/heads/master/pip.conf | ||
- name: Setup QEMU | ||
run: docker run --rm --privileged ghcr.io/loong64/qemu-user-static --reset -p yes | ||
|
||
- name: Build wheels | ||
uses: loong64/cibuildwheel@main | ||
env: | ||
CIBW_MANYLINUX_LOONGARCH64_IMAGE: manylinux_2_38 | ||
CIBW_ARCHS: loongarch64 | ||
CIBW_BUILD: ${{ github.event.inputs.build_manylinux }} | ||
CIBW_TEST_SKIP: "*" | ||
CIBW_BEFORE_ALL_LINUX: > | ||
mv /host/tmp/pip /root/.pip && | ||
ln -sf /host/home/runner/data/cache/.cache /root/.cache && | ||
ln -sf /host/home/runner/data/cache/dnf /var/cache/dnf && | ||
- name: Upload wheels | ||
run: | | ||
pip install twine | ||
twine upload --repository-url https://gitlab.com/api/v4/projects/65746188/packages/pypi wheelhouse/*.whl | ||
env: | ||
TWINE_USERNAME: ${{ github.repository_owner }} | ||
TWINE_PASSWORD: ${{ secrets.GL_TOKEN }} | ||
|
||
- name: Cache permissions | ||
run: | | ||
sudo chown -R runner:docker /home/runner/data/cache |
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,3 @@ | ||
[global] | ||
index-url = https://gitlab.com/api/v4/projects/65746188/packages/pypi/simple | ||
trusted-host = gitlab.com |