diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f9f58d58..b439b0d7 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -126,6 +126,64 @@ jobs: - name: doc tests run: cargo test --package ${{ matrix.package }} --doc + incredible-squaring: + timeout-minutes: 90 + runs-on: ubuntu-latest + steps: + - name: checkout code + uses: actions/checkout@v2 + with: + path: gadget + + - name: Download Tangle node + uses: robinraju/release-downloader@v1 + with: + repository: tangle-network/tangle + latest: true + preRelease: true + fileName: tangle-testnet-manual-seal-linux-amd64 + tarBall: false + zipBall: false + out-file-path: tangle + + - name: Install Foundry + run: | + curl -L https://foundry.paradigm.xyz | bash + ${FOUNDRY_DIR:-"$HOME/.foundry"}/bin/foundryup + env: + FOUNDRY_DIR: ${{ runner.temp }}/foundry + shell: bash + + - name: Add Foundry to PATH + run: echo "${{ runner.temp }}/foundry/bin" >> $GITHUB_PATH + + - name: Forge build + working-directory: gadget/blueprints/incredible-squaring + run: forge update && forge build + + - name: install rust + uses: dtolnay/rust-toolchain@nightly + with: + toolchain: stable + + - uses: swatinem/rust-cache@v2 + with: + cache-on-failure: "true" + + - name: install protobuf and gmp + run: | + sudo apt-get update + sudo apt-get install -y protobuf-compiler libprotobuf-dev libgmp-dev + + - name: install cargo-nextest + run: cargo install cargo-nextest --locked + + - name: tests + working-directory: gadget + env: + TANGLE_NODE: "$(pwd)/../tangle" + run: cargo nextest run --nocapture --package incredible-squaring-blueprint test_blueprint --retries 0 + eigenlayer-tests: timeout-minutes: 90 runs-on: ubuntu-latest