Skip to content

Update Rust crate proc-macro2 to v1.0.107 #173

Update Rust crate proc-macro2 to v1.0.107

Update Rust crate proc-macro2 to v1.0.107 #173

name: Release rfd-api and rfd-processor
on:
push:
tags:
- "**[0-9]+.[0-9]+.[0-9]+*"
pull_request:
types: [labeled, synchronize]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
release:
if: >-
github.repository_owner == 'oxidecomputer' && (
github.event_name == 'push' ||
github.event.label.name == 'release-test' ||
contains(github.event.pull_request.labels.*.name, 'release-test')
)
runs-on: ubuntu-24.04
permissions:
contents: write
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- name: Determine release tag
id: tag
shell: bash
run: |
if [ "${{ github.event_name }}" = "pull_request" ]; then
echo "value=v0.0.0-pre+${GITHUB_SHA::7}" >> "$GITHUB_OUTPUT"
else
echo "value=${{ github.ref_name }}" >> "$GITHUB_OUTPUT"
fi
- run: |
rustup toolchain install
- name: Build Release Binaries
run: |
cargo build --release --package rfd-api --package rfd-processor
- uses: ncipollo/release-action@caacf56b56ba217c4eaf0a9deb59dbcdd12abfcd
with:
allowUpdates: true
draft: ${{ github.event_name == 'pull_request' }}
tag: ${{ steps.tag.outputs.value }}
artifacts: "target/release/rfd-api,target/release/rfd-processor"
generateReleaseNotes: true