Skip to content

Commit

Permalink
Add CI for mbedtls implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
zvolin committed May 4, 2023
1 parent a5947b2 commit 612f281
Showing 1 changed file with 30 additions and 1 deletion.
31 changes: 30 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,4 +55,33 @@ jobs:
path: target
key: target-${{ runner.os }}-${{ steps.rust-version.outputs.version }}-${{ hashFiles('Cargo.lock') }}
- run: cargo test --features vendored
- run: cargo test --features vendored

mbedtls:
name: test-mbedtls
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: sfackler/actions/rustup@master
with:
version: 1.63.0
- run: echo "::set-output name=version::$(rustc --version)"
id: rust-version
# trigger mbedtls implementation
- run: sed -i 's/target_env = "sgx"/target_env = "gnu"/' {Cargo.toml,src/lib.rs,src/test.rs}
- uses: actions/cache@v1
with:
path: ~/.cargo/registry/index
key: index-${{ runner.os }}-mbdetls-${{ github.run_number }}
restore-keys: |
index-${{ runner.os }}-mbedtls-
- run: cargo generate-lockfile
- uses: actions/cache@v1
with:
path: ~/.cargo/registry/cache
key: registry-${{ runner.os }}-mbedtls-${{ steps.rust-version.outputs.version }}-${{ hashFiles('Cargo.lock') }}
- run: cargo fetch
- uses: actions/cache@v1
with:
path: target
key: target-${{ runner.os }}-mbedtls-${{ steps.rust-version.outputs.version }}-${{ hashFiles('Cargo.lock') }}
- run: cargo test --features vendored --lib

0 comments on commit 612f281

Please sign in to comment.