11name : nix
22on :
33 pull_request :
4+ types : [opened, reopened, synchronize, ready_for_review]
45 push :
56 # If the branches list is ever changed, be sure to change it on all
67 # build/test jobs (nix, macos, windows)
@@ -39,6 +40,7 @@ concurrency:
3940
4041jobs :
4142 dependencies :
43+ if : ${{ github.event_name == 'push' || github.event.pull_request.draft != true || contains(github.event.pull_request.labels.*.name, 'DraftRunCI') }}
4244 strategy :
4345 fail-fast : false
4446 matrix :
6264 cc : /usr/bin/clang-14
6365 cxx : /usr/bin/clang++-14
6466 runs-on : [self-hosted, heavy]
65- container : rippleci /rippled-build-ubuntu:aaf5e3e
67+ container : ghcr.io/xrplf /rippled-build-ubuntu:aaf5e3e
6668 env :
6769 build_dir : .build
6870 steps :
@@ -124,7 +126,61 @@ jobs:
124126 - " -Dunity=ON"
125127 needs : dependencies
126128 runs-on : [self-hosted, heavy]
127- container : rippleci/rippled-build-ubuntu:aaf5e3e
129+ container : ghcr.io/xrplf/rippled-build-ubuntu:aaf5e3e
130+ env :
131+ build_dir : .build
132+ steps :
133+ - name : upgrade conan
134+ run : |
135+ pip install --upgrade "conan<2"
136+ - name : download cache
137+ uses : actions/download-artifact@v4
138+ with :
139+ name : ${{ matrix.platform }}-${{ matrix.compiler }}-${{ matrix.configuration }}
140+ - name : extract cache
141+ run : |
142+ mkdir -p ~/.conan
143+ tar -xzf conan.tar -C ~/.conan
144+ - name : check environment
145+ run : |
146+ env | sort
147+ echo ${PATH} | tr ':' '\n'
148+ conan --version
149+ cmake --version
150+ - name : checkout
151+ uses : actions/checkout@v4
152+ - name : dependencies
153+ uses : ./.github/actions/dependencies
154+ env :
155+ CONAN_URL : http://18.143.149.228:8081/artifactory/api/conan/conan-non-prod
156+ with :
157+ configuration : ${{ matrix.configuration }}
158+ - name : build
159+ uses : ./.github/actions/build
160+ with :
161+ generator : Ninja
162+ configuration : ${{ matrix.configuration }}
163+ cmake-args : " -Dassert=TRUE -Dwerr=TRUE ${{ matrix.cmake-args }}"
164+ - name : test
165+ run : |
166+ ${build_dir}/rippled --unittest --unittest-jobs $(nproc)
167+
168+ reference-fee-test :
169+ strategy :
170+ fail-fast : false
171+ matrix :
172+ platform :
173+ - linux
174+ compiler :
175+ - gcc
176+ configuration :
177+ - Debug
178+ cmake-args :
179+ - " -DUNIT_TEST_REFERENCE_FEE=200"
180+ - " -DUNIT_TEST_REFERENCE_FEE=1000"
181+ needs : dependencies
182+ runs-on : [self-hosted, heavy]
183+ container : ghcr.io/xrplf/rippled-build-ubuntu:aaf5e3e
128184 env :
129185 build_dir : .build
130186 steps :
@@ -175,7 +231,7 @@ jobs:
175231 - Debug
176232 needs : dependencies
177233 runs-on : [self-hosted, heavy]
178- container : rippleci /rippled-build-ubuntu:aaf5e3e
234+ container : ghcr.io/xrplf /rippled-build-ubuntu:aaf5e3e
179235 env :
180236 build_dir : .build
181237 steps :
@@ -191,7 +247,7 @@ jobs:
191247 mkdir -p ~/.conan
192248 tar -xzf conan.tar -C ~/.conan
193249 - name : install gcovr
194- run : pip install "gcovr>=7,<8 "
250+ run : pip install "gcovr>=7,<9 "
195251 - name : check environment
196252 run : |
197253 echo ${PATH} | tr ':' '\n'
@@ -249,7 +305,7 @@ jobs:
249305 conan :
250306 needs : dependencies
251307 runs-on : [self-hosted, heavy]
252- container : rippleci /rippled-build-ubuntu:aaf5e3e
308+ container : ghcr.io/xrplf /rippled-build-ubuntu:aaf5e3e
253309 env :
254310 build_dir : .build
255311 configuration : Release
@@ -288,7 +344,7 @@ jobs:
288344 echo "reference=${reference}" >> "${GITHUB_ENV}"
289345 - name : build
290346 run : |
291- cd examples/example
347+ cd tests/conan
292348 mkdir ${build_dir}
293349 cd ${build_dir}
294350 conan install .. --output-folder . \
@@ -304,6 +360,7 @@ jobs:
304360 # later
305361
306362 instrumentation-build :
363+ if : ${{ github.event_name == 'push' || github.event.pull_request.draft != true || contains(github.event.pull_request.labels.*.name, 'DraftRunCI') }}
307364 env :
308365 CLANG_RELEASE : 16
309366 strategy :
0 commit comments