Merge pull request #663 from pabuhler/cipher_driver-fixes #222
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: AutoTools CI | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
jobs: | |
build: | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [ubuntu-latest, macos-latest] | |
crypto: [internal, openssl, nss] | |
include: | |
- crypto: internal | |
configure-crypto-enable: "" | |
- crypto: openssl | |
configure-crypto-enable: "--enable-openssl" | |
- crypto: nss | |
configure-crypto-enable: "--enable-nss" | |
runs-on: ${{ matrix.os }} | |
steps: | |
- name: Setup Ubuntu | |
if: matrix.os == 'ubuntu-latest' | |
run: | | |
sudo apt-get update | |
sudo apt-get install valgrind | |
- name: Setup Ubuntu NSS | |
if: matrix.os == 'ubuntu-latest' && matrix.crypto == 'nss' | |
run: sudo apt-get install libnss3-dev | |
- name: Setup macOS OpenSSL | |
if: matrix.os == 'macos-latest' && matrix.crypto == 'openssl' | |
run: echo "configure-env=PKG_CONFIG_PATH=$(brew --prefix openssl@1.1)/lib/pkgconfig" >> $GITHUB_ENV | |
- name: Setup macOS NSS | |
if: matrix.os == 'macos-latest' && matrix.crypto == 'nss' | |
run: brew install nss | |
- uses: actions/checkout@v2 | |
- name: Configure | |
run: ${{env.configure-env}} EXTRA_CFLAGS=-Werror ./configure ${{ matrix.configure-crypto-enable}} | |
- name: Build | |
run: make | |
- name: Test | |
run: make runtest | |
- name: Test Valgrind | |
if: matrix.os == 'ubuntu-latest' && matrix.crypto != 'nss' | |
run: make runtest-valgrind |