-
Notifications
You must be signed in to change notification settings - Fork 42
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Updated to support OpenSSL 3 * Addressed reviewer's comments * Refactored group.cpp * Added Github actions for OpenSSL 3 * Added OpenSSL vcpkg.json for MLS library and interop binary * clang-tidy conformance and updated tests for FIPS mode * Fixed broken GitHub actions * Updated built-baseline to allow Windows to find OpenSSL 3.0.7 * Addressed reviewer's comments * Removed unused OpenSSL 3 vcpkg.json for interop * Added missing pkg-config to OpenSSL 3 CI build
- Loading branch information
Showing
10 changed files
with
474 additions
and
13 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
name: Build and Test (OpenSSL 3) | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
branches: | ||
- main | ||
schedule: | ||
- cron: '30 3 * * 1' | ||
|
||
env: | ||
CTEST_OUTPUT_ON_FAILURE: 1 | ||
|
||
jobs: | ||
build: | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: [windows-latest, ubuntu-latest, macos-latest] | ||
include: | ||
- os: windows-latest | ||
vcpkg-cmake-file: "$env:VCPKG_INSTALLATION_ROOT\\scripts\\buildsystems\\vcpkg.cmake" | ||
ossl3-vcpkg-dir: "alternatives\\openssl_3" | ||
ctest-target: RUN_TESTS | ||
- os: ubuntu-latest | ||
vcpkg-cmake-file: "$VCPKG_INSTALLATION_ROOT/scripts/buildsystems/vcpkg.cmake" | ||
ossl3-vcpkg-dir: "alternatives/openssl_3" | ||
ctest-target: test | ||
- os: macos-latest | ||
vcpkg-cmake-file: "$VCPKG_INSTALLATION_ROOT/scripts/buildsystems/vcpkg.cmake" | ||
ossl3-vcpkg-dir: "alternatives/openssl_3" | ||
ctest-target: test | ||
|
||
env: | ||
CMAKE_BUILD_DIR: ${{ github.workspace }}/build | ||
CMAKE_TEST_DIR: ${{ github.workspace }}/build/test | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: dependencies (macos) | ||
if: ${{ matrix.os == 'macos-latest' }} | ||
run: | | ||
brew install llvm pkg-config | ||
ln -s "/usr/local/opt/llvm/bin/clang-format" "/usr/local/bin/clang-format" | ||
ln -s "/usr/local/opt/llvm/bin/clang-tidy" "/usr/local/bin/clang-tidy" | ||
- name: Restore cache | ||
uses: actions/cache@v2 | ||
with: | ||
path: | | ||
${{ env.CMAKE_BUILD_DIR }}/vcpkg_installed | ||
key: ${{ runner.os }}-${{ hashFiles( '**/vcpkg.json' ) }} | ||
|
||
- name: Configure to use clang-tidy and sanitizers | ||
run: | | ||
cmake -B "${{ env.CMAKE_BUILD_DIR }}" -DTESTING=ON -DCLANG_TIDY=ON -DSANITIZERS=ON -DVCPKG_MANIFEST_DIR="${{ matrix.ossl3-vcpkg-dir }}" -DCMAKE_TOOLCHAIN_FILE="${{ matrix.vcpkg-cmake-file}}" . | ||
- name: Build | ||
run: | | ||
cmake --build "${{ env.CMAKE_BUILD_DIR }}" | ||
- name: Unit tests | ||
run: | | ||
cmake --build "${{ env.CMAKE_BUILD_DIR }}" --target "${{ matrix.ctest-target}}" |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
{ | ||
"name": "mlspp", | ||
"version-string": "0.1", | ||
"description": "Cisco MLS C++ library (OpenSSL 3)", | ||
"dependencies": [ | ||
{ | ||
"name": "openssl", | ||
"version>=": "3.0.7" | ||
}, | ||
"doctest" | ||
], | ||
"builtin-baseline": "5908d702d61cea1429b223a0b7a10ab86bad4c78", | ||
"overrides": [ | ||
{ | ||
"name": "openssl", | ||
"version": "3.0.7" | ||
} | ||
] | ||
} |
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
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
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
Oops, something went wrong.