Skip to content

build(deps): bump the cargo-minor-patch group across 1 directory with 4 updates #433

build(deps): bump the cargo-minor-patch group across 1 directory with 4 updates

build(deps): bump the cargo-minor-patch group across 1 directory with 4 updates #433

Workflow file for this run

# SPDX-FileCopyrightText: 2025 Ryan Cao <[email protected]>
#
# SPDX-License-Identifier: GPL-3.0-or-later
name: Build
on:
push:
branches: ["main"]
pull_request:
branches: ["main"]
workflow_call:
inputs:
disable-cache:
type: boolean
default: false
permissions:
contents: read
jobs:
build:
strategy:
fail-fast: false
matrix:
target:
- "x86_64-apple-darwin"
- "aarch64-apple-darwin"
runs-on: macos-latest
steps:
- name: Checkout repository
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # ratchet:actions/checkout@v5
with:
persist-credentials: false
- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@5d458579430fc14a04a08a1e7d3694f545e91ce6 # ratchet:dtolnay/rust-toolchain@stable
with:
toolchain: stable
targets: ${{ matrix.target }}
- name: Setup Rust cache
uses: Swatinem/rust-cache@779680da715d629ac1d338a641029a2f4372abb5 # ratchet:Swatinem/rust-cache@v2
if: ${{ inputs.disable-cache != true }}
- name: Install cargo-auditable
uses: taiki-e/install-action@3d30e7d625f7c928dccd48823053b03bb2f6ed05 # ratchet:taiki-e/install-action@v2
with:
tool: cargo-auditable
- name: Build
run: cargo auditable build --release --locked --target ${{ matrix.target }}
env:
CARGO_PROFILE_RELEASE_LTO: "fat"
CARGO_PROFILE_RELEASE_CODEGEN_UNITS: "1"
- name: Rename artifact
run: cp ./target/${{ matrix.target }}/release/am ./am-${{ matrix.target }}
- name: Upload artifacts
uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # ratchet:actions/upload-artifact@v5
with:
name: am-${{ matrix.target }}
path: ./am-${{ matrix.target }}