-
-
Notifications
You must be signed in to change notification settings - Fork 9
71 lines (66 loc) · 1.93 KB
/
workspace.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
on:
push:
branches-ignore:
- 'ci-test'
tags-ignore:
- '**'
pull_request:
schedule:
- cron: '12 15 * * *'
workflow_dispatch:
jobs:
build-and-test:
strategy:
fail-fast: false
matrix:
rust_toolchain:
- 'stable'
- 'beta'
- 'nightly'
- '1.75.0'
target:
- os: 'ubuntu-22.04'
triple: 'x86_64-unknown-linux-gnu'
- os: 'macos-12'
triple: 'x86_64-apple-darwin'
- os: 'windows-2022'
triple: 'x86_64-pc-windows-msvc'
continue-on-error: ${{ matrix.rust_toolchain == 'nightly' }}
runs-on: ${{ matrix.target.os }}
env:
IN_CI: '1'
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
CARGO_TERM_COLOR: always
SCCACHE_BUCKET: 'linux-packaging-rs-sccache'
SCCACHE_S3_USE_SSL: '1'
# Prevent sccache server from stopping due to inactivity.
SCCACHE_IDLE_TIMEOUT: '0'
steps:
- uses: actions/checkout@v3
- uses: ./.github/actions/rust-bootstrap
with:
rust_toolchain: ${{ matrix.rust_toolchain }}
rust_target: ${{ matrix.target.triple }}
- name: Build Workspace
env:
RUSTC_WRAPPER: sccache
run: |
rustc --version
cargo build --workspace --no-default-features
cargo build --workspace
cargo nextest run --no-run --workspace
- name: Test Workspace
env:
RUSTC_WRAPPER: sccache
run: |
cargo nextest run --no-fail-fast --success-output immediate-final --workspace
- uses: actions-rs/clippy@master
if: ${{ matrix.rust_toolchain == 'stable' || matrix.rust_toolchain == 'beta' }}
env:
RUSTC_WRAPPER: sccache
with:
args: --workspace
- name: Stop sccache
run: |
sccache --stop-server