-
Notifications
You must be signed in to change notification settings - Fork 7
45 lines (41 loc) · 1023 Bytes
/
static.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
name: Static Analysis
on:
merge_group:
branches:
- main
push:
branches:
- main
pull_request:
branches:
- main
jobs:
static-analysis:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [
ubuntu-latest,
]
toolchain: [
stable,
1.75.0
]
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Go Toolchain
uses: actions/setup-go@v5
with:
go-version: '=1.20.0'
- name: Rust Toolchain
run: |
rustup toolchain install ${{ matrix.toolchain }} --profile minimal --no-self-update
rustup default ${{ matrix.toolchain }}
rustup component add rustfmt --toolchain ${{ matrix.toolchain }}
rustup component add clippy --toolchain ${{ matrix.toolchain }}
- name: Rust Cache
uses: Swatinem/rust-cache@v2
- name: Make Static
run: cargo install cargo-rdme && make static