Skip to content

chore(deps): bump time from 0.3.29 to 0.3.30 in /rust (#2127) #4725

chore(deps): bump time from 0.3.29 to 0.3.30 in /rust (#2127)

chore(deps): bump time from 0.3.29 to 0.3.30 in /rust (#2127) #4725

name: Rust backend test for android
on:
pull_request:
push:
branches:
- master
- stable
jobs:
check:
name: Cargo test on Ubuntu
runs-on: ubuntu-22.04
steps:
- name: Cancel Previous Runs
uses: styfle/cancel-workflow-action@01ce38bf961b4e243a6342cbade0dbc8ba3f0432 # 0.12.0
with:
access_token: ${{ github.token }}
- name: Checkout sources
uses: actions/checkout@v4.1.0
with:
fetch-depth: 50
submodules: 'recursive'
- name: Install system dependancies
run: |
sudo apt update
sudo apt install -y clang libclang-dev libopencv-dev
- 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/install@v0.1
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@a95ba195448af2da9b00fb742d14ffaaf3c21f43 # v2.7.0
with:
workspaces: rust -> rust/target
- name: cargo nextest
run: |
cd rust
cargo nextest run --retries 2 --locked
cargo nextest run --no-default-features --features active --retries 2 --locked
cargo nextest run --no-default-features --retries 2 --locked