Add DCAP quote support #764
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: test | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
jobs: | |
lint: | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: nightly | |
- uses: datachainlab/rust-cache@allow_registry_src_caching | |
with: | |
workspaces: | | |
. | |
./enclave | |
cache-directories: | | |
~/.cargo/registry/src/**/librocksdb-sys-* | |
- run: cargo check -r | |
working-directory: enclave-modules | |
- run: make lint-tools | |
- run: make lint | |
sdk-test: | |
runs-on: ubuntu-22.04 | |
env: | |
SGX_MODE: SW | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: nightly | |
- uses: datachainlab/rust-cache@allow_registry_src_caching | |
with: | |
workspaces: | | |
. | |
./enclave | |
cache-directories: | | |
~/.cargo/registry/src/**/librocksdb-sys-* | |
- run: bash .github/scripts/install_sgx_sdk.sh /opt/intel | |
- run: source /opt/intel/sgxsdk/environment && make -B | |
- run: source /opt/intel/sgxsdk/environment && make test | |
- run: source /opt/intel/sgxsdk/environment && make integration-test |