Skip to content

Commit

Permalink
Merge branch 'master' into master
Browse files Browse the repository at this point in the history
  • Loading branch information
zeevick10 authored Jan 18, 2025
2 parents b78da49 + 62963d5 commit 20bd836
Show file tree
Hide file tree
Showing 674 changed files with 164,672 additions and 117,702 deletions.
2 changes: 1 addition & 1 deletion .devcontainer/library-scripts/common-debian.sh
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ if [ "${PACKAGES_ALREADY_INSTALLED}" != "true" ]; then
libkrb5-3 \
libgssapi-krb5-2 \
libicu[0-9][0-9] \
liblttng-ust0 \
liblttng-ust1 \
libstdc++6 \
zlib1g \
locales \
Expand Down
45 changes: 26 additions & 19 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on: [push]

jobs:
Enclave-Unit-Tests:
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
with:
Expand All @@ -15,7 +15,7 @@ jobs:
mkdir -p "$HOME/.sgxsdk"
cd "$HOME/.sgxsdk"
SDK_BIN=sgx_linux_x64_sdk_2.20.100.4.bin
wget https://download.01.org/intel-sgx/sgx-linux/2.20/distro/ubuntu20.04-server/"$SDK_BIN"
wget https://download.01.org/intel-sgx/sgx-linux/2.20/distro/ubuntu22.04-server/"$SDK_BIN"
chmod +x "$SDK_BIN"
echo yes | ./"$SDK_BIN"
- name: Cache cargo registry
Expand Down Expand Up @@ -97,7 +97,7 @@ jobs:
path: cosmwasm/contracts/v010/compute-tests/test-compute-contract/static-too-high-initial-memory.wasm

Go-Tests:
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
needs: [Build-Contracts, Build-LocalSecret]
steps:
- uses: actions/checkout@v4
Expand Down Expand Up @@ -164,9 +164,9 @@ jobs:
- name: Install Quote library SDK
run: |
curl -fsSL https://download.01.org/intel-sgx/sgx_repo/ubuntu/intel-sgx-deb.key | sudo apt-key add -
sudo add-apt-repository "deb https://download.01.org/intel-sgx/sgx_repo/ubuntu focal main"
DCAP_VERSION=1.17.100.4-focal1
PSW_VERSION=2.20.100.4-focal1
sudo add-apt-repository "deb https://download.01.org/intel-sgx/sgx_repo/ubuntu jammy main"
DCAP_VERSION=1.17.100.4-jammy1
PSW_VERSION=2.20.100.4-jammy1
sudo apt-get update
sudo apt-get install -y \
libsgx-aesm-launch-plugin=$PSW_VERSION \
Expand All @@ -186,6 +186,7 @@ jobs:
LIB_PATH=/usr/lib/x86_64-linux-gnu
sudo ln -s $LIB_PATH/libsgx_dcap_ql.so.1 $LIB_PATH/libsgx_dcap_ql.so
sudo ln -s $LIB_PATH/libsgx_dcap_quoteverify.so.1 $LIB_PATH/libsgx_dcap_quoteverify.so
sudo ln -s $LIB_PATH/libsgx_epid.so.1 $LIB_PATH/libsgx_epid.so
- name: Test x/registration
run: |
source "$HOME/.sgxsdk/sgxsdk/environment"
Expand All @@ -204,7 +205,7 @@ jobs:
LOG_LEVEL=ERROR SKIP_LIGHT_CLIENT_VALIDATION=TRUE go test -p 1 -timeout 90m -v -tags "test" ./x/compute/internal/...
Clippy:
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
with:
Expand Down Expand Up @@ -254,23 +255,28 @@ jobs:
SGX_MODE=HW make clippy
MacOS-ARM64-CLI:
runs-on: ubuntu-20.04
runs-on: macos-12-large
strategy:
fail-fast: false
timeout-minutes: 90
steps:
- uses: actions/checkout@v4
with:
name: checkout
submodules: recursive
- uses: actions/setup-go@v5
with:
name: set up go
go-version: 1.21 # The Go version to download (if necessary) and use.
- name: Install xgo
run: |
go install github.com/crazy-max/[email protected]
xgo || true # check installation
- name: Build MacOS CLI
run: make build_macos_arm64_cli

- name: Build macos darwin/arm64
run: SGX_MODE=SW make build_cli
- uses: actions/upload-artifact@v3
with:
name: secretcli-macos-arm64
path: secretcli
Build-LocalSecret:
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
steps:
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
Expand Down Expand Up @@ -305,7 +311,7 @@ jobs:
path: /tmp/localsecret.tar

Build-Hermes:
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
steps:
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
Expand All @@ -328,7 +334,7 @@ jobs:
path: /tmp/hermes.tar

Integration-Tests:
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
needs: [Build-LocalSecret, Build-Hermes]
steps:
- uses: actions/checkout@v4
Expand Down Expand Up @@ -358,11 +364,12 @@ jobs:
make kill-localsecret # next step needs the localsecret ports
- name: Run secret.js tests
run: |
git clone --depth 1 --branch master https://github.com/scrtlabs/secret.js
git clone --depth 1 --branch v1.15.0-beta.0 https://github.com/scrtlabs/secret.js
cd secret.js
# Use the docker images that we built just a few steps above
perl -i -pe 's/localsecret:.+?"/localsecret:v0.0.0"/' ./test/docker-compose.yml
yarn
docker compose -f ./test/docker-compose.yml up -d > docker-compose.log 2>&1
sleep 10
yarn test-ci || { cat docker-compose.log; exit 1; }
make kill-localsecret
2 changes: 1 addition & 1 deletion .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ on:
jobs:
analyze:
name: Analyze
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
permissions:
actions: read
contents: read
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/go-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,5 @@ jobs:
- name: golangci-lint
uses: golangci/golangci-lint-action@v3
with:
version: v1.54.2
version: v1.61
skip-cache: true
Loading

0 comments on commit 20bd836

Please sign in to comment.