Bump the reqwest group across 1 directory with 3 updates #745
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 | |
on: | |
pull_request: | |
push: | |
branches: | |
- main | |
env: | |
CARGO_TERM_COLOR: always | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Build | |
run: cargo build --verbose | |
- name: Install Trunk | |
run: cargo install trunk | |
# Build demos. | |
- name: Build Demo Web | |
run: env -C demo_web trunk build | |
- name: Build Demo Native | |
run: env -C demo_native cargo build --verbose | |
# Tests and lints. | |
- name: Run tests | |
run: cargo test --verbose | |
- name: Check rust formatting | |
run: cargo fmt --all --check | |
- name: Clippy | |
run: cargo clippy --all-features -- -D warnings | |
- name: Documentation | |
run: cargo doc | |
# Build the Android demo. | |
- name: Setup Java JDK | |
uses: actions/[email protected] | |
with: | |
java-version: '17' | |
distribution: 'temurin' | |
- name: Setup Android SDK | |
uses: android-actions/setup-android@v3 | |
- name: Install Cargo NDK | |
run: cargo install cargo-ndk | |
- name: Build APK | |
working-directory: ./demo_android | |
run: make apk |