Skip to content

Commit 67e4bc3

Browse files
authored
Test with dynamic/static build (#182)
1 parent bdb3f60 commit 67e4bc3

File tree

1 file changed

+47
-0
lines changed

1 file changed

+47
-0
lines changed

.github/workflows/ci.yml

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -450,6 +450,53 @@ jobs:
450450
run: |
451451
./scripts/tools/copyright_check.sh
452452
453+
build-env-test:
454+
name: aws-lc-rs build-env-test
455+
runs-on: ${{ matrix.os }}
456+
strategy:
457+
fail-fast: false
458+
matrix:
459+
os: [ ubuntu-latest, macOS-latest ]
460+
static: [ 0, 1 ]
461+
steps:
462+
- uses: actions/checkout@v3
463+
with:
464+
submodules: 'recursive'
465+
- uses: actions-rs/toolchain@v1.0.7
466+
id: toolchain
467+
with:
468+
toolchain: stable
469+
override: true
470+
- name: Run cargo test
471+
working-directory: ./aws-lc-rs
472+
# Doc-tests fail to link with dynamic build
473+
# See: https://github.com/rust-lang/cargo/issues/8531
474+
run: AWS_LC_SYS_STATIC=${{ matrix.static }} cargo test --tests
475+
476+
build-env-fips-test:
477+
name: aws-lc-rs build-env-fips-test
478+
runs-on: ${{ matrix.os }}
479+
strategy:
480+
fail-fast: false
481+
matrix:
482+
os: [ ubuntu-latest, macOS-latest ]
483+
static: [ 0, 1 ]
484+
steps:
485+
- uses: actions/checkout@v3
486+
with:
487+
submodules: 'recursive'
488+
- uses: actions-rs/toolchain@v1.0.7
489+
id: toolchain
490+
with:
491+
toolchain: stable
492+
override: true
493+
- name: Run cargo test
494+
working-directory: ./aws-lc-rs
495+
if: ${{ matrix.os != 'macOS-latest' || matrix.static != 1 }}
496+
# Doc-tests fail to link with dynamic build
497+
# See: https://github.com/rust-lang/cargo/issues/8531
498+
run: AWS_LC_FIPS_SYS_STATIC=${{ matrix.static }} cargo test --tests --features fips
499+
453500
msrv:
454501
name: Minimum Supported Rust Version
455502
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)