fix: Android recover tasks #4852
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: Rust backend test for ios | |
on: | |
pull_request: | |
push: | |
branches: | |
- master | |
- stable | |
jobs: | |
check: | |
name: Cargo test on macOS | |
runs-on: macos-latest | |
steps: | |
- name: Cancel Previous Runs | |
uses: styfle/cancel-workflow-action@01ce38bf961b4e243a6342cbade0dbc8ba3f0432 # 0.12.0 | |
with: | |
access_token: ${{ github.token }} | |
- name: Checkout sources | |
uses: actions/[email protected] | |
with: | |
fetch-depth: 50 | |
submodules: 'recursive' | |
- name: Install dependencies | |
run: | | |
brew install opencv | |
- name: Install Rust stable toolchain | |
uses: dtolnay/rust-toolchain@stable | |
- name: Install cargo-nextest | |
uses: baptiste0928/cargo-install@21a18ba3bf4a184d1804e8b759930d3471b1c941 # v2.2.0 | |
with: | |
crate: cargo-nextest | |
version: 0.9 | |
- name: Install uniffi_bindgen | |
uses: actions-rs/[email protected] | |
with: | |
crate: uniffi_bindgen | |
version: 0.22.0 # Must be in sync with version in Cargo.toml | |
use-tool-cache: true | |
- name: Rust Cache | |
uses: Swatinem/rust-cache@3cf7f8cc28d1b4e7d01e3783be10a97d55d483c8 # v2.7.1 | |
with: | |
workspaces: rust -> rust/target | |
- name: cargo nextest | |
shell: bash | |
run: | | |
cd rust | |
export DYLD_FALLBACK_LIBRARY_PATH="$(xcode-select --print-path)/Toolchains/XcodeDefault.xctoolchain/usr/lib/" | |
cargo nextest run --retries 2 --locked |