Skip to content

CI: try vcpkg

CI: try vcpkg #92

Workflow file for this run

---
# 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,
]
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-windows:x64-windows
vcpkg install openssl:x64-windows-static
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