-
Notifications
You must be signed in to change notification settings - Fork 0
81 lines (75 loc) · 2.12 KB
/
crypto_dev.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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
name: build-test crypto crate
on:
pull_request:
branches: [master]
paths:
- "crypto/**"
- "!**.md"
workflow_dispatch:
env:
CARGO_TERM_COLOR: always
defaults:
run:
working-directory: crypto
jobs:
build-test-no-std:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/cache@v2
with:
path: |
~/.cargo/registry
~/.cargo/git
target
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}-crypto
- name: Install Latest Rust Nightly
uses: actions-rs/toolchain@v1
with:
toolchain: nightly
override: true
target: wasm32-unknown-unknown
- name: Build Crypto Library
run: cargo +nightly build --verbose --release --target wasm32-unknown-unknown
- name: Run Tests
run: cargo +nightly test --verbose --no-fail-fast --release
build-test-std:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/cache@v2
with:
path: |
~/.cargo/registry
~/.cargo/git
target
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}-crypto
- name: Install Latest Rust Nightly
uses: actions-rs/toolchain@v1
with:
toolchain: nightly
override: true
- name: Build Crypto Library
run: cargo +nightly build --verbose --release --features std
- name: Run Tests
run: cargo +nightly test --verbose --no-fail-fast --release --features std
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Cache Dependencies
uses: actions/cache@v2
with:
path: |
~/.cargo/registry
~/.cargo/git
target
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}-lint
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: nightly
override: true
components: clippy
- name: lint
run: cargo +nightly clippy -- -D warnings