Skip to content

Commit

Permalink
feat: GH actions build with cross
Browse files Browse the repository at this point in the history
  • Loading branch information
raphaelcoeffic committed Nov 4, 2024
1 parent d664b30 commit 3c67a6d
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Build

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

runs-on: ${{ matrix.platform.runs-on }}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Build binary
uses: houseabsolute/actions-rust-cross@v0
with:
command: ${{ matrix.platform.command }}
target: ${{ matrix.platform.target }}
args: "--locked --release"
strip: true

0 comments on commit 3c67a6d

Please sign in to comment.