generated from eigerco/beerus
-
Notifications
You must be signed in to change notification settings - Fork 105
53 lines (49 loc) · 1.17 KB
/
macros.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: Macros CI
on:
push:
paths:
- 'packages/macros/**'
- 'packages/macros_tests/**'
pull_request:
paths:
- 'packages/macros/**'
- 'packages/macros_tests/**'
jobs:
build:
runs-on: ubuntu-latest
defaults:
run:
working-directory: packages/macros
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- uses: Swatinem/rust-cache@v2
- name: Build
run: cargo build --release
rustlint:
runs-on: ubuntu-latest
defaults:
run:
working-directory: packages/macros
env:
RUSTFLAGS: "-Dwarnings" # fail on warnings
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
with:
components: clippy
- uses: Swatinem/rust-cache@v2
- name: Format check
run: cargo fmt --check
- name: Clippy
run: cargo clippy --all
scarbfmt:
runs-on: ubuntu-latest
defaults:
run:
working-directory: packages/macros_tests
steps:
- uses: actions/checkout@v4
- uses: software-mansion/setup-scarb@v1
- name: Cairo format check
run: scarb fmt --check