Skip to content

Commit

Permalink
CI: fix to don't use container
Browse files Browse the repository at this point in the history
Signed-off-by: Jun Kimura <[email protected]>
  • Loading branch information
bluele committed Jun 10, 2023
1 parent e71425c commit 0e5c8f4
Showing 1 changed file with 12 additions and 18 deletions.
30 changes: 12 additions & 18 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: test
on: [push, pull_request]
jobs:
lint:
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- uses: actions-rs/toolchain@v1
Expand All @@ -19,7 +19,7 @@ jobs:
- run: make lint

udeps:
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- uses: actions-rs/toolchain@v1
Expand All @@ -36,7 +36,7 @@ jobs:
- run: make udeps

relayer:
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v3
Expand All @@ -53,7 +53,7 @@ jobs:
- run: make yrly

sdk-test:
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- uses: actions-rs/toolchain@v1
Expand All @@ -66,17 +66,11 @@ jobs:
./enclave
cache-directories: |
~/.cargo/registry/src/**/librocksdb-sys-*
- run: |
docker run -w /root/lcp \
-v $(pwd):/root/lcp \
-v ${HOME}/.cargo/git:/root/.cargo/git \
-v ${HOME}/.cargo/registry:/root/.cargo/registry \
bluele/sgx-rust:2004-1.1.6 \
/bin/bash -c \
"source /opt/sgxsdk/environment && \
source /root/.cargo/env && \
export SGX_MODE=SW && \
sed -i -e 's#deb https://download.01.org/intel-sgx/sgx_repo/ubuntu.*##g' /etc/apt/sources.list && \
apt update -y && apt install -y libclang-dev && \
make && make test integration-test cgen"
- run: sudo chown -R runner:docker . ${HOME}/.cargo
- run: curl -LO https://download.01.org/intel-sgx/sgx-linux/2.19/distro/ubuntu22.04-server/sgx_linux_x64_sdk_2.19.100.3.bin
- run: chmod +x ./sgx_linux_x64_sdk_2.19.100.3.bin
- run: echo -e 'no\n/opt' | ./sgx_linux_x64_sdk_2.19.100.3.bin
- run: source /opt/sgxsdk/environment && export SGX_MODE=SW
- run: make -B
- run: make test
- run: make integration-test
- run: make cgen

0 comments on commit 0e5c8f4

Please sign in to comment.