Align aws-lc-sys v0.16.0 with AWS-LC 1.26.0 #428
Workflow file for this run
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
name: integration | |
on: | |
push: | |
branches: | |
- '*' | |
- '!generate/aws-lc-*' | |
pull_request: | |
branches: | |
- '*' | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.event.pull_request.number }} | |
cancel-in-progress: true | |
env: | |
RUST_BACKTRACE: 1 | |
# We can pin the version if nightly is too unstable. | |
# Otherwise, we test against the latest version. | |
RUST_NIGHTLY_TOOLCHAIN: nightly | |
jobs: | |
s2n-quic-integration: | |
if: github.repository_owner == 'aws' | |
name: s2n-quic-integration | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [ ubuntu-latest, macos-12, macos-13-xlarge ] | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
submodules: 'recursive' | |
- uses: dtolnay/rust-toolchain@stable | |
id: toolchain | |
- name: Set Rust toolchain override | |
run: rustup override set ${{ steps.toolchain.outputs.name }} | |
- name: Run s2n-quic integration | |
working-directory: ./aws-lc-rs | |
run: | | |
./scripts/run-s2n-quic-integration.sh | |
rustls-integration: | |
if: github.repository_owner == 'aws' | |
name: rustls-integration | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [ ubuntu-latest, macos-12, macos-13-xlarge ] | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
submodules: 'recursive' | |
- uses: dtolnay/rust-toolchain@stable | |
id: toolchain | |
- name: Set Rust toolchain override | |
run: rustup override set ${{ steps.toolchain.outputs.name }} | |
- name: Install cargo-download | |
run: cargo install cargo-download | |
- name: Run rustls integration | |
working-directory: ./aws-lc-rs | |
run: | | |
./scripts/run-rustls-integration.sh | |
links-crate-tests: | |
if: github.repository_owner == 'aws' | |
name: sys crate tests | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [ ubuntu-latest, macos-12, macos-13-xlarge, windows-latest ] | |
features: [ aws-lc-rs, aws-lc-rs-fips, aws-lc-sys, aws-lc-fips-sys ] | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
submodules: 'recursive' | |
- uses: dtolnay/rust-toolchain@stable | |
id: toolchain | |
- name: Set Rust toolchain override | |
run: rustup override set ${{ steps.toolchain.outputs.name }} | |
- name: Install NASM on Windows | |
if: runner.os == 'Windows' | |
uses: ilammy/setup-nasm@v1 | |
- name: Setup Go >=v1.18 | |
uses: actions/setup-go@v4 | |
with: | |
go-version: '>=1.18' | |
- name: Install ninja-build tool | |
uses: seanmiddleditch/gha-setup-ninja@v4 | |
- name: Run cargo test | |
working-directory: ./links-testing | |
run: cargo test --features ${{ matrix.features }} --no-default-features | |
- name: Run cargo run | |
working-directory: ./links-testing | |
run: cargo run --features ${{ matrix.features }} --no-default-features | |
publish-dry-run: | |
if: github.repository_owner == 'aws' | |
name: publish dry-run | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
rust: [ stable ] | |
os: [ windows-latest, ubuntu-latest, macos-12, macos-13-xlarge ] | |
crate: [ aws-lc-sys, aws-lc-rs, aws-lc-fips-sys ] | |
args: | |
- publish --dry-run | |
steps: | |
- uses: actions/setup-go@v4 | |
with: | |
go-version: '>=1.18' | |
- run: go version | |
- uses: actions/checkout@v3 | |
with: | |
submodules: 'recursive' | |
- if: ${{ matrix.os == 'windows-latest' }} | |
uses: ilammy/setup-nasm@v1 | |
- name: Install ninja-build tool | |
if: ${{ matrix.os == 'windows-latest' }} | |
uses: seanmiddleditch/gha-setup-ninja@v4 | |
- uses: dtolnay/rust-toolchain@master | |
id: toolchain | |
with: | |
toolchain: ${{ matrix.rust }} | |
- name: Set Rust toolchain override | |
run: rustup override set ${{ steps.toolchain.outputs.name }} | |
- name: ${{ matrix.crate }} | |
working-directory: ./${{ matrix.crate }} | |
run: cargo ${{ matrix.args }} | |
- name: Clean | |
run: cargo clean | |
- name: Force Linux shared build | |
working-directory: ./${{ matrix.crate }} | |
if: ${{ matrix.os == 'ubuntu-latest' }} | |
# Doc-tests fail to link with dynamic build | |
# See: https://github.com/rust-lang/cargo/issues/8531 | |
run: AWS_LC_SYS_STATIC=0 AWS_LC_FIPS_SYS_STATIC=0 cargo publish --dry-run | |
msrv: | |
name: Minimum Supported Rust Version | |
if: github.repository_owner == 'aws' | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [ ubuntu-latest, macos-12, macos-13-xlarge, windows-latest ] | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
submodules: 'recursive' | |
lfs: true | |
- name: Install NASM on Windows | |
if: runner.os == 'Windows' | |
uses: ilammy/setup-nasm@v1 | |
- name: Install ninja-build tool | |
if: runner.os == 'Windows' | |
uses: seanmiddleditch/gha-setup-ninja@v4 | |
- name: Install MSRV Rust version | |
uses: dtolnay/rust-toolchain@stable | |
with: | |
toolchain: 1.61.0 # TODO: dynamically identify MSRV | |
- name: Verify msrv | |
working-directory: ./aws-lc-rs | |
run: cargo +1.61.0 check --features bindgen |