mirror of
https://github.com/cargo-bins/cargo-binstall.git
synced 2025-04-20 20:48:43 +00:00
Fix release-packages
and release-cli
workflow (#1422)
* Fix `release-packages` and `release-cli` workflow Fixed #1419 Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com> * Use `taiki-e/install-action` for `rsign2` & `rage` in `release-packages.yml` Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com> --------- Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
This commit is contained in:
parent
6ce60225d4
commit
3d68641a6d
4 changed files with 11 additions and 8 deletions
1
.github/scripts/ephemeral-gen.sh
vendored
1
.github/scripts/ephemeral-gen.sh
vendored
|
@ -2,7 +2,6 @@
|
|||
|
||||
set -euxo pipefail
|
||||
|
||||
cargo binstall -y rsign2 rage
|
||||
rsign generate -f -W -p minisign.pub -s minisign.key
|
||||
|
||||
set +x
|
||||
|
|
1
.github/scripts/ephemeral-sign.sh
vendored
1
.github/scripts/ephemeral-sign.sh
vendored
|
@ -7,7 +7,6 @@ cat >> age.key <<< "$AGE_KEY_SECRET"
|
|||
|
||||
set -x
|
||||
|
||||
cargo binstall -y rsign2 rage
|
||||
rage --decrypt --identity age.key --output minisign.key minisign.key.age
|
||||
|
||||
ts=$(node -e 'console.log((new Date).toISOString())')
|
||||
|
|
6
.github/workflows/release-cli.yml
vendored
6
.github/workflows/release-cli.yml
vendored
|
@ -34,7 +34,13 @@ jobs:
|
|||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- uses: cargo-bins/cargo-binstall@main
|
||||
- name: Install binaries required
|
||||
run: cargo binstall -y --force rsign2 rage
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
- name: Create ephemeral keypair
|
||||
id: keypair
|
||||
env:
|
||||
|
|
11
.github/workflows/release-packages.yml
vendored
11
.github/workflows/release-packages.yml
vendored
|
@ -62,13 +62,10 @@ jobs:
|
|||
if: inputs.CARGO_PROFILE_RELEASE_CODEGEN_UNITS
|
||||
run: echo "CARGO_PROFILE_RELEASE_CODEGEN_UNITS=${{ inputs.CARGO_PROFILE_RELEASE_CODEGEN_UNITS }}" >> "$GITHUB_ENV"
|
||||
|
||||
- uses: cargo-bins/cargo-binstall@main
|
||||
- uses: ./.github/actions/just-setup
|
||||
with:
|
||||
tools: cargo-auditable
|
||||
tools: cargo-auditable,rsign2,rage
|
||||
env:
|
||||
# just-setup use binstall to install sccache and cargo-auditable,
|
||||
# which works better when we provide it with GITHUB_TOKEN.
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
- run: just toolchain rust-src
|
||||
|
@ -135,10 +132,12 @@ jobs:
|
|||
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: cargo-bins/cargo-binstall@main
|
||||
|
||||
- uses: taiki-e/install-action@v2
|
||||
with:
|
||||
tool: just
|
||||
tool: just,rsign2,rage
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
- uses: actions/download-artifact@v3
|
||||
with:
|
||||
|
|
Loading…
Add table
Reference in a new issue