Skip to content

chore(main): release hugr-py 0.18.1 (#3145) #1382

chore(main): release hugr-py 0.18.1 (#3145)

chore(main): release hugr-py 0.18.1 (#3145) #1382

Workflow file for this run

# Automatic changelog, version bumping, and semver-checks with release-plz for rust projects
name: Release-plz 🦀
on:
push:
branches:
- main
env:
LLVM_MAIN_VERSION: "21"
LLVM_VERSION: "21.1"
LLVM_FEATURE_NAME: "21-1"
jobs:
release-plz-pr:
name: Create release-plz PR
runs-on: ubuntu-latest
# Ensure only one release-plz tries to create a PR at a time.
#
# If two instances update the PR simultaneously, one will see an outdated git ref
# and end up recreating the PR unnecessarily.
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}-pr
cancel-in-progress: true
steps:
- name: Checkout repository
uses: actions/checkout@v7
with:
fetch-depth: 0
token: ${{ secrets.HUGRBOT_PAT }}
- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@stable
- name: Create release PR
uses: MarcoIeni/release-plz-action@v0.5
env:
GITHUB_TOKEN: ${{ secrets.HUGRBOT_PAT }}
with:
command: release-pr
# This job triggers the release to crates.io if the current crate version is higher than the
# ones in the registry.
#
# Release-plz will only run on commits originating from a PR whose source branch started with
# `release-plz-` (see `release-always=false` in the config).
release-plz:
name: Release the crates
runs-on: ubuntu-latest
environment: crate-release
permissions:
id-token: write # Required for OIDC token exchange
steps:
- name: Checkout repository
uses: actions/checkout@v7
with:
fetch-depth: 0
token: ${{ secrets.HUGRBOT_PAT }}
- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@stable
# These are needed when doing a crate release, since `cargo release`
# checks that the crate can be compiled before publishing it.
- name: Install LLVM and Clang
run: |
wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key | sudo apt-key add -
sudo add-apt-repository 'deb http://apt.llvm.org/noble/ llvm-toolchain-noble-${{ env.LLVM_MAIN_VERSION }} main'
sudo apt update
sudo apt install llvm-${{ env.LLVM_MAIN_VERSION }} libpolly-${{ env.LLVM_MAIN_VERSION }}-dev
- uses: rust-lang/crates-io-auth-action@v1
id: auth
- name: Run release-plz
uses: MarcoIeni/release-plz-action@v0.5
env:
GITHUB_TOKEN: ${{ secrets.HUGRBOT_PAT }}
CARGO_REGISTRY_TOKEN: ${{ steps.auth.outputs.token }}
with:
command: release