forked from gfx-rs/wgpu
-
Notifications
You must be signed in to change notification settings - Fork 0
74 lines (72 loc) · 2.24 KB
/
Copy pathci.yml
File metadata and controls
74 lines (72 loc) · 2.24 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
name: CI
on:
push:
branches-ignore: [ staging.tmp ]
pull_request:
branches-ignore: [ staging.tmp ]
jobs:
build:
name: ${{ matrix.name }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
name: [
iOS Stable,
MacOS Stable,
MacOS Nightly,
Ubuntu Stable,
Ubuntu Nightly,
Windows Stable,
Windows Nightly,
]
include:
- os: macos-10.15
name: iOS Stable
channel: stable
build_command: rustup target add aarch64-apple-ios; cargo clippy --target aarch64-apple-ios
additional_core_features:
- os: macos-10.15
name: MacOS Stable
channel: stable
build_command: cargo clippy
additional_core_features: trace
- os: macos-10.15
name: MacOS Nightly
channel: nightly
build_command: cargo test
additional_core_features:
- os: ubuntu-18.04
name: Ubuntu Stable
channel: stable
build_command: cargo clippy
additional_core_features: trace,replay
- os: ubuntu-18.04
name: Ubuntu Nightly
channel: nightly
build_command: cargo test
additional_core_features:
- os: windows-2019
name: Windows Stable
channel: stable
build_command: rustup default stable-msvc; cargo clippy
additional_core_features: replay
- os: windows-2019
name: Windows Nightly
channel: nightly
build_command: rustup default nightly-msvc; cargo test
additional_core_features:
steps:
- uses: actions/checkout@v2
- if: matrix.channel == 'nightly'
name: Install latest nightly
uses: actions-rs/toolchain@v1
with:
toolchain: nightly
override: true
- if: contains(matrix.build_command, 'clippy')
run: rustup component add clippy
- name: cargo clippy/test
run: ${{ matrix.build_command }}
- if: matrix.additional_core_features != ''
run: cargo check --manifest-path wgpu-core/Cargo.toml --features ${{ matrix.additional_core_features }}