Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
75 changes: 75 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -334,6 +334,81 @@ jobs:
export PATH="/tmp/lssa/target/release:$PATH"
scripts/ffi-call-test.sh /tmp/ffi-call-test

multisig-e2e-test:
name: Multisig E2E (witness exchange)
needs: [sequencer-setup]
runs-on: ubuntu-latest
timeout-minutes: 35
env:
RISC0_VERSION: "3.0.5"
steps:
- uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.sha || github.sha }}
- uses: dtolnay/rust-toolchain@stable
- name: Install system dependencies
run: sudo apt-get update && sudo apt-get install -y libpcsclite-dev

- name: Clone LEZ at correct revision
run: |
rm -rf /tmp/lssa
git clone https://github.com/logos-blockchain/logos-execution-zone.git /tmp/lssa
cd /tmp/lssa
git fetch --depth 1 origin ${{ needs.sequencer-setup.outputs.lez-rev }}
git checkout ${{ needs.sequencer-setup.outputs.lez-rev }}

- name: Restore sequencer cache
uses: actions/cache@v4
with:
path: /tmp/lssa/target/release/sequencer_service
key: sequencer-${{ needs.sequencer-setup.outputs.lez-rev }}

- name: Restore wallet cache
uses: actions/cache@v4
with:
path: /tmp/lssa/target/release/wallet
key: wallet-${{ needs.sequencer-setup.outputs.lez-rev }}

- name: Install logos-blockchain-circuits
run: |
curl -sSL https://raw.githubusercontent.com/logos-blockchain/logos-blockchain/1da154c74b911318fb853d37261f8a05ffe513b4/scripts/setup-logos-blockchain-circuits.sh | bash
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Restore spel CLI cache (PR-specific)
uses: actions/cache@v4
with:
path: /tmp/lssa/target/release/spel
key: spel-cli-${{ needs.sequencer-setup.outputs.lez-rev }}-pr${{ github.event.pull_request.number || 'main' }}-${{ github.run_id }}

- name: Determine SPEL ref for testing
id: spel-ref
run: |
if [ "${{ github.event_name }}" = "pull_request" ]; then
SPEL_REF="refs/pull/${{ github.event.pull_request.number }}/head"
else
SPEL_REF="${{ github.sha }}"
fi
echo "SPEL_REF=$SPEL_REF" >> $GITHUB_OUTPUT

- name: Install risc0 toolchain
run: |
curl -L https://risc0.com/install | bash
echo "$HOME/.risc0/bin" >> $GITHUB_PATH
export PATH="$HOME/.risc0/bin:$PATH"
rzup install cargo-risczero ${{ env.RISC0_VERSION }}
rzup install rust

- name: Run multisig E2E test
env:
LSSA_DIR: /tmp/lssa
LEZ_TAG: ${{ needs.sequencer-setup.outputs.lez-tag }}
SPEL_TAG: ${{ steps.spel-ref.outputs.SPEL_REF }}
SPEL_GIT: ${{ github.server_url }}/${{ github.repository }}.git
run: |
export PATH="/tmp/lssa/target/release:$PATH"
scripts/multisig-e2e-test.sh /tmp/multisig-e2e-test

init-e2e-test:
name: Init E2E (default flags)
needs: [sequencer-setup]
Expand Down
Loading
Loading