-
-
Notifications
You must be signed in to change notification settings - Fork 0
55 lines (49 loc) · 1.53 KB
/
ci-tests-android.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
---
name: Android CI Tests
on:
workflow_call:
env:
CARGO_TERM_COLOR: always
jobs:
run-android-rom-tests:
name: Run tests for Android
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v4
- name: Cache Rust assets
id: rust-cache
uses: Swatinem/rust-cache@v2
- name: Configure Rust
if: ${{ steps.rust-cache.outputs.cache-hit != 'true' }}
uses: actions-rs/toolchain@v1
with:
toolchain: 1.76.0
profile: minimal
components: clippy,rustfmt
override: true
target: aarch64-linux-android
default: true
- name: Install Cross
if: ${{ steps.rust-cache.outputs.cache-hit != 'true' }}
uses: brndnmtthws/[email protected]
with:
packages: cross
- name: Run Android-targeted tests
uses: actions-rs/cargo@v1
with:
command: test
args: --features=android,stock-codi,codios-codi --target=aarch64-linux-android
use-cross: true
- name: Run Android-targeted Cargo checks
uses: actions-rs/cargo@v1
with:
command: check
args: --features=android,stock-codi,codios-codi --target=aarch64-linux-android
use-cross: true
- name: Run Android-targeted Clippy checks
uses: actions-rs/cargo@v1
with:
command: clippy
args: --features=android,stock-codi,codios-codi --target=aarch64-linux-android
use-cross: true