-
Notifications
You must be signed in to change notification settings - Fork 3
62 lines (53 loc) · 1.44 KB
/
ubuntu-build.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
name: Ubuntu Build and Test
on:
push:
branches: [ '*' ]
pull_request:
branches: [ '*' ]
jobs:
ubuntu-build:
name: Build and Test (Ubuntu)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install Build Prerequisites
run: |
sudo apt-get update
sudo apt-get install -y build-essential autoconf libtool
- name: Install Rust
uses: dtolnay/rust-toolchain@master
with:
toolchain: stable
components: rustfmt, clippy
- name: Cache Rust dependencies
uses: actions/cache@v3
with:
path: |
~/.cargo/registry
~/.cargo/git
target
key: ubuntu-cargo-${{ hashFiles('**/Cargo.lock') }}
restore-keys: |
ubuntu-cargo-
- name: Build and Test wolfcrypt-rs
run: |
cd wolfcrypt-rs
make build
make test
- name: Build and Test rustls-wolfcrypt-provider
run: |
cd rustls-wolfcrypt-provider
make build
make test
- name: Check formatting
run: |
cd wolfcrypt-rs
cargo fmt --all -- --check
cd ../rustls-wolfcrypt-provider
cargo fmt --all -- --check
- name: Run clippy
run: |
cd wolfcrypt-rs
cargo clippy -- -D warnings
cd ../rustls-wolfcrypt-provider
cargo clippy -- -D warnings