Skip to content

build(deps): bump taiki-e/install-action from 2.62.37 to 2.62.49 #423

build(deps): bump taiki-e/install-action from 2.62.37 to 2.62.49

build(deps): bump taiki-e/install-action from 2.62.37 to 2.62.49 #423

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@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # 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@98c8021b550208e191a6a3145459bfc9fb29c4c0 # ratchet:Swatinem/rust-cache@v2
if: ${{ inputs.disable-cache != true }}
- name: Install cargo-auditable
uses: taiki-e/install-action@44c6d64aa62cd779e873306675c7a58e86d6d532 # 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@330a01c490aca151604b8cf639adc76d48f6c5d4 # ratchet:actions/upload-artifact@v5
with:
name: am-${{ matrix.target }}
path: ./am-${{ matrix.target }}