Skip to content

Commit

Permalink
CI: Stop building LTO wheels to avoid messing with the library build …
Browse files Browse the repository at this point in the history
…cache.
  • Loading branch information
scoder committed May 11, 2024
1 parent 81624c2 commit b325054
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 49 deletions.
39 changes: 0 additions & 39 deletions .github/workflows/ci.yml
Expand Up @@ -217,42 +217,3 @@ jobs:
name: pycoverage_html
path: coverage*
if-no-files-found: ignore

- name: Upload Wheel
uses: actions/upload-artifact@5d5d22a31266ced268874388b861e4b58bb5c2f3 # v4.3.1
if: matrix.env.STATIC_DEPS && !matrix.extra_hash
with:
name: wheels-${{ runner.os }}-${{ matrix.python-version }}
path: dist/*.whl
if-no-files-found: ignore

collect-wheels:
needs: [ci]
runs-on: ubuntu-latest
steps:
- name: Collect wheels
uses: actions/download-artifact@c850b930e6ba138125429b7e5c93fc707a7f8427 # v4.1.4
with:
path: ~/downloads
merge-multiple: true

- name: List downloaded artifacts
run: ls -la ~/downloads

- name: Upload Linux wheels
uses: actions/upload-artifact@5d5d22a31266ced268874388b861e4b58bb5c2f3 # v4.3.1
with:
name: wheels-linux
path: ~/downloads/*linux*.whl

- name: Upload macOS wheels
uses: actions/upload-artifact@5d5d22a31266ced268874388b861e4b58bb5c2f3 # v4.3.1
with:
name: wheels-macosx
path: ~/downloads/*macosx*.whl

- name: Upload Windows wheels
uses: actions/upload-artifact@5d5d22a31266ced268874388b861e4b58bb5c2f3 # v4.3.1
with:
name: wheels-windows
path: ~/downloads/*-win*.whl
10 changes: 0 additions & 10 deletions tools/ci-run.sh
Expand Up @@ -93,8 +93,6 @@ GITHUB_API_TOKEN="${SAVED_GITHUB_API_TOKEN}" \
$(if [[ "$COVERAGE" == "true" ]]; then echo -n " --with-coverage"; fi ) \
|| exit 1

ccache -s || true

# Run tests
echo "Running the tests ..."
GITHUB_API_TOKEN="${SAVED_GITHUB_API_TOKEN}" \
Expand All @@ -103,12 +101,4 @@ GITHUB_API_TOKEN="${SAVED_GITHUB_API_TOKEN}" \
PYTHONUNBUFFERED=x \
make test || exit 1

if [[ "$COVERAGE" != "true" ]]; then
echo "Building a clean wheel ..."
GITHUB_API_TOKEN="${SAVED_GITHUB_API_TOKEN}" \
CFLAGS="$EXTRA_CFLAGS -O3 -g1 -mtune=generic -fPIC -flto" \
LDFLAGS="-flto $EXTRA_LDFLAGS" \
make clean wheel || exit 1
fi

ccache -s || true

0 comments on commit b325054

Please sign in to comment.