Refactored the code a little and added some more debug_asserts #337
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: Build & Test | |
on: | |
push: | |
branches: ["main", "dev"] | |
pull_request: | |
branches: ["main", "dev"] | |
workflow_dispatch: | |
env: | |
CARGO_TERM_COLOR: always | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
build: | |
strategy: | |
fail-fast: false | |
matrix: | |
bits: [64] | |
os: | |
- macos-latest | |
runs-on: ${{ matrix.os }} | |
defaults: | |
run: | |
shell: bash | |
steps: | |
- uses: actions/checkout@v4 | |
- run: echo "RUST_TARGET_FLAG=" > $GITHUB_ENV | |
if: ${{ matrix.bits == 64 }} | |
- name: ⚙️ Setup macOS | |
if: ${{ matrix.os == 'macos-latest' }} | |
run: | | |
rustup target add aarch64-apple-darwin | |
# Cross compilation | |
- name: 🔨 Build aarch64 macOS | |
if: ${{ matrix.os == 'macos-latest' }} | |
run: cargo build --verbose --target aarch64-apple-darwin |