File tree Expand file tree Collapse file tree 1 file changed +30
-1
lines changed Expand file tree Collapse file tree 1 file changed +30
-1
lines changed Original file line number Diff line number Diff line change 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 alpn --lib
You can’t perform that action at this time.
0 commit comments