-
Notifications
You must be signed in to change notification settings - Fork 7
97 lines (91 loc) · 2.75 KB
/
evercrypt-rs.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
97
name: Build & Test
on: [push, pull_request]
env:
CARGO_TERM_COLOR: always
defaults:
run:
working-directory: evercrypt-rs
jobs:
build:
strategy:
fail-fast: false
matrix:
os:
- macos-latest
- ubuntu-latest
- windows-latest
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
with:
submodules: true
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: 1.56
override: true
- if: matrix.os == 'ubuntu-latest'
run: sudo apt -y install pkg-config
- if: matrix.os == 'macos-latest'
run: |
brew install pkg-config
sudo rm -Rf /Library/Developer/CommandLineTools/SDKs/*
sudo xcode-select -s /Applications/Xcode_12.4.app
rustup target install aarch64-apple-darwin
rustup target install aarch64-apple-ios
- name: Build
run: cargo build --verbose
- name: Apple Silicon Build
if: matrix.os == 'macos-latest'
run: |
cargo build --target aarch64-apple-darwin --tests --verbose
cargo build --release --target aarch64-apple-darwin --tests --verbose
- name: iOS aarch64
if: matrix.os == 'macos-latest'
run: |
cargo build --target aarch64-apple-ios --tests --verbose
cargo build --release --target aarch64-apple-ios --tests --verbose
- if: matrix.os == 'ubuntu-latest'
name: Test evercrypt-rs
run: cargo test --verbose
- name: Build (no-default-features)
run: cargo build --verbose --no-default-features
- if: matrix.os == 'ubuntu-latest'
name: Build & Test 32-bit Linux
run: cargo test --verbose
- name: Test (all-features)
run: cargo test --verbose --all-features
- name: Release (all-features)
run: |
cargo clean
cargo test --release --verbose --all-features
- name: Benchmark
run: |
cargo bench --verbose
fuzz:
strategy:
fail-fast: false
matrix:
os:
- macos-latest
- ubuntu-latest
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
with:
submodules: true
- name: Install latest nightly
uses: actions-rs/toolchain@v1
with:
toolchain: nightly
default: true
- uses: actions-rs/[email protected]
with:
crate: cargo-fuzz
version: latest
- name: Fuzz AEAD
run: cargo fuzz run aead -- -runs=1000000
- name: Fuzz ECDH
run: cargo fuzz run ecdh -- -runs=10000 -rss_limit_mb=4096 -max_len=1024
- name: Fuzz Ed25519
run: cargo fuzz run ed25519 -- -runs=100000 -max_len=2048