-
Notifications
You must be signed in to change notification settings - Fork 543
107 lines (100 loc) · 2.93 KB
/
CI.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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
name: CI
on:
push:
branches-ignore: [staging.tmp]
pull_request:
branches-ignore: [staging.tmp]
jobs:
ios_build:
name: iOS Stable
runs-on: macos-10.15
env:
TARGET: aarch64-apple-ios
steps:
- uses: actions/checkout@v2
- name: Prepare Rust
run: rustup target add ${{ env.TARGET }}
- run: cargo check --manifest-path src/backend/metal/Cargo.toml --target ${{ env.TARGET }}
android_build:
name: Android Stable
runs-on: ubuntu-18.04
env:
TARGET: aarch64-linux-android
steps:
- uses: actions/checkout@v2
- run: echo "$ANDROID_HOME/ndk-bundle/toolchains/llvm/prebuilt/linux-x86_64/bin" >> $GITHUB_PATH
- name: Prepare Rust
run: rustup target add ${{ env.TARGET }}
- run: cargo check --manifest-path src/backend/vulkan/Cargo.toml --target ${{ env.TARGET }}
- run: cargo check --manifest-path src/backend/gl/Cargo.toml --target ${{ env.TARGET }}
webgl_build:
name: Web Assembly
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@v2
- run: rustup target add wasm32-unknown-unknown
- run: cargo build --manifest-path examples/Cargo.toml --features gl --target wasm32-unknown-unknown --bin quad
check-advisories:
name: Advisory Check
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@v2
- uses: EmbarkStudios/cargo-deny-action@v1
with:
command: check advisories
check-dependencies:
name: Dependency Check
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@v2
- uses: EmbarkStudios/cargo-deny-action@v1
with:
command: check bans licenses sources
build:
name: ${{ matrix.name }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
name:
[
MacOS Stable,
MacOS Nightly,
Ubuntu Stable,
Ubuntu Nightly,
Windows Stable,
Windows Nightly,
]
include:
- os: macos-10.15
name: MacOS Stable
channel: stable
- os: macos-10.15
name: MacOS Nightly
channel: nightly
- os: ubuntu-18.04
name: Ubuntu Stable
channel: stable
- os: ubuntu-18.04
name: Ubuntu Nightly
channel: nightly
- os: windows-2019
name: Windows Stable
channel: stable
- os: windows-2019
name: Windows Nightly
channel: nightly
steps:
- uses: actions/checkout@v2
- if: matrix.channel == 'nightly'
name: Install latest nightly
uses: actions-rs/toolchain@v1
with:
toolchain: nightly
override: true
- if: matrix.os == 'windows-2019'
name: Install make
run: choco install make
#- if: matrix.channel == 'stable'
# run: rustup component add clippy
- run: make all