Skip to content

Commit

Permalink
Test with dynamic/static build
Browse files Browse the repository at this point in the history
  • Loading branch information
justsmth committed Jul 17, 2023
1 parent bdb3f60 commit 9102f80
Showing 1 changed file with 47 additions and 0 deletions.
47 changes: 47 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -450,6 +450,53 @@ jobs:
run: |
./scripts/tools/copyright_check.sh
build-env-test:
name: aws-lc-rs build-env-test
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ ubuntu-latest, macOS-latest ]
static: [ 0, 1 ]
steps:
- uses: actions/checkout@v3
with:
submodules: 'recursive'
- uses: actions-rs/[email protected]
id: toolchain
with:
toolchain: stable
override: true
- name: Run cargo test
working-directory: ./aws-lc-rs
# Doc-tests fail to link with dynamic build
# See: https://github.com/rust-lang/cargo/issues/8531
run: AWS_LC_SYS_STATIC=${{ matrix.static }} cargo test --tests

build-env-fips-test:
name: aws-lc-rs build-env-fips-test
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ ubuntu-latest, macOS-latest ]
static: [ 0, 1 ]
steps:
- uses: actions/checkout@v3
with:
submodules: 'recursive'
- uses: actions-rs/[email protected]
id: toolchain
with:
toolchain: stable
override: true
- name: Run cargo test
working-directory: ./aws-lc-rs
if: ${{ matrix.os != 'macOS-latest' || matrix.static != 1 }}
# Doc-tests fail to link with dynamic build
# See: https://github.com/rust-lang/cargo/issues/8531
run: AWS_LC_FIPS_SYS_STATIC=${{ matrix.static }} cargo test --tests --features fips

msrv:
name: Minimum Supported Rust Version
runs-on: ubuntu-latest
Expand Down

0 comments on commit 9102f80

Please sign in to comment.