diff --git a/.github/workflows/publish_to_pypi.yml b/.github/workflows/publish_to_pypi.yml index d71efa9..44e35c7 100644 --- a/.github/workflows/publish_to_pypi.yml +++ b/.github/workflows/publish_to_pypi.yml @@ -31,22 +31,13 @@ jobs: - uses: actions/setup-python@v5 with: python-version: '3.10' - - name: Create custom manylinux image with newer clang - run: | - docker run --name temp-container quay.io/pypa/manylinux_2_28_x86_64 bash -c " - yum update -y && - yum install -y clang-devel llvm-devel - " - docker commit temp-container manylinux-with-clang - docker rm temp-container - - name: Build wheels uses: PyO3/maturin-action@v1 with: target: ${{ matrix.target }} - args: --release --out dist --find-interpreter --features htslib + args: --release --out dist --find-interpreter sccache: 'true' - container: manylinux-with-clang + manylinux: auto - name: Upload wheels uses: actions/upload-artifact@v4 with: @@ -55,7 +46,6 @@ jobs: windows: runs-on: windows-latest - if: startsWith(github.ref, 'refs/tags/v') && (contains(github.ref, '-rc') || endsWith(github.ref, '.0')) strategy: matrix: target: [x64] @@ -64,15 +54,13 @@ jobs: - uses: actions/setup-python@v5 with: python-version: '3.10' - - name: Install LLVM - run: | - choco install llvm - echo "LIBCLANG_PATH=C:\\Program Files\\LLVM\\bin" >> $GITHUB_ENV + - name: Set LIBCLANG_PATH + run: echo "LIBCLANG_PATH=$((gcm clang).source -replace "clang.exe")" >> $env:GITHUB_ENV - name: Build wheels uses: PyO3/maturin-action@v1 with: target: ${{ matrix.target }} - args: --release --out dist --find-interpreter --features htslib + args: --release --out dist --find-interpreter sccache: 'true' - name: Upload wheels uses: actions/upload-artifact@v4 @@ -90,15 +78,11 @@ jobs: - uses: actions/setup-python@v5 with: python-version: '3.10' - - name: Install system dependencies - run: | - brew install llvm - echo "LIBCLANG_PATH=$(brew --prefix llvm)/lib" >> $GITHUB_ENV - name: Build wheels uses: PyO3/maturin-action@v1 with: target: ${{ matrix.target }} - args: --release --out dist --find-interpreter --features htslib + args: --release --out dist --find-interpreter sccache: 'true' - name: Upload wheels uses: actions/upload-artifact@v4