@@ -842,115 +842,6 @@ jobs:
842
842
name : wheels_uv_build-${{ matrix.platform.target }}
843
843
path : crates/uv-build/dist
844
844
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
-
954
845
musllinux :
955
846
if : ${{ !contains(github.event.pull_request.labels.*.name, 'no-build') }}
956
847
runs-on : ubuntu-latest
0 commit comments