Use compile_error macro to replace build script #2
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 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 }} |