-
Notifications
You must be signed in to change notification settings - Fork 132
Add build with hardened flag #2396
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -316,6 +316,37 @@ jobs: | |
if: ${{ !( matrix.gccversion == '14' && matrix.fips == '1' ) }} | ||
run: cmake --build ./build --target run_tests | ||
|
||
gcc-14-hardened: | ||
if: github.repository_owner == 'aws' | ||
needs: [ sanity-test-run ] | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
gccversion: | ||
- "14" | ||
fips: | ||
- "0" | ||
- "1" | ||
runs-on: ubuntu-24.04 | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-go@v4 | ||
with: | ||
go-version: '>=1.18' | ||
- name: Setup CMake | ||
uses: threeal/[email protected] | ||
with: | ||
generator: Ninja | ||
c-compiler: gcc-${{ matrix.gccversion }} | ||
cxx-compiler: g++-${{ matrix.gccversion }} | ||
options: FIPS=${{ matrix.fips }} CMAKE_BUILD_TYPE=Release | ||
- name: Build Project | ||
# TODO: Re-enable gcc-14/FIPS build once delocator updated | ||
if: ${{ !( matrix.gccversion == '14' && matrix.fips == '1' ) }} | ||
run: | | ||
cmake -DCMAKE_C_FLAGS='-O2 -fhardened -Wno-error=hardened' -S. -Bbuild | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'm curious what errors do we see with just |
||
cmake --build ./build --target all | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Should we use the |
||
|
||
gcc-13-pedantic: | ||
if: github.repository_owner == 'aws' | ||
needs: [ sanity-test-run ] | ||
|
Uh oh!
There was an error while loading. Please reload this page.