Skip to content

fix: Avoid re-calculating md5sum on clone and conversion to KmerMinHa… #7580

fix: Avoid re-calculating md5sum on clone and conversion to KmerMinHa…

fix: Avoid re-calculating md5sum on clone and conversion to KmerMinHa… #7580

Workflow file for this run

name: cibuildwheel
permissions: write-all
on:
push:
branches: [latest]
tags: v*
pull_request:
schedule:
- cron: "0 0 * * *" # daily
jobs:
build_wheels:
name: Build wheels for ${{ matrix.os }}-${{ matrix.arch }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
build: [
linux-x86_64,
macos-x86_64,
macos-arm64,
]
include:
- build: linux-x86_64
os: ubuntu-20.04
arch: x86_64
macos_target: ''
- build: macos-x86_64
os: macos-latest
arch: x86_64
macos_target: 'MACOSX_DEPLOYMENT_TARGET=11.0 CARGO_BUILD_TARGET=x86_64-apple-darwin'
- build: macos-arm64
os: macos-latest
arch: arm64
macos_target: 'MACOSX_DEPLOYMENT_TARGET=11.0 CARGO_BUILD_TARGET=aarch64-apple-darwin'
fail-fast: false
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-python@v5
name: Install Python
with:
python-version: '3.10'
- name: Build wheels
uses: pypa/[email protected]
env:
CIBW_ENVIRONMENT_MACOS: ${{ matrix.macos_target }}
CIBW_ARCHS_LINUX: ${{ matrix.arch }}
CIBW_ARCHS_MACOS: ${{ matrix.arch }}
- uses: actions/upload-artifact@v4
with:
name: wheel-${{ matrix.build }}-${{ matrix.os }}
path: './wheelhouse/sourmash*.whl'
build_wasm:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v4
- name: Build wheels
uses: pypa/[email protected]
env:
CIBW_PLATFORM: pyodide
CIBW_BUILD: 'cp312-pyodide_wasm32'
- uses: actions/upload-artifact@v4
with:
name: wheel-wasm
path: './wheelhouse/sourmash*.whl'
release:
name: Publish wheels
runs-on: ubuntu-20.04
if: startsWith(github.ref, 'refs/tags/v')
needs: [build_wheels, build_wasm]
steps:
- name: Fetch wheels from artifacts
id: fetch_artifacts
uses: actions/download-artifact@v4
with:
path: 'wheels/'
# if it matches a Python release tag, upload to github releases
- name: Release
uses: softprops/action-gh-release@v2
with:
files: |
${{steps.fetch_artifacts.outputs.download-path}}/wheel-*/*