Skip to content

chore(deps-dev): Bump the npm_and_yarn group across 2 directories with 2 updates #16

chore(deps-dev): Bump the npm_and_yarn group across 2 directories with 2 updates

chore(deps-dev): Bump the npm_and_yarn group across 2 directories with 2 updates #16

name: Release Builds
# Builds release binaries for all platforms on tag push and release PRs.
# Separated from ci.yml so that develop/feature CI skips expensive
# cross-platform release builds — these only matter for actual releases.
on:
push:
tags:
- 'v*'
pull_request:
branches: [main]
permissions:
contents: read
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
env:
CARGO_TERM_COLOR: always
jobs:
build-release:
name: Build Release (${{ matrix.os }})
runs-on: ${{ matrix.os }}
defaults:
run:
working-directory: crosslink
strategy:
matrix:
include:
- os: ubuntu-latest
target: x86_64-unknown-linux-musl
artifact: crosslink-linux
- os: macos-latest
target: x86_64-apple-darwin
artifact: crosslink-macos
- os: windows-latest
target: x86_64-pc-windows-msvc
artifact: crosslink-win.exe
steps:
- uses: actions/checkout@v4
- name: Install musl-tools (Linux only)
if: matrix.os == 'ubuntu-latest'
run: sudo apt-get update && sudo apt-get install -y musl-tools
- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@stable
with:
targets: ${{ matrix.target }}
- name: Build release
run: cargo build --locked --release --target ${{ matrix.target }}
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: ${{ matrix.artifact }}
path: crosslink/target/${{ matrix.target }}/release/crosslink${{ matrix.os == 'windows-latest' && '.exe' || '' }}