|
18 | 18 | exclude:
|
19 | 19 | - os: macos-10.15
|
20 | 20 | toolchain: nightly
|
| 21 | + - os: windows-2019 |
| 22 | + toolchain: nightly |
21 | 23 | runs-on: ${{ matrix.os }}
|
22 | 24 | needs: clean
|
23 | 25 | steps:
|
@@ -55,32 +57,66 @@ jobs:
|
55 | 57 | CARGO_INCREMENTAL: 0
|
56 | 58 | RUSTFLAGS: "-C debuginfo=0 -D warnings"
|
57 | 59 |
|
| 60 | + build-wasm: |
| 61 | + strategy: |
| 62 | + matrix: |
| 63 | + toolchain: [stable, nightly] |
| 64 | + os: [ubuntu-20.04] |
| 65 | + runs-on: ${{ matrix.os }} |
| 66 | + needs: clean |
| 67 | + steps: |
| 68 | + - uses: actions/checkout@v2 |
| 69 | + |
| 70 | + - uses: actions-rs/toolchain@v1 |
| 71 | + with: |
| 72 | + toolchain: ${{ matrix.toolchain }} |
| 73 | + target: wasm32-unknown-unknown |
| 74 | + override: true |
| 75 | + |
| 76 | + - uses: actions/cache@v2 |
| 77 | + with: |
| 78 | + path: | |
| 79 | + target |
| 80 | + key: ${{ runner.os }}-cargo-check-test-${{ matrix.toolchain }}-${{ hashFiles('**/Cargo.lock') }} |
| 81 | + |
| 82 | + - name: Check wasm |
| 83 | + uses: actions-rs/cargo@v1 |
| 84 | + with: |
| 85 | + command: check |
| 86 | + args: --target wasm32-unknown-unknown --no-default-features --features bevy_winit,x11,hdr,bevy_gltf |
| 87 | + |
| 88 | + build-android: |
| 89 | + runs-on: ubuntu-latest |
| 90 | + steps: |
| 91 | + - uses: actions/checkout@v2 |
| 92 | + - name: Install Android targets |
| 93 | + run: rustup target add aarch64-linux-android armv7-linux-androideabi |
| 94 | + - name: Install Cargo APK |
| 95 | + run: cargo install cargo-apk |
| 96 | + - name: Build APK |
| 97 | + run: cargo apk build --example android |
| 98 | + |
58 | 99 | clean:
|
59 | 100 | runs-on: ubuntu-latest
|
60 | 101 | steps:
|
61 | 102 | - uses: actions/checkout@v2
|
62 | 103 |
|
63 | 104 | - uses: actions-rs/toolchain@v1
|
64 | 105 | with:
|
65 |
| - toolchain: nightly |
| 106 | + toolchain: nightly-2020-12-07 |
66 | 107 | components: rustfmt, clippy
|
67 | 108 | override: true
|
68 |
| - |
| 109 | + |
69 | 110 | - name: Install alsa
|
70 |
| - run: sudo apt-get install --no-install-recommends libasound2-dev |
| 111 | + run: sudo apt-get update; sudo apt-get install --no-install-recommends libasound2-dev |
71 | 112 |
|
72 | 113 | - name: Install udev
|
73 |
| - run: sudo apt-get install --no-install-recommends libudev-dev |
| 114 | + run: sudo apt-get update; sudo apt-get install --no-install-recommends libudev-dev |
74 | 115 |
|
75 | 116 | - name: Check the format
|
76 |
| - run: cargo +nightly fmt --all -- --check |
| 117 | + run: cargo +nightly-2020-12-07 fmt --all -- --check |
77 | 118 |
|
78 | 119 | # type complexity must be ignored because we use huge templates for queries
|
| 120 | + # -A clippy::manual-strip: strip_prefix support was added in 1.45. we want to support earlier rust versions |
79 | 121 | - name: Run clippy
|
80 |
| - run: > |
81 |
| - cargo +nightly clippy |
82 |
| - --all-targets |
83 |
| - --all-features |
84 |
| - -- |
85 |
| - -D warnings |
86 |
| - -A clippy::type_complexity |
| 122 | + run: cargo clippy --all-targets --all-features -- -D warnings -A clippy::type_complexity -A clippy::manual-strip |
0 commit comments