Skip to content

Use pkg-config to find OpenSSL include directories #59

Use pkg-config to find OpenSSL include directories

Use pkg-config to find OpenSSL include directories #59

Workflow file for this run

on:
push:
branches:
- main
pull_request:
name: Continuous integration
jobs:
fmt:
name: Rustfmt
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
- run: rustup component add rustfmt
- uses: actions-rs/cargo@v1
with:
command: fmt
args: --all -- --check
build_and_test_fedora_openssl_master:
name: "Tests on Fedora (OpenSSL master)"
runs-on: ubuntu-latest
container: fedora:rawhide
steps:
- uses: actions/checkout@v2
- name: Install dependencies
run: |
dnf install -y cargo rustc openssl-devel 'dnf-command(copr)'
dnf copr enable -y puiterwijk/openssl-master
dnf update -y openssl-libs openssl-devel
- name: Test
run: |
CAVP_REQUIRE_ALL=true CAVP_PRINT_SKIP=true cargo test --features "deny_custom" -- --nocapture
build_and_test_fedora:
name: "Tests on Fedora"
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
fedora_version:
# 35 has OpenSSL 1.1
- 35
# rawhide (36) has OpenSSL 3.0.0
- rawhide
features:
- "allow_custom"
- "deny_custom"
- "allow_custom,force_custom"
container:
image: "fedora:${{ matrix.fedora_version }}"
steps:
- uses: actions/checkout@v2
- name: Install dependencies
run: "dnf install -y cargo rustc openssl-devel"
- name: Test
run: |
CAVP_PRINT_SKIP=true cargo test --features "warn_custom,${{ matrix.features }}" -- --nocapture
build_and_test_ubuntu:
name: "Tests on Ubuntu"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Run tests
uses: actions-rs/cargo@v1
with:
command: test
args: "--features allow_custom -- --nocapture"