Skip to content

Commit 5c9c74b

Browse files
committed
Add CI test
1 parent 9b96570 commit 5c9c74b

File tree

1 file changed

+28
-1
lines changed

1 file changed

+28
-1
lines changed

.github/workflows/tests.yml

Lines changed: 28 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -611,8 +611,10 @@ jobs:
611611
fail-fast: false
612612
matrix:
613613
os: [ ubuntu-latest, macos-latest ]
614+
cflags:
615+
- '-O3'
614616
env:
615-
CFLAGS: '-O3'
617+
CFLAGS: ${{ matrix.cflags }}
616618
runs-on: ubuntu-latest
617619
steps:
618620
- uses: actions/checkout@v4
@@ -623,3 +625,28 @@ jobs:
623625
run: cargo test -p aws-lc-rs --all-targets
624626
- name: Run tests w/ FIPS
625627
run: cargo test -p aws-lc-rs --all-targets --features fips
628+
629+
hardened-environment:
630+
if: github.repository_owner == 'aws'
631+
name: Hardened environment
632+
strategy:
633+
fail-fast: false
634+
matrix:
635+
os:
636+
- ubuntu-latest
637+
cflags:
638+
- '-O2 -fhardened'
639+
gcc_version:
640+
- 14
641+
env:
642+
CC: gcc-${{ matrix.gcc_version }}
643+
CXX: g++-${{ matrix.gcc_version }}
644+
CFLAGS: ${{ matrix.cflags }}
645+
runs-on: ubuntu-latest
646+
steps:
647+
- uses: actions/checkout@v4
648+
with:
649+
submodules: 'recursive'
650+
- uses: dtolnay/rust-toolchain@stable
651+
- name: Run tests
652+
run: cargo test -p aws-lc-rs --all-targets

0 commit comments

Comments
 (0)