Bump actions/deploy-pages from 1 to 4 #386
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: | |
- master | |
pull_request: | |
branches: | |
- master | |
env: | |
CARGO_TERM_COLOR: always | |
RUST_LOG: "trace" | |
jobs: | |
buid-test-check: | |
strategy: | |
matrix: | |
platform: | |
- ubuntu-latest | |
- windows-latest | |
- macos-latest | |
components: | |
- clippy | |
runs-on: ${{ matrix.platform }} | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install Rust | |
uses: dtolnay/rust-toolchain@stable | |
with: | |
toolchain: nightly-2023-10-13 | |
components: ${{ matrix.components }} | |
- name: Install android target | |
if: ${{ runner.os == 'Linux' }} | |
run: > | |
rustup target add | |
aarch64-linux-android | |
armv7-linux-androideabi | |
- name: Install iOS target | |
if: ${{ runner.os == 'macOS' }} | |
run: > | |
rustup target add | |
aarch64-apple-ios | |
- name: Add Linux rust std | |
if: ${{ runner.os == 'Linux' }} | |
run: > | |
rustup component add rust-src --toolchain nightly-2023-10-13-x86_64-unknown-linux-gnu | |
- name: Add macOS rust std | |
if: ${{ runner.os == 'macOS' }} | |
run: > | |
rustup component add rust-src --toolchain nightly-2023-10-13-x86_64-apple-darwin | |
- name: Build & Test - ezlog All Features | |
run: cargo test --manifest-path ./ezlog-core/Cargo.toml --verbose --all-features --no-fail-fast | |
- name: Build & Test - ezlog_cli | |
run: cargo test --manifest-path ./ezlogcli/Cargo.toml --verbose --no-default-features --no-fail-fast | |
- name: Install Android NDK | |
if: ${{ runner.os == 'Linux' }} | |
uses: nttld/[email protected] | |
with: | |
ndk-version: r25b | |
- name: Install cargo-ndk | |
if: ${{ runner.os == 'Linux' }} | |
# We're currently sticking with cargo-ndk 3.1.2, until 3.2.0 bugfix | |
run: cargo install cargo-ndk --version 3.1.2 | |
- name: Build Android library | |
if: ${{ runner.os == 'Linux' }} | |
run: > | |
cargo ndk | |
-t armeabi-v7a | |
-t arm64-v8a | |
-o lib-ezlog/src/main/jniLibs build -Zbuild-std -p ezlog | |
env: | |
ANDROID_NDK_ROOT: ${{ steps.setup-ndk.outputs.ndk-path }} | |
- name: Build iOS library | |
if: ${{ runner.os == 'macOS' }} | |
run: cargo build -Z build-std -p ezlog --release --lib --target aarch64-apple-ios | |
- name: Clippy Check | |
run: cargo clippy --all --all-features -- -D warnings |