diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 3c9f6c3c..3a8e2d12 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -87,7 +87,8 @@ jobs: pip install -U setuptools-rust && curl https://sh.rustup.rs -sSf | sh -s -- --default-toolchain=nightly --profile=minimal -y && rustup show - + CIBW_BEFORE_BUILD_MACOS: > + rustup target add x86_64-apple-darwin # - name: build windows 32bit binaries # if: matrix.os == 'windows' # run: cibuildwheel --output-dir dist @@ -107,7 +108,7 @@ jobs: - name: list dist files run: ${{ matrix.ls || 'ls -lh' }} dist/ - - uses: actions/upload-artifact@v3 + - uses: actions/upload-artifact@v4 with: path: ./dist/* @@ -117,7 +118,7 @@ jobs: runs-on: ubuntu-latest steps: - name: download files - uses: actions/download-artifact@v2.1.1 + uses: actions/download-artifact@v4 - name: set up Python 3.10 uses: actions/setup-python@v4 @@ -128,7 +129,13 @@ jobs: - run: twine check ./artifact/* - - name: upload files + - name: Publish distribution to Test PyPI + run: twine upload -r testpypi ./artifact/* + env: + TWINE_USERNAME: __token__ + TWINE_PASSWORD: ${{ secrets.FASTSIM_TEST_PYPI_TOKEN }} + + - name: Upload files to PyPI run: twine upload ./artifact/* env: TWINE_USERNAME: __token__ diff --git a/.github/workflows/wheels.yaml b/.github/workflows/wheels.yaml index 5640579b..bbc27ea9 100644 --- a/.github/workflows/wheels.yaml +++ b/.github/workflows/wheels.yaml @@ -89,7 +89,8 @@ jobs: pip install -U setuptools-rust && curl https://sh.rustup.rs -sSf | sh -s -- --default-toolchain=nightly --profile=minimal -y && rustup show - + CIBW_BEFORE_BUILD_MACOS: > + rustup target add x86_64-apple-darwin # - name: build windows 32bit binaries # if: matrix.os == 'windows' # run: cibuildwheel --output-dir dist