Code for QUIC support #42
Workflow file for this run
This file contains hidden or 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: macOS Build and Test | |
| on: | |
| push: | |
| branches: [ 'main' ] | |
| pull_request: | |
| branches: [ 'main' ] | |
| jobs: | |
| macos-build: | |
| name: Build and Test (macOS) | |
| runs-on: macos-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install Build Prerequisites | |
| run: | | |
| brew install autoconf libtool automake | |
| brew install go | |
| - name: Install Rust | |
| uses: dtolnay/rust-toolchain@master | |
| with: | |
| toolchain: stable | |
| components: rustfmt, clippy | |
| - name: Cache Rust dependencies | |
| uses: actions/cache@v3 | |
| with: | |
| path: | | |
| ~/.cargo/registry | |
| ~/.cargo/git | |
| target | |
| key: macos-cargo-${{ hashFiles('**/Cargo.lock') }} | |
| restore-keys: | | |
| macos-cargo- | |
| - name: Build and Test wolfcrypt-rs | |
| run: | | |
| cd wolfcrypt-rs | |
| make build | |
| make test | |
| - name: Build and Test rustls-wolfcrypt-provider | |
| run: | | |
| cd rustls-wolfcrypt-provider | |
| make build | |
| make test | |
| - name: Check formatting | |
| run: | | |
| cd wolfcrypt-rs | |
| cargo fmt --all -- --check | |
| cd ../rustls-wolfcrypt-provider | |
| cargo fmt --all -- --check | |
| - name: Run clippy | |
| run: | | |
| cd wolfcrypt-rs | |
| cargo clippy --all-features -- -D warnings | |
| cd ../rustls-wolfcrypt-provider | |
| cargo clippy --all-features -- -D warnings | |
| - name: Run tests of rustls v0.23.35 | |
| run: | | |
| mkdir rustlsv0.23.35-test-workspace | |
| cd rustlsv0.23.35-test-workspace | |
| git clone https://github.com/rustls/rustls.git | |
| cd rustls | |
| git fetch --tags | |
| selected_tag=$(git tag -l "v/0\.23\.35") | |
| git checkout "$selected_tag" | |
| cd .. | |
| git clone https://github.com/helkoulak/rustls-wolfcrypt-provider.git | |
| cd rustls-wolfcrypt-provider/ | |
| git checkout quic-support | |
| cd wolfcrypt-rs/ | |
| make build | |
| cd ../rustls-wolfcrypt-provider/ | |
| cargo build --all-features --release | |
| cd ../.. | |
| git clone https://github.com/helkoulak/rustls_v0.23.35_test_files.git | |
| cp -r ./rustls_v0.23.35_test_files/tests . | |
| cp ./rustls_v0.23.35_test_files/Cargo.toml . | |
| cp ./rustls_v0.23.35_test_files/provider_files/Cargo.toml ./rustls-wolfcrypt-provider/rustls-wolfcrypt-provider/ | |
| rm -rf rustls_v0.23.35_test_files | |
| cargo test -p tests --test all_suites --all-features | |
| cd .. | |
| rm -rf rustlsv0.23.35-test-workspace |