From 1b495c9ec4325193c659d2a89d4f00667351b346 Mon Sep 17 00:00:00 2001 From: Tarrence van As Date: Fri, 12 Jan 2024 20:44:54 -0500 Subject: [PATCH] Install fortanix sgx tools --- .devcontainer/Dockerfile | 4 +++- .github/workflows/ci.yml | 9 +++++++++ 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/.devcontainer/Dockerfile b/.devcontainer/Dockerfile index 0895fc1ad4..54a3767638 100644 --- a/.devcontainer/Dockerfile +++ b/.devcontainer/Dockerfile @@ -46,7 +46,9 @@ RUN if [ "$TARGETPLATFORM" = "linux/arm64" ] ; then \ rm -r hurl-4.1.0-x86_64-unknown-linux-gnu && \ rm hurl.tar.gz && \ rustup component add llvm-tools-preview --toolchain $(cat rust_toolchain_version)-x86_64-unknown-linux-gnu && \ - rustup target add x86_64-fortanix-unknown-sgx --toolchain nightly; \ + rustup target add x86_64-fortanix-unknown-sgx --toolchain nightly && \ + cargo binstall fortanix-sgx-tools sgxs-tools && \ + echo >> ~/.cargo/config -e '[target.x86_64-fortanix-unknown-sgx]\nrunner = "ftxsgx-runner-cargo"'; \ fi RUN curl -L https://install.dojoengine.org | bash diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 4ff6eac5fa..cc66b1802b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -34,6 +34,15 @@ jobs: - uses: Swatinem/rust-cache@v2 - run: cargo build -r --target wasm32-unknown-unknown -p torii-client + ensure-fortanix: + runs-on: ubuntu-latest + container: + image: ghcr.io/dojoengine/dojo-dev:136a67a + steps: + - uses: actions/checkout@v3 + - uses: Swatinem/rust-cache@v2 + - run: cargo build -r --target wasm32-unknown-unknown -p torii-client + ensure-windows: runs-on: windows-latest steps: