From b072352ffcd9b33c3b86c8e94a3f91c2b38c52ea Mon Sep 17 00:00:00 2001 From: chrisjbillington Date: Mon, 20 Jun 2022 21:45:44 +1000 Subject: [PATCH] Resolve problem with building manylinux wheels Due to this issue: https://github.com/pypa/manylinux/issues/1309 Can likely remove the "pre-build command" once the following is merged and released in setuptools_scm: https://github.com/pypa/setuptools_scm/pull/708 Bumping version of actions/checkout may or may not be necessary Bumping other versions not necessary but why not --- .github/workflows/release.yml | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 2dec02b..ac022e4 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -60,7 +60,7 @@ jobs: if: github.repository == 'rpanderson/workflow-sandbox' && (github.event_name != 'create' || github.event.ref_type != 'branch') steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v3 with: fetch-depth: 0 @@ -69,7 +69,7 @@ jobs: run: git tag -d $(git tag --points-at HEAD) - name: Install Python - uses: actions/setup-python@v2 + uses: actions/setup-python@v4 with: python-version: ${{ matrix.python }} architecture: ${{ matrix.arch }} @@ -89,7 +89,7 @@ jobs: - name: Upload Artifact if: strategy.job-index == 0 || (env.PURE == 'false' && runner.os != 'Linux') - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v3 with: name: dist path: ./dist @@ -136,7 +136,7 @@ jobs: setuptools-conda build %CONDA_BUILD_ARGS% --croot ${{ runner.temp }}\cb . - name: Upload Artifact - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v3 with: name: conda_packages path: ./conda_packages @@ -149,7 +149,7 @@ jobs: steps: - name: Checkout if: env.PURE == 'false' - uses: actions/checkout@v2 + uses: actions/checkout@v3 with: fetch-depth: 0 @@ -162,10 +162,11 @@ jobs: uses: RalfG/python-wheels-manylinux-build@v0.4.2 with: python-versions: 'cp37-cp37m cp38-cp38 cp39-cp39 cp310-cp310' + pre-build-command: 'git config --global --add safe.directory "*"' - name: Upload Artifact if: env.PURE == 'false' - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v3 with: name: dist path: dist/*manylinux*.whl @@ -177,13 +178,13 @@ jobs: steps: - name: Download Artifact - uses: actions/download-artifact@v2 + uses: actions/download-artifact@v3 with: name: dist path: ./dist - name: Download Artifact - uses: actions/download-artifact@v2 + uses: actions/download-artifact@v3 with: name: conda_packages path: ./conda_packages