mirror of
https://github.com/cargo-bins/cargo-binstall.git
synced 2025-04-23 14:08:43 +00:00

`leon_macros::template!` can parse template at compile-time. It accepts a utf-8 string literal and uses `leon` internally to parse it, then generate code that evaluates to `Template<'static>`. - Exclude fuzz from crate leon when publishing - Impl fn-like proc-macro `leon_macros::template!` - Add dep `leon-macros` to binstalk - Use `leon_macros::template!` in `binstalk::fetchers::gh_crate_meta::hosting` - Add doc for `leon-macros` in `leon` - Improve `std::fmt::Display` impl for `leon::ParseError` - Fixed broken infra link in leon Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
53 lines
1.4 KiB
YAML
53 lines
1.4 KiB
YAML
name: Open a release PR
|
|
on:
|
|
workflow_dispatch:
|
|
inputs:
|
|
crate:
|
|
description: Crate to release
|
|
required: true
|
|
type: choice
|
|
options:
|
|
- bin
|
|
- binstalk
|
|
- binstalk-manifests
|
|
- binstalk-types
|
|
- binstalk-downloader
|
|
- detect-targets
|
|
- detect-wasi
|
|
- fs-lock
|
|
- normalize-path
|
|
- leon
|
|
- leon-macros
|
|
version:
|
|
description: Version to release
|
|
required: true
|
|
type: string
|
|
default: patch
|
|
|
|
jobs:
|
|
make-release-pr:
|
|
permissions:
|
|
id-token: write # Enable OIDC
|
|
pull-requests: write
|
|
contents: write
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
- name: Configure toolchain
|
|
run: |
|
|
rustup toolchain install --profile minimal --no-self-update nightly
|
|
rustup default nightly
|
|
- uses: chainguard-dev/actions/setup-gitsign@main
|
|
- name: Install cargo-release
|
|
uses: taiki-e/install-action@v2
|
|
with:
|
|
tool: cargo-release
|
|
|
|
- uses: cargo-bins/release-pr@v2
|
|
with:
|
|
github-token: ${{ secrets.GITHUB_TOKEN }}
|
|
version: ${{ inputs.version }}
|
|
crate-path: crates/${{ inputs.crate }}
|
|
pr-label: release
|
|
pr-release-notes: ${{ inputs.crate == 'bin' }}
|
|
pr-template-file: .github/scripts/release-pr-template.ejs
|