Use project depends in Ubuntu CI
This commit is contained in:
parent
95b015d8bd
commit
2a15e8053d
1 changed files with 28 additions and 14 deletions
42
.github/workflows/ci.yml
vendored
42
.github/workflows/ci.yml
vendored
|
|
@ -17,18 +17,19 @@ on:
|
||||||
|
|
||||||
env:
|
env:
|
||||||
CI_FAILFAST_TEST_LEAVE_DANGLING: 1
|
CI_FAILFAST_TEST_LEAVE_DANGLING: 1
|
||||||
|
HOST: x86_64-pc-linux-gnu
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
ubuntu-build:
|
ubuntu-build:
|
||||||
name: Ubuntu build and tests
|
name: Ubuntu build and tests
|
||||||
runs-on: ubuntu-24.04
|
runs-on: ubuntu-24.04
|
||||||
timeout-minutes: 90
|
timeout-minutes: 120
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Check out repository
|
- name: Check out repository
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Install build dependencies
|
- name: Install build tools
|
||||||
run: |
|
run: |
|
||||||
sudo apt-get update
|
sudo apt-get update
|
||||||
sudo DEBIAN_FRONTEND=noninteractive apt-get install -y \
|
sudo DEBIAN_FRONTEND=noninteractive apt-get install -y \
|
||||||
|
|
@ -39,28 +40,41 @@ jobs:
|
||||||
libtool \
|
libtool \
|
||||||
pkg-config \
|
pkg-config \
|
||||||
python3 \
|
python3 \
|
||||||
python3-pip \
|
|
||||||
git \
|
git \
|
||||||
curl \
|
curl \
|
||||||
ca-certificates \
|
ca-certificates
|
||||||
libevent-dev \
|
|
||||||
libboost-system-dev \
|
- name: Cache depends
|
||||||
libboost-filesystem-dev \
|
uses: actions/cache@v4
|
||||||
libboost-test-dev \
|
with:
|
||||||
libboost-thread-dev \
|
path: |
|
||||||
libsqlite3-dev \
|
depends/built
|
||||||
libzmq3-dev
|
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
|
- name: Generate configure script
|
||||||
run: ./autogen.sh
|
run: ./autogen.sh
|
||||||
|
|
||||||
- name: Configure
|
- name: Configure
|
||||||
run: |
|
run: |
|
||||||
|
CONFIG_SITE="$PWD/depends/${HOST}/share/config.site" \
|
||||||
./configure \
|
./configure \
|
||||||
--without-gui \
|
--without-gui \
|
||||||
--disable-bench \
|
--disable-bench
|
||||||
--with-incompatible-bdb \
|
|
||||||
--with-zmq
|
|
||||||
|
|
||||||
- name: Build
|
- name: Build
|
||||||
run: make -j2
|
run: make -j2
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue