Skip to content

Bump the github-actions group across 1 directory with 3 updates #55

Bump the github-actions group across 1 directory with 3 updates

Bump the github-actions group across 1 directory with 3 updates #55

Workflow file for this run

name: Release

Check failure on line 1 in .github/workflows/release.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/release.yml

Invalid workflow file

(Line: 29, Col: 38): Unrecognized named-value: 'runner'. Located at position 1 within expression: runner.temp, (Line: 30, Col: 25): Unrecognized named-value: 'runner'. Located at position 1 within expression: runner.temp
# Build and publish the unsigned Windows x64 release artifact on a rust-v* tag.
# The tag is created only after the soak-evidence review and an explicit operator
# go (see docs/active/items/RUST-FEAT-033.md).
on:
push:
tags:
- "rust-v*"
workflow_dispatch:
inputs:
ref:
description: "Tag or ref to build (rust-vX.Y.Z[-pre.N])"
required: true
permissions:
contents: write
env:
CARGO_TERM_COLOR: always
MINIUPNP_REF: bced81fb0b73ae78c9b911c89e881fbc6d4a5c7c
jobs:
windows-x64:
name: emulebb-rust-windows-x64
runs-on: windows-latest
env:
EMULEBB_WORKSPACE_ROOT: ${{ github.workspace }}
EMULEBB_WORKSPACE_OUTPUT_ROOT: ${{ runner.temp }}/emulebb-rust-out
CARGO_TARGET_DIR: ${{ runner.temp }}/emulebb-rust-out/builds/rust/target
steps:
- name: Checkout emulebb-rust
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
with:
ref: ${{ github.event.inputs.ref || github.ref }}
- name: Checkout emulebb-miniupnp (native C source)
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
with:
repository: emulebb/emulebb-miniupnp
ref: ${{ env.MINIUPNP_REF }}
path: .ci/emulebb-miniupnp
- name: Install pinned Rust
uses: dtolnay/rust-toolchain@1a3a6d54512beeaffd394f8d516ca16f2c506a20 # 1.97.0
- name: Set up Python
uses: actions/setup-python@ece7cb06caefa5fff74198d8649806c4678c61a1 # v6.3.0
with:
python-version: "3.12"
# Guard: the test-only egress-audit leak-test feature must never reach the
# release binary. The policy checker asserts it is not a default feature and
# not referenced by the daemon crate.
- name: Assert release build excludes test-only features
run: python tools/check_rust_client_policy.py
- name: Build fresh debug and release binaries
env:
MINIUPNP_ROOT: ${{ github.workspace }}/.ci/emulebb-miniupnp
run: python tools/rust_quality_gate.py build
- name: Package unsigned Windows x64 zip
shell: bash
env:
RELEASE_OUT_DIR: ${{ runner.temp }}/emulebb-rust-dist
run: >-
python tools/package_release_zip.py
--target-dir "$CARGO_TARGET_DIR/release"
--out "$RELEASE_OUT_DIR"
- name: Publish to the GitHub release
uses: softprops/action-gh-release@718ea10b132b3b2eba29c1007bb80653f286566b # v3.0.1
env:
RELEASE_OUT_DIR: ${{ runner.temp }}/emulebb-rust-dist
with:
files: |
${{ env.RELEASE_OUT_DIR }}/*.zip
${{ env.RELEASE_OUT_DIR }}/SHA256SUMS
fail_on_unmatched_files: true