Skip to content

Build for multiple arches #6

Build for multiple arches

Build for multiple arches #6

Workflow file for this run

name: cli-release
on:
workflow_dispatch:
release:
types: [published]
env:
CARGO_TERM_COLOR: always
jobs:
build-cli:
strategy:
matrix:

Check failure on line 14 in .github/workflows/cli-release.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/cli-release.yml

Invalid workflow file

You have an error in your yaml syntax on line 14
arch: ["x86_64", "aarch64"],
target: [
{ os: "ubuntu-latest", triple-suffix: "-unknown-linux-gnu" },
{ os: "windows-latest", triple-suffix: "-pc-windows-msvc" },
{ os: "macos-latest", triple-suffix: "-apple-darwin" }
]
runs-on: matrix.target.os
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
with:
targets: ${{ format('{0}{1}', matrix.arch, matrix.target.triple-suffix) }}
- name: build
run: |
cargo build \
--package divviup-cli \
--profile release \
--target ${{ format('{0}{1}', matrix.arch, matrix.target.triple-suffix) }}