-
Notifications
You must be signed in to change notification settings - Fork 1
83 lines (66 loc) · 2.06 KB
/
rust.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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
name: Rust-CI
on:
push:
permissions:
contents: read
concurrency:
group: ${{ github.ref }}
cancel-in-progress: true
jobs:
cargo-format:
runs-on: ubuntu-20.04
timeout-minutes: 5
steps:
- uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.3.0
- name: Setup CI
uses: ./.github/setup
with:
rust-nightly: true
- name: cargo fmt
run: cargo fmt --all -- --check
cargo-clippy:
runs-on: ubuntu-20.04
timeout-minutes: 20
steps:
- uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.3.0
- name: Setup CI
uses: ./.github/setup
- name: cargo clippy
run: |
cargo clippy --all-targets -- --deny warnings
cargo clippy --all-targets --all-features -- --deny warnings
cargo-test:
name: cargo-test
runs-on: ubuntu-20.04
timeout-minutes: 20
steps:
- uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.3.0
- name: Setup CI
uses: ./.github/setup
- name: Run tests
env:
RUSTFLAGS: "-D warnings"
run: |
cargo test --workspace --exclude test-project
cargo test --all-targets --all-features --workspace --exclude test-project
test-on-ios-simulator:
runs-on: macos-11
timeout-minutes: 30
needs: cargo-test
steps:
- uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.3.0
- name: Setup CI
uses: ./.github/setup
with:
rust-target: x86_64-apple-ios
- name: Start iOS simulator
run: |
xcrun simctl create "Test Device" "iPhone 12 Pro" iOS15.2
xcrun simctl boot "Test Device"
- name: Install cargo-tai
run: cargo install --path cargo-tai --debug
- name: Run iOS test
working-directory: ${{ github.workspace }}/examples/test-project
env:
RUST_LOG: "tai=trace"
run: cargo-tai tests --target x86_64-apple-ios -r test_txt=./data/test.txt --args -Z,unstable-options,--report-time