-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (39 loc) · 1.11 KB
/
main.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
---
# configuration for GitHub Actions
name: hardshare client
on:
push:
pull_request:
jobs:
build-and-test:
name: Build and test
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [
windows-latest,
]
env:
OPENSSL_NO_VENDOR: t
steps:
- uses: actions/checkout@v4
- run: rustup toolchain install stable --profile minimal
- uses: Swatinem/rust-cache@v2
- name: Install OpenSSL manually if on Windows
if: runner.os == 'Windows'
run: |
vcpkg install openssl:x64-windows-static-md
vcpkg integrate install
- name: Prepare to build
run: |
mkdir keys
touch keys/public.pem
- name: Lint
if: runner.os != 'Windows'
run: |
cargo fmt --check
cargo check
cargo clippy --tests -- -D clippy::all
- name: Run tests
run: |
cargo test