From 2a15e8053de5914bc62515724665f318a957b2ac Mon Sep 17 00:00:00 2001 From: Capri Date: Wed, 15 Jul 2026 19:34:34 +0000 Subject: [PATCH] Use project depends in Ubuntu CI --- .github/workflows/ci.yml | 42 ++++++++++++++++++++++++++-------------- 1 file changed, 28 insertions(+), 14 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index eec55a1..b164242 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -17,18 +17,19 @@ on: env: CI_FAILFAST_TEST_LEAVE_DANGLING: 1 + HOST: x86_64-pc-linux-gnu jobs: ubuntu-build: name: Ubuntu build and tests runs-on: ubuntu-24.04 - timeout-minutes: 90 + timeout-minutes: 120 steps: - name: Check out repository uses: actions/checkout@v4 - - name: Install build dependencies + - name: Install build tools run: | sudo apt-get update sudo DEBIAN_FRONTEND=noninteractive apt-get install -y \ @@ -39,28 +40,41 @@ jobs: libtool \ pkg-config \ python3 \ - python3-pip \ git \ curl \ - ca-certificates \ - libevent-dev \ - libboost-system-dev \ - libboost-filesystem-dev \ - libboost-test-dev \ - libboost-thread-dev \ - libsqlite3-dev \ - libzmq3-dev + ca-certificates + + - name: Cache depends + uses: actions/cache@v4 + with: + path: | + depends/built + depends/sdk-sources + depends/sources + depends/work + depends/${{ env.HOST }} + key: vexta-depends-${{ runner.os }}-${{ env.HOST }}-${{ hashFiles('depends/**') }} + restore-keys: | + vexta-depends-${{ runner.os }}-${{ env.HOST }}- + + - name: Build project dependencies + run: | + make -C depends \ + HOST="${HOST}" \ + NO_QT=1 \ + NO_UPNP=1 \ + NO_NATPMP=1 \ + -j2 - name: Generate configure script run: ./autogen.sh - name: Configure run: | + CONFIG_SITE="$PWD/depends/${HOST}/share/config.site" \ ./configure \ --without-gui \ - --disable-bench \ - --with-incompatible-bdb \ - --with-zmq + --disable-bench - name: Build run: make -j2