feat: build target freebsd #20
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Cross build test workflow | |
on: | |
pull_request: | |
branches: | |
- main | |
jobs: | |
build: | |
runs-on: self-hosted | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: install Deps | |
run: | | |
sudo apt-get update | |
sudo apt-get install -y musl-tools | |
- name: Setup Rust toolchain | |
uses: dtolnay/rust-toolchain@stable | |
- name: cargo build | |
uses: actions-rs/cargo@v1 | |
with: | |
use-cross: true | |
command: build | |
args: --release --locked --target x86_64-unknown-freebsd |