Skip to content

Use compile_error macro to replace build script #2

Use compile_error macro to replace build script

Use compile_error macro to replace build script #2

Workflow file for this run

name: Cross Compile
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
env:
CARGO_TERM_COLOR: always
jobs:
build:
name: Build All
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
target:
- "aarch64-apple-darwin"
- "i686-unknown-linux-gnu"
- "x86_64-unknown-linux-gnu"
- "x86_64-unknown-linux-musl"
- "x86_64-windows-gnu"
steps:
- uses: actions/checkout@v3
- name: List targets
run: rustup target list
- name: Build
run: cargo build --release --all-targets --target ${{ matrix.target }}
- name: Build Hybrid
run: cargo build --release --all-targets --features hybrid --target ${{ matrix.target }}