# Cross-platform test workflow - Linux ARM64
name: Test Cross
on:
  push:
    branches:
      - master
  pull_request:
permissions:
  contents: read
concurrency:
  group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
  cancel-in-progress: true
env:
  CARGO_TERM_COLOR: always
  RUSTFLAGS: "-Dwarnings"
jobs:
  test-linux-arm64:
    name: Test (Linux ARM64)
    runs-on: ubuntu-latest
    steps:
      - name: Checkout
        uses: actions/checkout@v6
      - name: Install Rust toolchain
        uses: actions-rust-lang/setup-rust-toolchain@v1
        with:
          target: aarch64-unknown-linux-gnu
      - name: Install cross
        uses: taiki-e/install-action@v2
        with:
          tool: cross
      - name: Run tests (cross-compiled)
        run: cross test --target aarch64-unknown-linux-gnu --workspace --all-features
