From 8d3ac9507e872bb8fcda707ad85a6049704962a5 Mon Sep 17 00:00:00 2001 From: Brendan Ryan Date: Tue, 24 Mar 2026 09:15:48 -0700 Subject: [PATCH] ci: install tempo binary in test workflow The tempo binary was missing from CI, causing all native Instance.tempo() tests to timeout (Pool.test.ts, Server.test.ts, tempo.test.ts). Downloads a pinned release (v1.5.0) from GitHub Releases with actions/cache so it's only fetched once per version bump. --- .github/workflows/verify.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/.github/workflows/verify.yml b/.github/workflows/verify.yml index 48733f5..441fab0 100644 --- a/.github/workflows/verify.yml +++ b/.github/workflows/verify.yml @@ -24,6 +24,8 @@ jobs: test: name: Test runs-on: ubuntu-latest + env: + TEMPO_VERSION: v1.5.0 steps: - name: Clone repository uses: actions/checkout@v4 @@ -34,6 +36,27 @@ jobs: - name: Set up Foundry uses: foundry-rs/foundry-toolchain@v1 + - name: Cache Tempo binary + id: cache-tempo + uses: actions/cache@v4 + with: + path: ~/.local/bin/tempo + key: tempo-${{ env.TEMPO_VERSION }}-${{ runner.os }}-${{ runner.arch }} + + - name: Install Tempo + if: steps.cache-tempo.outputs.cache-hit != 'true' + run: | + TARGET="x86_64-unknown-linux-gnu" + ARCHIVE="tempo-${TEMPO_VERSION}-${TARGET}.tar.gz" + URL="https://github.com/tempoxyz/tempo/releases/download/${TEMPO_VERSION}/${ARCHIVE}" + mkdir -p ~/.local/bin + curl -sSL "$URL" | tar xz -C ~/.local/bin --strip-components=0 "tempo-${TEMPO_VERSION}-${TARGET}" + mv ~/.local/bin/tempo-${TEMPO_VERSION}-${TARGET} ~/.local/bin/tempo + chmod +x ~/.local/bin/tempo + + - name: Add Tempo to PATH + run: echo "$HOME/.local/bin" >> $GITHUB_PATH + - name: Set up Docker uses: docker/setup-docker-action@v4