Skip to content

Commit 6876716

Browse files
authored
Revert "feat(ci): build loongarch64 binaries in CI (#15387)" (#15820)
1 parent b1fbb52 commit 6876716

File tree

3 files changed

+0
-115
lines changed

3 files changed

+0
-115
lines changed

.github/workflows/build-binaries.yml

Lines changed: 0 additions & 109 deletions
Original file line numberDiff line numberDiff line change
@@ -842,115 +842,6 @@ jobs:
842842
name: wheels_uv_build-${{ matrix.platform.target }}
843843
path: crates/uv-build/dist
844844

845-
linux-loongarch64:
846-
if: ${{ !contains(github.event.pull_request.labels.*.name, 'no-build') }}
847-
timeout-minutes: 30
848-
runs-on: ubuntu-latest
849-
strategy:
850-
matrix:
851-
platform:
852-
- target: loongarch64-unknown-linux-gnu
853-
arch: loong64
854-
base_image: --platform=linux/loong64 ghcr.io/loong64/debian:trixie
855-
856-
steps:
857-
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
858-
with:
859-
persist-credentials: false
860-
861-
- uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0
862-
with:
863-
python-version: ${{ env.PYTHON_VERSION }}
864-
- name: "Prep README.md"
865-
run: python scripts/transform_readme.py --target pypi
866-
867-
# uv
868-
- name: "Build wheels"
869-
uses: PyO3/maturin-action@86b9d133d34bc1b40018696f782949dac11bd380 # v1.49.4
870-
with:
871-
target: ${{ matrix.platform.target }}
872-
manylinux: auto
873-
docker-options: ${{ matrix.platform.maturin_docker_options }}
874-
args: --release --locked --out dist --features self-update
875-
- uses: uraimo/run-on-arch-action@d94c13912ea685de38fccc1109385b83fd79427d # v3.0.1
876-
name: "Test wheel"
877-
with:
878-
base_image: ${{ matrix.platform.base_image }}
879-
githubToken: ${{ github.token }}
880-
install: |
881-
apt-get update
882-
apt-get install -y --no-install-recommends python3 python3-pip python-is-python3 python3-venv
883-
run: |
884-
python3 -m venv .venv
885-
.venv/bin/pip install -U pip
886-
source .venv/bin/activate
887-
pip install ${PACKAGE_NAME} --no-index --find-links dist/ --force-reinstall
888-
${MODULE_NAME} --help
889-
# TODO(konsti): Enable this test on all platforms, currently `find_uv_bin` is failing to discover uv here.
890-
# python -m ${MODULE_NAME} --help
891-
uvx --help
892-
env: |
893-
PACKAGE_NAME: ${{ env.PACKAGE_NAME }}
894-
MODULE_NAME: ${{ env.MODULE_NAME }}
895-
- name: "Upload wheels"
896-
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
897-
with:
898-
name: wheels_uv-${{ matrix.platform.target }}
899-
path: dist
900-
- name: "Archive binary"
901-
shell: bash
902-
run: |
903-
ARCHIVE_NAME=uv-$TARGET
904-
ARCHIVE_FILE=$ARCHIVE_NAME.tar.gz
905-
906-
mkdir -p $ARCHIVE_NAME
907-
cp target/$TARGET/release/uv $ARCHIVE_NAME/uv
908-
cp target/$TARGET/release/uvx $ARCHIVE_NAME/uvx
909-
tar czvf $ARCHIVE_FILE $ARCHIVE_NAME
910-
shasum -a 256 $ARCHIVE_FILE > $ARCHIVE_FILE.sha256
911-
env:
912-
TARGET: ${{ matrix.platform.target }}
913-
- name: "Upload binary"
914-
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
915-
with:
916-
name: artifacts-${{ matrix.platform.target }}
917-
path: |
918-
*.tar.gz
919-
*.sha256
920-
921-
# uv-build
922-
- name: "Build wheels uv-build"
923-
uses: PyO3/maturin-action@86b9d133d34bc1b40018696f782949dac11bd380 # v1.49.4
924-
with:
925-
target: ${{ matrix.platform.target }}
926-
manylinux: auto
927-
docker-options: ${{ matrix.platform.maturin_docker_options }}
928-
args: --profile minimal-size --locked --out crates/uv-build/dist -m crates/uv-build/Cargo.toml
929-
- uses: uraimo/run-on-arch-action@d94c13912ea685de38fccc1109385b83fd79427d # v3.0.1
930-
name: "Test wheel uv-build"
931-
with:
932-
base_image: ${{ matrix.platform.base_image }}
933-
githubToken: ${{ github.token }}
934-
install: |
935-
apt-get update
936-
apt-get install -y --no-install-recommends python3 python3-pip python-is-python3 python3-venv
937-
run: |
938-
python3 -m venv .venv
939-
.venv/bin/pip install -U pip
940-
source .venv/bin/activate
941-
pip install ${PACKAGE_NAME}-build --no-index --find-links crates/uv-build/dist --force-reinstall
942-
${MODULE_NAME}-build --help
943-
# TODO(konsti): Enable this test on all platforms, currently `find_uv_bin` is failing to discover uv here.
944-
# python -m ${MODULE_NAME}-build --help
945-
env: |
946-
PACKAGE_NAME: ${{ env.PACKAGE_NAME }}
947-
MODULE_NAME: ${{ env.MODULE_NAME }}
948-
- name: "Upload wheels uv-build"
949-
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
950-
with:
951-
name: wheels_uv_build-${{ matrix.platform.target }}
952-
path: crates/uv-build/dist
953-
954845
musllinux:
955846
if: ${{ !contains(github.event.pull_request.labels.*.name, 'no-build') }}
956847
runs-on: ubuntu-latest

.github/workflows/publish-pypi.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,6 @@ jobs:
2828
pattern: wheels_uv-*
2929
path: wheels_uv
3030
merge-multiple: true
31-
- name: Remove wheels unsupported by PyPI
32-
run: rm wheels_uv/*loong*
3331
- name: Publish to PyPI
3432
run: uv publish -v wheels_uv/*
3533

@@ -49,7 +47,5 @@ jobs:
4947
pattern: wheels_uv_build-*
5048
path: wheels_uv_build
5149
merge-multiple: true
52-
- name: Remove wheels unsupported by PyPI
53-
run: rm wheels_uv_build/*loong*
5450
- name: Publish to PyPI
5551
run: uv publish -v wheels_uv_build/*

dist-workspace.toml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ targets = [
2929
"powerpc64le-unknown-linux-gnu",
3030
"riscv64gc-unknown-linux-gnu",
3131
"s390x-unknown-linux-gnu",
32-
"loongarch64-unknown-linux-gnu",
3332
"x86_64-unknown-linux-gnu",
3433
"x86_64-unknown-linux-musl",
3534
"x86_64-pc-windows-msvc",
@@ -73,7 +72,6 @@ global = "depot-ubuntu-latest-4"
7372
# Override glibc version for specific target triplets.
7473
aarch64-unknown-linux-gnu = "2.28"
7574
riscv64gc-unknown-linux-gnu = "2.31"
76-
loongarch64-unknown-linux-gnu = "2.36"
7775
# Override all remaining glibc versions.
7876
"*" = "2.17"
7977

0 commit comments

Comments
 (0)