Skip to content

Migrate to cargo zigbuild #271

Migrate to cargo zigbuild

Migrate to cargo zigbuild #271

Workflow file for this run

name: LLRT CI
on:
push:
branches:
- "main"
pull_request:
# Only run on the latest ref
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
jobs:
check:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
submodules: true
- name: Setup Rust
uses: dtolnay/rust-toolchain@v1
with:
toolchain: stable
components: clippy, rustfmt
- name: Cargo cache
uses: actions/cache@v4
with:
path: |
~/.cargo/registry
~/.cargo/git
key: ${{ runner.os }}-cargo-rust_stable-${{ hashFiles('**/Cargo.lock') }}
- name: Format
run: cargo fmt --all -- --check
build:
needs:
- check
strategy:
fail-fast: ${{ startsWith(github.ref, 'refs/tags/') }}
matrix:
include:
- os: ubuntu-latest
platform: linux
arch: x86_64
- os: ubuntu-latest
platform: linux
arch: aarch64
- os: macos-latest
platform: darwin
arch: x86_64
- os: macos-latest
platform: darwin
arch: aarch64
uses: ./.github/workflows/build.yml
with:
os: ${{ matrix.os }}
platform: ${{ matrix.platform }}
arch: ${{ matrix.arch }}