-
Notifications
You must be signed in to change notification settings - Fork 5
51 lines (39 loc) · 1.08 KB
/
test.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
name: Test
on:
push:
pull_request:
env:
RUST_BACKTRACE: 1
jobs:
test:
name: ${{ matrix.os }}-${{ matrix.target }}-${{ matrix.toolchain }}
runs-on: ${{ matrix.os }}
env:
SCCACHE_GHA_ENABLED: "true"
RUSTC_WRAPPER: "sccache"
strategy:
fail-fast: false
matrix:
os: [ubuntu-20.04, ubuntu-latest]
target: [x86_64-unknown-linux-gnu]
toolchain: [stable]
steps:
- uses: actions/checkout/@v4
- name: Rust Toolchain
uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ matrix.toolchain }}
- name: Install cargo-binstall
uses: taiki-e/install-action@v2
with:
tool: cargo-binstall
- name: install cargo-component
run: cargo binstall cargo-component
- name: Show environment information
uses: ./.github/actions/show-env
- name: Run sccache-cache
uses: mozilla-actions/[email protected]
- name: Install Protoc
uses: arduino/setup-protoc@v3
- name: Run Test
uses: ./.github/actions/test