-
Notifications
You must be signed in to change notification settings - Fork 15
48 lines (38 loc) · 1.12 KB
/
linters-cargo.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
---
name: Task - Linters Cargo
on:
workflow_dispatch:
workflow_call:
jobs:
cargo-lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- run: rustup show
- name: Set up Python 3.9
uses: actions/setup-python@v2
with:
python-version: 3.9
- name: Display Python version
run: python --version
- name: Install cairo 0
run: |
# Creating venv
python3.9 -m venv ~/cairo_venv
source ~/cairo_venv/bin/activate
# Installing deps
sudo apt install -y libgmp3-dev
pip3 install ecdsa fastecdsa sympy
# Installing cairo lang
pip3 install cairo-lang
- name: Build SNOS files
run: |
make snos
- uses: Swatinem/rust-cache@v2
- name: Format and clippy
run: |
cargo fmt -- --check
cargo clippy --no-deps -- -D warnings
cargo clippy --tests --no-deps -- -D warnings
cargo clippy --features testing --no-deps -- -D warnings
cargo clippy --features testing --tests --no-deps -- -D warnings