-
Notifications
You must be signed in to change notification settings - Fork 8
53 lines (49 loc) · 1.49 KB
/
hipcheck.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
name: Hipcheck
# Run on PRs before merging. We disallow pushing directly to main
# without going through a PR, so we don't run on `push` events for main.
on:
pull_request:
branches: [main]
paths:
- "config/**"
- "hipcheck/**"
- "scripts/**"
- "xtask/**"
permissions:
contents: read
env:
RUSTFLAGS: -Dwarnings
CARGO_TERM_COLOR: always
jobs:
test:
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
name: "Test (${{ matrix.os }})"
runs-on: ${{ matrix.os }}
timeout-minutes: 15
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- uses: swatinem/rust-cache@v2
with:
key: ${{ matrix.os }}
# Install protoc dependency - Linux
- if: runner.os == 'Linux'
run: sudo apt-get install -y protobuf-compiler
# Install protoc dependency - MacOS
- if: runner.os == 'macOS'
run: brew install protobuf
# Install protoc dependency - Windows
- if: runner.os == 'Windows'
run: |
curl -L -O https://github.com/protocolbuffers/protobuf/releases/download/v27.3/protoc-27.3-win64.zip
unzip -j protoc-27.3-win64.zip bin/protoc.exe -d C:\Windows\System32\
- name: Dependency Tree
run: cargo tree
- name: Build
run: cargo build --verbose --workspace
- name: Test
run: cargo test --verbose --workspace
- name: Lint
run: cargo clippy --verbose --workspace