Skip to content

Commit ecc5b15

Browse files
committed
Add CI for mbedtls implementation
1 parent fc2e042 commit ecc5b15

File tree

1 file changed

+30
-1
lines changed

1 file changed

+30
-1
lines changed

.github/workflows/ci.yml

+30-1
Original file line numberDiff line numberDiff line change
@@ -55,4 +55,33 @@ jobs:
5555
path: target
5656
key: target-${{ runner.os }}-${{ steps.rust-version.outputs.version }}-${{ hashFiles('Cargo.lock') }}
5757
- run: cargo test --features vendored
58-
- run: cargo test --features vendored
58+
59+
mbedtls:
60+
name: test-mbedtls
61+
runs-on: ubuntu-latest
62+
steps:
63+
- uses: actions/checkout@v2
64+
- uses: sfackler/actions/rustup@master
65+
with:
66+
version: 1.63.0
67+
- run: echo "::set-output name=version::$(rustc --version)"
68+
id: rust-version
69+
# trigger mbedtls implementation
70+
- run: sed -i 's/target_env = "sgx"/target_env = "gnu"/' {Cargo.toml,src/lib.rs,src/test.rs}
71+
- uses: actions/cache@v1
72+
with:
73+
path: ~/.cargo/registry/index
74+
key: index-${{ runner.os }}-mbdetls-${{ github.run_number }}
75+
restore-keys: |
76+
index-${{ runner.os }}-mbedtls-
77+
- run: cargo generate-lockfile
78+
- uses: actions/cache@v1
79+
with:
80+
path: ~/.cargo/registry/cache
81+
key: registry-${{ runner.os }}-mbedtls-${{ steps.rust-version.outputs.version }}-${{ hashFiles('Cargo.lock') }}
82+
- run: cargo fetch
83+
- uses: actions/cache@v1
84+
with:
85+
path: target
86+
key: target-${{ runner.os }}-mbedtls-${{ steps.rust-version.outputs.version }}-${{ hashFiles('Cargo.lock') }}
87+
- run: cargo test --features vendored --lib

0 commit comments

Comments
 (0)