-
Notifications
You must be signed in to change notification settings - Fork 63
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Enable FIPS for Linux only Signed-off-by: Dhi Aurrahman <[email protected]> * Fix Signed-off-by: Dhi Aurrahman <[email protected]> * Use include Signed-off-by: Dhi Aurrahman <[email protected]> * No default for Linux Signed-off-by: Dhi Aurrahman <[email protected]> Signed-off-by: Dhi Aurrahman <[email protected]>
- Loading branch information
Showing
3 changed files
with
20 additions
and
25 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 |
---|---|---|
|
@@ -55,14 +55,13 @@ jobs: | |
strategy: | ||
fail-fast: false # don't fail fast as sometimes failures are operating system specific. | ||
matrix: | ||
os: | ||
- "macos-11" | ||
- "ubuntu-18.04" | ||
mode: | ||
- "default" | ||
# On CI, by default, we use libc++. | ||
- "clang" | ||
- "clang-fips" | ||
include: | ||
- os: macos-11 | ||
mode: default | ||
- os: ubuntu-18.04 | ||
mode: clang | ||
- os: ubuntu-18.04 | ||
mode: clang-fips | ||
steps: | ||
- name: Cancel when duplicated | ||
uses: styfle/[email protected] | ||
|
@@ -100,15 +99,15 @@ jobs: | |
|
||
# Prepare clang tooling and config when it is required. | ||
- name: Setup clang | ||
if: matrix.mode == 'clang' || matrix.mode == 'clang-fips' | ||
if: runner.os == 'Linux' && (matrix.mode == 'clang' || matrix.mode == 'clang-fips') | ||
# This downloads the required clang tooling when it is not downloaded yet. | ||
run: | | ||
make clang.bazelrc | ||
echo "BAZEL_FLAGS=--config=libc++" >> $GITHUB_ENV | ||
# Set BAZEL_FLAGS to FIPS mode only when it is required. | ||
- name: Setup FIPS mode | ||
if: matrix.mode == 'clang-fips' | ||
if: runner.os == 'Linux' && matrix.mode == 'clang-fips' | ||
run: echo "BAZEL_FLAGS=--config=libc++ --define=boringssl=fips" >> $GITHUB_ENV | ||
|
||
- name: Run all tests | ||
|
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 |
---|---|---|
|
@@ -17,14 +17,13 @@ jobs: | |
strategy: | ||
fail-fast: false # don't fail fast as sometimes failures are operating system specific. | ||
matrix: | ||
os: | ||
- "macos-11" | ||
- "ubuntu-18.04" | ||
mode: | ||
- "default" | ||
# By default we use libc++. | ||
- "clang" | ||
- "clang-fips" | ||
include: | ||
- os: macos-11 | ||
mode: default | ||
- os: ubuntu-18.04 | ||
mode: clang | ||
- os: ubuntu-18.04 | ||
mode: clang-fips | ||
steps: | ||
- name: Cancel when duplicated | ||
uses: styfle/[email protected] | ||
|
@@ -62,7 +61,7 @@ jobs: | |
|
||
# Prepare clang tooling and config when it is required. | ||
- name: Setup clang | ||
if: matrix.mode == 'clang' || matrix.mode == 'clang-fips' | ||
if: runner.os == 'Linux' && (matrix.mode == 'clang' || matrix.mode == 'clang-fips') | ||
# This downloads the required clang tooling when it is not downloaded yet. | ||
# GITHUB_REF: refs/tags/0.5.1-rc1, resulted VERSION: "0.5.1". | ||
run: | | ||
|
@@ -72,7 +71,7 @@ jobs: | |
# Set BAZEL_FLAGS to FIPS mode only when it is required. | ||
- name: Setup FIPS mode | ||
if: matrix.mode == 'clang-fips' | ||
if: runner.os == 'Linux' && matrix.mode == 'clang-fips' | ||
run: echo "BAZEL_FLAGS=--config=libc++ --define=boringssl=fips" >> $GITHUB_ENV | ||
|
||
- name: Create artifacts | ||
|
@@ -120,9 +119,6 @@ jobs: | |
uses: softprops/action-gh-release@v1 | ||
with: | ||
files: | | ||
dist-Linux-default/**/*.tar.gz | ||
dist-Linux-clang/**/*.tar.gz | ||
dist-Linux-clang-fips/**/*.tar.gz | ||
dist-macOS-default/**/*.tar.gz | ||
dist-macOS-clang/**/*.tar.gz | ||
dist-macOS-clang-fips/**/*.tar.gz |
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