Skip to content

refactor: directories of backends #128

refactor: directories of backends

refactor: directories of backends #128

Workflow file for this run

name: Check iOS
on:
push:
branches:
- master
pull_request:
branches:
- master
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}-${{ github.event_name }}
cancel-in-progress: true
jobs:
check:
runs-on: ${{ matrix.setup.os }}
strategy:
matrix:
toolchain: ['nightly']
setup:
- os: 'macos-14'
target: 'aarch64-apple-ios'
- os: 'macos-14'
target: 'aarch64-apple-ios-sim'
steps:
- uses: actions/checkout@v6
- name: Setup Rust Toolchain
run: rustup toolchain install ${{ matrix.toolchain }}
- name: Setup target
run: rustup +${{ matrix.toolchain }} target add ${{ matrix.setup.target }}
- name: Build on ${{ matrix.setup.os }} ${{ matrix.toolchain }} ${{ matrix.setup.target }}
shell: bash
run: |
set -ex
ARGS=("--features" "all")
# Add feature "nightly" if toolchain is nightly
if [[ "${{ matrix.toolchain }}" == "nightly" ]]; then
ARGS+=("--features" "nightly")
fi
# Specify target if target is not empty
if [[ -n "${{ matrix.setup.target }}" ]]; then
ARGS+=("--target" "${{ matrix.setup.target }}")
fi
cargo +${{ matrix.toolchain }} check --all-targets --workspace "${ARGS[@]}"