Skip to content

release

release #6

Workflow file for this run

# workflow from gh-difftoo
name: release
on:
push:
tags:
- "v*"
workflow_dispatch:
inputs:
dry_run:
description: "Dry run (test without creating release)"
required: false
default: "true"
type: boolean
permissions:
contents: write
jobs:
release:
strategy:
fail-fast: false
matrix:
include:
- target: darwin-amd64
os: macos-latest
cargo_build_target: x86_64-apple-darwin
- target: darwin-arm64
os: macos-latest
cargo_build_target: aarch64-apple-darwin
- target: linux-amd64
os: ubuntu-latest
cargo_build_target: x86_64-unknown-linux-gnu
runs-on: ${{ matrix.os }}
env:
CARGO_BUILD_TARGET: ${{ matrix.cargo_build_target }}
TARGET: ${{ matrix.target }}
steps:
- uses: actions/checkout@v5
- uses: Swatinem/rust-cache@v2
- name: Build
shell: bash
run: scripts/build_dist.sh release
- uses: cli/gh-extension-precompile@v2
if: github.event_name == 'push' || (github.event_name == 'workflow_dispatch' && !inputs.dry_run)
with:
build_script_override: "scripts/build_dist.sh"