-
Notifications
You must be signed in to change notification settings - Fork 8
49 lines (39 loc) · 1.01 KB
/
crypto.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
name: Crypto
on:
push:
branches:
- "main"
pull_request:
branches:
- main
paths:
- 'near/**'
env:
RUST_VERSION_NIGHTLY: nightly-2024-03-24
CARGO_TERM_COLOR: always
defaults:
run:
working-directory: ./near
jobs:
lints:
name: crypto
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@nightly
with:
toolchain: ${{ env.RUST_VERSION_NIGHTLY }}
components: clippy
- name: Set default Rust toolchain
run: rustup default ${{ env.RUST_VERSION_NIGHTLY }}
- name: Run clippy
run: cargo clippy --all-targets --all-features
- name: Install other dependencies
run: sudo apt-get install moreutils dos2unix
- name: Check encoding
run: |
find . -name '*.rs' -exec isutf8 {} +
- name: Check line endings
run: bash ../.github/workflows/scripts/check_line_endings.sh