-
-
Notifications
You must be signed in to change notification settings - Fork 5
85 lines (69 loc) · 2.16 KB
/
ci.yml
File metadata and controls
85 lines (69 loc) · 2.16 KB
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
84
85
name: CI-rust
on:
push:
env:
CARGO_TERM_COLOR: always
jobs:
build:
#TODO: run and test on wasm, win and linux
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- name: Add iOS targets
run: rustup target add aarch64-apple-ios aarch64-apple-ios-sim x86_64-apple-ios
- name: Rust Cache
uses: Swatinem/rust-cache@v2
with:
workspaces: "./bevy_ios_iap"
# TODO: enable once https://github.com/rust-lang/rust-bindgen/issues/3181 is released
# - name: Check iOS Sim
# run: |
# cd bevy_ios_iap
# cargo c --target=aarch64-apple-ios-sim
# cargo b --target=aarch64-apple-ios-sim
# cargo clippy --target=aarch64-apple-ios-sim
- name: Check iOS
run: |
cd bevy_ios_iap
cargo c --target=aarch64-apple-ios
cargo b --target=aarch64-apple-ios
cargo clippy --target=aarch64-apple-ios
- name: Check MacOs
run: |
cd bevy_ios_iap
cargo c
cargo b
cargo clippy
cargo t
build_egui:
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- name: Add iOS targets
run: rustup target add aarch64-apple-ios aarch64-apple-ios-sim x86_64-apple-ios
- name: Rust Cache
uses: Swatinem/rust-cache@v2
with:
workspaces: "./bevy_ios_iap_egui"
# TODO: enable once https://github.com/rust-lang/rust-bindgen/issues/3181 is released
# - name: Check iOS Sim
# run: |
# cd bevy_ios_iap_egui
# cargo c --target=aarch64-apple-ios-sim
# cargo b --target=aarch64-apple-ios-sim
# cargo clippy --target=aarch64-apple-ios-sim
- name: Check iOS
run: |
cd bevy_ios_iap_egui
cargo c --target=aarch64-apple-ios
cargo b --target=aarch64-apple-ios
cargo clippy --target=aarch64-apple-ios
- name: Check MacOs
run: |
cd bevy_ios_iap_egui
cargo c
cargo b
cargo clippy
cargo t