Skip to content

Commit

Permalink
actions: switch to new workflow
Browse files Browse the repository at this point in the history
Signed-off-by: Jonas Jelonek <[email protected]>
  • Loading branch information
jonasjelonek committed Jan 9, 2025
1 parent dce7e9e commit 2221f64
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 26 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/rust-multiarch.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
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
26 changes: 0 additions & 26 deletions .github/workflows/rust.yml

This file was deleted.

0 comments on commit 2221f64

Please sign in to comment.