Skip to content

actions: switch to new workflow #1

actions: switch to new workflow

actions: switch to new workflow #1

name: Build tftp (multi-arch)
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
env:
CARGO_TERM_COLOR: always
jobs:
build:
name: Build - ${{ matrix.platform.os-name }}
strategy:
matrix:
platform:
- os-name: Linux-x86_64
runs-on: ubuntu-latest
target: x86_64-unknown-linux-musl
- os-name: Linux-aarch64
runs-on: ubuntu-latest
target: aarch64-unknown-linux-musl
- os-name: macOS-x86_64
runs-on: macOS-latest
target: x86_64-apple-darwin
- os-name: macOS-arm64
runs-on: macOS-latest
target: aarch64-apple-darwin
runs-on: ${{ matrix.platform.runs-on }}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Build binary
uses: houseabsolute/actions-rust-cross@v1
with:
command: build
target: ${{ matrix.platform.target }}
args: "--release --all-features"
strip: false