fix: fix building libz-sys (#420) #100
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on: | |
push: | |
branches: | |
- master | |
name: release-please | |
jobs: | |
release-please: | |
if: github.repository_owner == 'rust-bio' | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
submodules: recursive | |
- uses: GoogleCloudPlatform/release-please-action@v3 | |
id: release_main | |
with: | |
release-type: rust | |
package-name: rust-htslib | |
bump-minor-pre-major: true | |
- name: Install stable toolchain | |
uses: actions-rs/toolchain@v1 | |
if: ${{ steps.release_main.outputs.release_created }} | |
with: | |
toolchain: stable | |
override: true | |
- name: Install system dependencies | |
if: ${{ steps.release_main.outputs.release_created }} | |
run: | | |
sudo apt-get install --yes zlib1g-dev libbz2-dev musl musl-dev musl-tools clang libc6-dev | |
- uses: Swatinem/[email protected] | |
if: ${{ steps.release_main.outputs.release_created }} | |
- name: Publish rust-htslib | |
if: ${{ steps.release_main.outputs.release_created }} | |
uses: actions-rs/cargo@v1 | |
with: | |
command: publish | |
args: --token ${{ secrets.CRATES_IO_TOKEN }} | |
# - uses: katyo/publish-crates@v1 | |
# if: ${{ steps.release_main.outputs.release_created || steps.release_sys.outputs.release_created }} | |
# with: | |
# registry-token: ${{ secrets.CRATES_IO_TOKEN }} |