-
Notifications
You must be signed in to change notification settings - Fork 14
41 lines (39 loc) · 1.13 KB
/
test.yaml
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
name: Check
on: [push, pull_request]
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macOS-latest, windows-latest]
rust: [stable, nightly]
steps:
- uses: hecrj/setup-rust-action@v2
with:
rust-version: ${{ matrix.rust }}
# install openssl {{{
- name: Install OpenSSL on Ubuntu
if: matrix.os == 'ubuntu-latest'
run: |
sudo apt-get update
sudo apt-get install -y libssl-dev
- name: Install OpenSSL on macOS
if: matrix.os == 'macOS-latest'
run: |
brew update
brew install openssl
- name: Install OpenSSL on Windows
if: matrix.os == 'windows-latest'
run: |
echo "VCPKG_ROOT=$env:VCPKG_INSTALLATION_ROOT" | Out-File -FilePath $env:GITHUB_ENV -Append
vcpkg install openssl:x64-windows-static-md
# }}}
- uses: actions/checkout@v4
- name: install clippy
run: rustup component add clippy
- name: Run checks
run: make check
- name: Run explicit openssl checks
run: make check_openssl
- name: Run explicit md5 checks
run: make check_md5