Upgrade the GitHub Actions dependencies and support openssl on Windows environment #236
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: | | |
choco install openssl | |
echo "OPENSSL_DIR=C:\Program Files\OpenSSL-Win64" >> $GITHUB_ENV | |
# }}} | |
- 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 |