From cae0dc2bf439dd7f00a0675cc8319ad0fee3f558 Mon Sep 17 00:00:00 2001 From: Miikka Koskinen Date: Tue, 6 Aug 2024 20:30:57 +0300 Subject: [PATCH] Fix Python CI build for musllinux --- .github/workflows/publish-python.yml | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/.github/workflows/publish-python.yml b/.github/workflows/publish-python.yml index abb6cce1..905641cd 100644 --- a/.github/workflows/publish-python.yml +++ b/.github/workflows/publish-python.yml @@ -213,23 +213,22 @@ jobs: with: target: x86_64-unknown-linux-musl manylinux: musllinux_1_2 - args: --release --interpreter python${{ matrix.python-version}} --out /io/dist -m pytrustfall/Cargo.toml + args: --release --interpreter python${{ matrix.python-version}} --out dist -m pytrustfall/Cargo.toml - name: Install built wheel uses: addnab/docker-run-action@v3 with: - image: alpine:latest + image: python:${{ matrix.python-version }}-alpine options: -v ${{ github.workspace }}:/io -w /io run: | - apk add py3-pip - pip3 install -U pip ls -alh /io/dist/ - pip3 install trustfall --no-index --find-links /io/dist/ --force-reinstall - python3 -c "import trustfall" + pip install trustfall --no-index --find-links /io/dist/ --force-reinstall + pip -c "import trustfall" - name: Upload wheels uses: actions/upload-artifact@v4 with: name: wheels-musllinux-${{ matrix.python-version }} - path: /io/dist/*.whl + path: dist/*.whl + if-no-files-found: error # should-publish: # name: Did version change