mirror of https://github.com/ndarilek/tts-rs.git
Attempt to simplify CI.
This commit is contained in:
parent
20b18949e2
commit
96a5209a9f
|
@ -5,6 +5,17 @@ on:
|
||||||
pull_request:
|
pull_request:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
check_formatting:
|
||||||
|
name: Check Formatting
|
||||||
|
runs-on: ubuntu-22.04
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
- run: |
|
||||||
|
rustup toolchain install stable
|
||||||
|
cargo fmt --all --check
|
||||||
|
cd examples/web
|
||||||
|
cargo fmt --all --check
|
||||||
|
|
||||||
check:
|
check:
|
||||||
name: Check
|
name: Check
|
||||||
strategy:
|
strategy:
|
||||||
|
@ -17,8 +28,7 @@ jobs:
|
||||||
if: ${{ runner.os == 'Linux' }}
|
if: ${{ runner.os == 'Linux' }}
|
||||||
- run: |
|
- run: |
|
||||||
rustup toolchain install stable
|
rustup toolchain install stable
|
||||||
cargo fmt --check
|
cargo clippy --all-targets
|
||||||
cargo clippy
|
|
||||||
|
|
||||||
check_web:
|
check_web:
|
||||||
name: Check Web
|
name: Check Web
|
||||||
|
@ -28,8 +38,7 @@ jobs:
|
||||||
- run: |
|
- run: |
|
||||||
rustup target add wasm32-unknown-unknown
|
rustup target add wasm32-unknown-unknown
|
||||||
rustup toolchain install stable
|
rustup toolchain install stable
|
||||||
cargo fmt --all --check
|
cargo clippy --all-targets --target wasm32-unknown-unknown
|
||||||
cargo clippy --target wasm32-unknown-unknown
|
|
||||||
|
|
||||||
check_android:
|
check_android:
|
||||||
name: Check Android
|
name: Check Android
|
||||||
|
@ -37,10 +46,9 @@ jobs:
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- run: |
|
- run: |
|
||||||
|
rustup target add aarch64-linux-android
|
||||||
rustup toolchain install stable
|
rustup toolchain install stable
|
||||||
rustup target add aarch64-linux-android armv7-linux-androideabi i686-linux-android x86_64-linux-android
|
cargo clippy --all-targets --target aarch64-linux-android
|
||||||
cargo install -f xbuild
|
|
||||||
cargo build --target aarch64-linux-android
|
|
||||||
|
|
||||||
check_web_example:
|
check_web_example:
|
||||||
name: Check Web Example
|
name: Check Web Example
|
||||||
|
|
Loading…
Reference in New Issue