-
Notifications
You must be signed in to change notification settings - Fork 85
39 lines (38 loc) · 1.05 KB
/
lints.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
on:
push:
branches: [main, 'release-v**']
pull_request:
name: Lints
jobs:
lints:
name: ${{ matrix.target }}
strategy:
matrix:
os: [ubuntu-latest]
target: [fmt, clippy]
runs-on: ${{ matrix.os }}
env:
RUST_TOOLCHAIN: "nightly-2023-10-26"
steps:
- name: Prep build on Ubuntu
if: ${{ matrix.os }} == 'ubuntu-latest'
run: |
echo "Pre cleanup"
df -h
sudo rm -rf "/usr/local/share/boost"
sudo rm -rf "$AGENT_TOOLSDIRECTORY"
echo "Post cleanup"
df -h
sudo apt-get install protobuf-compiler
- name: Check out code
uses: actions/checkout@v3
- name: Install latest nightly
uses: actions-rs/toolchain@88dc2356392166efad76775c878094f4e83ff746
with:
toolchain: ${{ env.RUST_TOOLCHAIN }}
default: true
- uses: Swatinem/rust-cache@cb2cf0cc7c5198d3364b9630e2c3d457f160790c
- name: Run lints
run: ./ci/script.sh
env:
TARGET: ${{ matrix.target }}