This repository has been archived by the owner on Mar 11, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 145
96 lines (84 loc) · 2.07 KB
/
rust.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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
name: Ursa CI
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
workflow_dispatch:
env:
CARGO_TERM_COLOR: always
SODIUM_BUILD_STATIC: 1
jobs:
Build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Build
run: cargo build --verbose
- name: Format
run: cargo fmt --all -- --check
- name: Docs
run: cargo doc --no-deps
- name: Clippy
run: cargo clippy --all -- -W clippy::not_unsafe_ptr_arg_deref -A clippy::many_single_char_names
- name: Check
run: cargo check
- name: Audit
run: cargo audit
- name: Tests
run: cargo test --release
# disabled in AZP
#
# Portable:
#
# runs-on: ubuntu-latest
#
# steps:
# - uses: actions/checkout@v2
# - name: Portable
# run: cargo build --manifest-path=libzmix/Cargo.toml --no-default-features --features=portable
#
# secp256k1:
#
# runs-on: ubuntu-latest
#
# steps:
# - uses: actions/checkout@v2
# - name: test secp256k1
# run: cargo run --release --manifest-path=libursa/Cargo.toml --bin test_secp256k1 --features="benchmarksecp256k1"
#
#
# ed25519:
#
# runs-on: ubuntu-latest
#
# steps:
# - uses: actions/checkout@v2
# - name: test ed25519
# run: SODIUM_BUILD_STATIC=1 cargo run --release --manifest-path=libursa/Cargo.toml --bin test_ed25519 --features="benchmarked25519"
#
#
# WASMPACK:
#
# runs-on: ubuntu-latest
#
# steps:
# - uses: actions/checkout@v2
# - name: WASM pack
# run: |
# wasm-pack build libursa -- --no-default-features --features=portable_wasm
# wasm-pack build libzmix/bbs -- --no-default-features --features=wasm
#
# Nightly:
#
# runs-on: ubuntu-latest
#
# steps:
# - uses: actions/checkout@v2
# - name: Build ASM on nightly
# run: |
# curl https://sh.rustup.rs -sSf | sh -s -- -y --default-toolchain nightly
# rustup toolchain install nightly
# rustup default nightly
# rustc --version
# cargo build --manifest-path=libzmix/Cargo.toml --no-default-features --features=asm