@@ -3,105 +3,35 @@ name: CI
3
3
on :
4
4
push :
5
5
branches-ignore : [staging.tmp]
6
+ paths :
7
+ # - 'examples/quad_android/**'
8
+ # - '!examples/quad_android/**.md'
9
+ # - 'src/backend/gl/**'
10
+ # - '!src/backend/gl/**.md'
6
11
pull_request :
7
12
branches-ignore : [staging.tmp]
8
-
13
+ paths :
14
+ # - 'examples/quad_android/**'
15
+ # - '!examples/quad_android/**.md'
16
+ # - 'src/backend/gl/**'
17
+ # - '!src/backend/gl/**.md'
9
18
jobs :
10
- ios_build :
11
- name : iOS Stable
12
- runs-on : macos-10.15
13
- env :
14
- TARGET : aarch64-apple-ios
15
- steps :
16
- - uses : actions/checkout@v2
17
- - name : Prepare Rust
18
- run : rustup target add ${{ env.TARGET }}
19
- - run : cargo check --manifest-path src/backend/metal/Cargo.toml --target ${{ env.TARGET }}
20
-
21
- android_build :
22
- name : Android Stable
23
- runs-on : ubuntu-18.04
24
- env :
25
- TARGET : aarch64-linux-android
26
- steps :
27
- - uses : actions/checkout@v2
28
- - run : echo "$ANDROID_HOME/ndk-bundle/toolchains/llvm/prebuilt/linux-x86_64/bin" >> $GITHUB_PATH
29
- - name : Prepare Rust
30
- run : rustup target add ${{ env.TARGET }}
31
- - run : cargo check --manifest-path src/backend/vulkan/Cargo.toml --target ${{ env.TARGET }}
32
- - run : cargo check --manifest-path src/backend/gl/Cargo.toml --target ${{ env.TARGET }}
33
-
34
- webgl_build :
35
- name : Web Assembly
36
- runs-on : ubuntu-18.04
37
- steps :
38
- - uses : actions/checkout@v2
39
- - run : rustup target add wasm32-unknown-unknown
40
- - run : cargo build --manifest-path examples/Cargo.toml --features gl --target wasm32-unknown-unknown --bin quad
41
-
42
- check-advisories :
43
- name : Advisory Check
44
- runs-on : ubuntu-18.04
45
- steps :
46
- - uses : actions/checkout@v2
47
- - uses : EmbarkStudios/cargo-deny-action@v1
19
+ test :
20
+ runs-on : macos-10.15
21
+ steps :
22
+ - name : checkout
23
+ uses : actions/checkout@v2
24
+ - name : run tests
25
+ uses : reactivecircus/android-emulator-runner@v2
48
26
with :
49
- command : check advisories
50
-
51
- check-dependencies :
52
- name : Dependency Check
53
- runs-on : ubuntu-18.04
54
- steps :
55
- - uses : actions/checkout@v2
56
- - uses : EmbarkStudios/cargo-deny-action@v1
57
- with :
58
- command : check bans licenses sources
59
-
60
- build :
61
- name : ${{ matrix.name }}
62
- runs-on : ${{ matrix.os }}
63
- strategy :
64
- fail-fast : false
65
- matrix :
66
- name :
67
- [
68
- MacOS Stable,
69
- MacOS Nightly,
70
- Ubuntu Stable,
71
- Ubuntu Nightly,
72
- Windows Stable,
73
- Windows Nightly,
74
- ]
75
- include :
76
- - os : macos-10.15
77
- name : MacOS Stable
78
- channel : stable
79
- - os : macos-10.15
80
- name : MacOS Nightly
81
- channel : nightly
82
- - os : ubuntu-18.04
83
- name : Ubuntu Stable
84
- channel : stable
85
- - os : ubuntu-18.04
86
- name : Ubuntu Nightly
87
- channel : nightly
88
- - os : windows-2019
89
- name : Windows Stable
90
- channel : stable
91
- - os : windows-2019
92
- name : Windows Nightly
93
- channel : nightly
94
- steps :
95
- - uses : actions/checkout@v2
96
- - if : matrix.channel == 'nightly'
97
- name : Install latest nightly
98
- uses : actions-rs/toolchain@v1
27
+ api-level : 29
28
+ arch : x86_64
29
+ profile : Nexus 6
30
+ script : sh ./.github/workflows/android_test.sh
31
+ - uses : actions/upload-artifact@master
32
+ if : ${{ always() }}
99
33
with :
100
- toolchain : nightly
101
- override : true
102
- - if : matrix.os == 'windows-2019'
103
- name : Install make
104
- run : choco install make
105
- # - if: matrix.channel == 'stable'
106
- # run: rustup component add clippy
107
- - run : make all
34
+ name : screenshot
35
+ path : |
36
+ ~/screenshot.png
37
+ ~/logcat.log
0 commit comments