-
Notifications
You must be signed in to change notification settings - Fork 19
46 lines (40 loc) · 1.19 KB
/
dusk_ci.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
on:
pull_request:
push:
branches:
- main
name: CI
jobs:
code_analysis:
name: Code Analysis
uses: dusk-network/.github/.github/workflows/code-analysis.yml@main
dusk_analyzer:
name: Dusk Analyzer
uses: dusk-network/.github/.github/workflows/dusk-analysis.yml@main
build_benches:
name: Build Benchmarks
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: Swatinem/rust-cache@v2
- run: cargo bench --no-run
test_std:
name: Stable toolchain tests
runs-on: core
steps:
- uses: actions/checkout@v4
- uses: dsherret/rust-toolchain-file@v1
- run: cargo b --release
- run: rustup target add wasm32-unknown-unknown
- run: cd contract && cargo b --target wasm32-unknown-unknown --release
- run: cargo t --release
test_no_std:
name: Stable toolchain no_std tests
runs-on: core
steps:
- uses: actions/checkout@v4
- uses: dsherret/rust-toolchain-file@v1
- run: cargo b --release
- run: rustup target add wasm32-unknown-unknown
- run: cd contract && cargo b --target wasm32-unknown-unknown --release
- run: cargo t --release --no-default-features