Skip to content

refactor(hugrv2)!: combine TypeEnum with Term, no RV parametrization #4362

refactor(hugrv2)!: combine TypeEnum with Term, no RV parametrization

refactor(hugrv2)!: combine TypeEnum with Term, no RV parametrization #4362

Workflow file for this run

name: Rust Semver Checks
on:
pull_request_target:
branches:
- "**"
env:
LLVM_MAIN_VERSION: "21"
LLVM_VERSION: "21.1"
LLVM_FEATURE_NAME: "21-1"
jobs:
# Check if changes were made to the relevant files.
# Always returns true if running on the default branch, to ensure all changes are thoroughly checked.
changes:
name: Check for changes
runs-on: ubuntu-latest
permissions:
pull-requests: read
outputs:
rust: ${{ steps.filter.outputs.rust }}
python: ${{ steps.filter.outputs.python }}
steps:
- uses: actions/checkout@v6
- uses: ./.github/actions/check-changes
id: filter
rs-semver-checks:
runs-on: ubuntu-latest
needs: [changes]
if: ${{ needs.changes.outputs.rust == 'true' }}
env:
GITHUB_TOKEN: ${{ secrets.HUGRBOT_PAT }}
steps:
- 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
- name: Run Rust checks
uses: quantinuum/hugrverse-actions/rs-semver-checks@main
with:
token: ${{ secrets.HUGRBOT_PAT }}