From 73f121ae563703aa7e4a73a916fb7571c28ee60d Mon Sep 17 00:00:00 2001 From: Jernej Kos Date: Mon, 12 Sep 2022 18:42:40 +0200 Subject: [PATCH] ci: Add build test for x86_64-fortanix-unknown-sgx target --- .github/workflows/ci.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index bbc350feab9..dfab6b7b260 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -49,6 +49,7 @@ jobs: - loom-compile - check-readme - test-hyper + - x86_64-fortanix-unknown-sgx - wasm32-unknown-unknown - wasm32-wasi - check-external-types @@ -452,6 +453,23 @@ jobs: git diff cargo test --features full + x86_64-fortanix-unknown-sgx: + name: test tokio for x86_64-fortanix-unknown-sgx + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - name: Install Rust ${{ env.rust_nightly }} + uses: actions-rs/toolchain@v1 + with: + toolchain: ${{ env.rust_nightly }} + target: x86_64-fortanix-unknown-sgx + override: true + - uses: Swatinem/rust-cache@v1 + # NOTE: Currently the only test we can run is to build tokio with rt and sync features. + - name: test tokio build + run: cargo build --target x86_64-fortanix-unknown-sgx --features rt,sync + working-directory: tokio + wasm32-unknown-unknown: name: test tokio for wasm32-unknown-unknown runs-on: ubuntu-latest