-
Notifications
You must be signed in to change notification settings - Fork 2.3k
1293 lines (1231 loc) · 50.9 KB
/
Copy pathci.yml
File metadata and controls
1293 lines (1231 loc) · 50.9 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
# Retry wrapper: .github/actions/retry-action (wraps nick-fields/retry).
# Set retry_on to `timeout`, `error`, or `any` as needed.
name: Compile and Testrun
on:
workflow_dispatch:
pull_request:
paths-ignore:
- '**/*.md'
- 'doc/**'
- 'CHANGELOG'
- 'CONTRIBUTORS'
- 'LICENSE'
- 'NEWS'
push:
branches:
- main
- devel
- 'poco-*'
paths-ignore:
- '**/*.md'
- 'doc/**'
- 'CHANGELOG'
- 'CONTRIBUTORS'
- 'LICENSE'
- 'NEWS'
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
# Reusable cmake flag blocks. Data_ODBC/MYSQL/POSTGRESQL stay OFF here -- they
# need backends only the Data-env jobs set up.
env:
# Full functional set (Linux + macOS sanitizer matrix).
POCO_CMAKE_FULL_COMMON: >-
-DPOCO_MINIMAL_BUILD=ON -DENABLE_TESTS=ON
-DENABLE_XML=ON -DENABLE_JSON=ON -DENABLE_NET=ON -DENABLE_UTIL=ON
-DENABLE_CRYPTO=ON -DENABLE_NETSSL=ON -DENABLE_JWT=ON
-DENABLE_ENCODINGS=ON -DENABLE_PDF=ON
-DENABLE_ZIP=ON -DENABLE_SEVENZIP=ON
-DENABLE_REDIS=ON -DENABLE_MONGODB=ON -DENABLE_SSH=ON
-DENABLE_DATA=ON -DENABLE_DATA_SQLITE=ON
-DENABLE_PROMETHEUS=ON
-DENABLE_ACTIVERECORD=ON -DENABLE_ACTIVERECORD_COMPILER=ON
-DENABLE_CPPPARSER=ON
-DENABLE_PAGECOMPILER=ON -DENABLE_POCODOC=ON -DENABLE_PAGECOMPILER_FILE2PAGE=ON
POCO_CMAKE_FULL_LINUX_EXTRA: >-
-DENABLE_APACHECONNECTOR=ON
-DENABLE_DNSSD=ON -DENABLE_DNSSD_DEFAULT=ON
POCO_CMAKE_FOUNDATION_ONLY: >-
-DPOCO_MINIMAL_BUILD=ON -DENABLE_TESTS=ON
POCO_CMAKE_FOUNDATION_UTIL: >-
-DPOCO_MINIMAL_BUILD=ON -DENABLE_UTIL=ON -DENABLE_JSON=ON -DENABLE_XML=ON -DENABLE_TESTS=ON
# Windows x64 primary signal: OpenSSL-backed Crypto/NetSSL/JWT + SChannel
# (NETSSL_WIN) + Data/ODBC + TRACE + PDF/Prometheus/ActiveRecord/CppParser.
POCO_CMAKE_WINDOWS_FULL: >-
-DPOCO_MINIMAL_BUILD=ON -DENABLE_TESTS=ON -DENABLE_TRACE=ON
-DENABLE_XML=ON -DENABLE_JSON=ON -DENABLE_NET=ON -DENABLE_UTIL=ON
-DENABLE_CRYPTO=ON -DENABLE_NETSSL=ON -DENABLE_NETSSL_WIN=ON -DENABLE_JWT=ON
-DENABLE_DATA=ON -DENABLE_DATA_SQLITE=ON -DENABLE_DATA_ODBC=ON
-DENABLE_ZIP=ON -DENABLE_ENCODINGS=ON -DENABLE_SSH=ON
-DENABLE_PDF=ON -DENABLE_PROMETHEUS=ON
-DENABLE_ACTIVERECORD=ON -DENABLE_ACTIVERECORD_COMPILER=ON
-DENABLE_CPPPARSER=ON
# Windows reduced scope (static, Win32, clang-cl): SChannel only, no OpenSSL.
POCO_CMAKE_WINDOWS_MINIMAL: >-
-DPOCO_MINIMAL_BUILD=ON -DENABLE_TESTS=ON
-DENABLE_XML=ON -DENABLE_JSON=ON -DENABLE_NET=ON -DENABLE_UTIL=ON
-DENABLE_NETSSL_WIN=ON
-DENABLE_DATA=ON -DENABLE_DATA_SQLITE=ON -DENABLE_DATA_ODBC=ON
POCO_CMAKE_WARNINGS_EXTRA: >-
-DENABLE_COMPILER_WARNINGS=ON
-DENABLE_ENCODINGS_COMPILER=ON
-DENABLE_DATA_ODBC=ON
POCO_WIN_CPPUNIT_IGNORE: >-
class CppUnit::TestCaller<class PathTest>.testFind,
class CppUnit::TestCaller<class ICMPSocketTest>.testSendToReceiveFrom,
class CppUnit::TestCaller<class ICMPClientTest>.testPing,
class CppUnit::TestCaller<class ICMPClientTest>.testBigPing,
class CppUnit::TestCaller<class ICMPSocketTest>.testMTU,
class CppUnit::TestCaller<class HTTPSClientSessionTest>.testProxy,
class CppUnit::TestCaller<class HTTPSStreamFactoryTest>.testProxy,
class CppUnit::TestCaller<class FileTest>.testExists,
class CppUnit::TestCaller<class ProcessRunnerTest>.testProcessRunner
# Shared ctest options: dump failing output, fail on zero-match filter, JUnit report.
POCO_CTEST_COMMON: "--output-on-failure --no-tests=error --output-junit test-report.xml"
# Sanitizer extra: lift the 300KB output cap so long stack traces survive.
POCO_CTEST_SANITIZER_EXTRA: "--test-output-size-failed 0 --test-output-truncation tail"
jobs:
# Change detection. Narrow-scope jobs gate on
# `<output> || ci_core || push`; primary sanitizer jobs always run.
changes:
runs-on: ubuntu-24.04
outputs:
ci_core: ${{ steps.filter.outputs.ci_core }}
foundation: ${{ steps.filter.outputs.foundation }}
foundation_util: ${{ steps.filter.outputs.foundation_util }}
arm_cross: ${{ steps.filter.outputs.arm_cross }}
data: ${{ steps.filter.outputs.data }}
sqlparser: ${{ steps.filter.outputs.sqlparser }}
steps:
- uses: actions/checkout@v5
- uses: dorny/paths-filter@v4
id: filter
with:
filters: .github/path-filters.yml
# data-build runs without `needs: changes` to land in the first scheduling
# batch; it paths-filters inline and exposes `run` for data-test-* gating.
data-build:
runs-on: ubuntu-24.04
outputs:
run: ${{ steps.decide.outputs.run }}
steps:
- uses: actions/checkout@v5
- uses: dorny/paths-filter@v4
id: filter
with:
filters: .github/path-filters.yml
- id: decide
run: echo "run=${{ steps.filter.outputs.data == 'true' || steps.filter.outputs.ci_core == 'true' || github.event_name == 'push' || github.event_name == 'workflow_dispatch' }}" >> $GITHUB_OUTPUT
- name: Install build dependencies
if: steps.decide.outputs.run == 'true'
run: |
sudo apt -y update
sudo apt -y install libssl-dev unixodbc-dev libmysqlclient-dev
- name: Configure
if: steps.decide.outputs.run == 'true'
run: >-
cmake -S. -Bcmake-build -GNinja -DCMAKE_INTERPROCEDURAL_OPTIMIZATION=ON
${{ env.POCO_CMAKE_FOUNDATION_ONLY }}
-DENABLE_DATA=ON -DENABLE_DATA_SQLITE=ON
-DENABLE_DATA_MYSQL=ON -DENABLE_DATA_POSTGRESQL=ON -DENABLE_DATA_ODBC=ON
-DENABLE_REDIS=ON -DENABLE_MONGODB=ON
- name: Build test runners
if: steps.decide.outputs.run == 'true'
run: >-
cmake --build cmake-build --parallel $(nproc) --target
DataMySQL-testrunner DataPostgreSQL-testrunner DataODBC-testrunner
Redis-testrunner MongoDB-testrunner
- name: Upload build artifacts
if: steps.decide.outputs.run == 'true'
uses: actions/upload-artifact@v7
with:
name: data-build-artifacts
path: |
cmake-build/bin
cmake-build/lib
retention-days: 1
if-no-files-found: error
# ------------------------------------------------------------------------
# Linux x64
# ------------------------------------------------------------------------
# Primary Linux signal: 3 non-hidden sanitizers + 1 hidden+asan. TRACE on.
linux-gcc-cmake-sanitizers:
runs-on: ubuntu-24.04
strategy:
fail-fast: false
matrix:
include:
- name: asan
visibility: default
sanitize_flags: "-fsanitize=address"
- name: ubsan
visibility: default
sanitize_flags: "-fsanitize=undefined;-fno-sanitize=vptr"
- name: tsan
visibility: default
sanitize_flags: "-fsanitize=thread"
- name: hidden-asan
visibility: hidden
sanitize_flags: "-fsanitize=address"
env:
TSAN_OPTIONS: ${{ matrix.name == 'tsan' && format('suppressions={0}/tsan.suppress,second_deadlock_stack=1', github.workspace) || '' }}
ASAN_OPTIONS: ${{ matrix.name == 'hidden-asan' && 'detect_odr_violation=2' || '' }}
steps:
- uses: actions/checkout@v5
- run: sysctl vm.legacy_va_layout
- run: sysctl kernel.randomize_va_space
- run: sudo sysctl vm.mmap_rnd_bits
- run: sudo sysctl -w vm.mmap_rnd_bits=28
- run: >-
sudo apt -y update && sudo apt -y install libssl-dev libssh-dev libltdl-dev apache2-dev libapr1-dev libaprutil1-dev libavahi-client-dev
libsqlite3-dev redis-server
- uses: supercharge/mongodb-github-action@1.12.1
- run: >-
cmake -S. -Bcmake-build -GNinja
${{ matrix.visibility == 'hidden' && '-DCMAKE_CXX_VISIBILITY_PRESET=hidden' || '' }}
-DPOCO_SANITIZEFLAGS="${{ matrix.sanitize_flags }}"
-DENABLE_TRACE=ON
${{ env.POCO_CMAKE_FULL_COMMON }}
${{ env.POCO_CMAKE_FULL_LINUX_EXTRA }}
- run: cmake --build cmake-build --target all --parallel $(nproc)
- uses: ./.github/actions/retry-action
with:
timeout_minutes: 90
max_attempts: 3
retry_on: any
command: >-
cd cmake-build &&
PWD=`pwd`
ctest ${{ env.POCO_CTEST_COMMON }} ${{ env.POCO_CTEST_SANITIZER_EXTRA }} --parallel $(nproc)
- uses: ./.github/actions/upload-test-report
with:
suffix: ${{ matrix.name }}
# Linux deprecated-API probe: runs only the deprecated-API test suites.
linux-gcc-cmake-deprecated-tests:
runs-on: ubuntu-24.04
needs: changes
if: |
needs.changes.outputs.foundation_util == 'true' ||
needs.changes.outputs.ci_core == 'true' ||
github.event_name == 'push' || github.event_name == 'workflow_dispatch'
steps:
- uses: actions/checkout@v5
- run: sudo apt -y update && sudo apt -y install cmake ninja-build libssl-dev
- run: >-
cmake -S. -Bcmake-build -GNinja -DCMAKE_INTERPROCEDURAL_OPTIMIZATION=ON
-DENABLE_PDF=OFF -DENABLE_TESTS=ON -DENABLE_TEST_DEPRECATED=ON
- run: cmake --build cmake-build --target all --parallel $(nproc)
- uses: ./.github/actions/retry-action
with:
timeout_minutes: 90
max_attempts: 3
retry_on: any
command: >-
cd cmake-build &&
PWD=`pwd`
ctest ${{ env.POCO_CTEST_COMMON }} --parallel $(nproc) -R "^(Foundation|Net|Crypto|Util|XML|JSON|Data|DataSQLite)$"
- uses: ./.github/actions/upload-test-report
# POCO_SOO=OFF probe: Foundation only.
linux-gcc-cmake-poco-soo-off:
runs-on: ubuntu-24.04
needs: changes
if: |
needs.changes.outputs.foundation == 'true' ||
needs.changes.outputs.ci_core == 'true' ||
github.event_name == 'push' || github.event_name == 'workflow_dispatch'
steps:
- uses: actions/checkout@v5
- run: sudo apt -y update && sudo apt -y install cmake ninja-build libssl-dev
- run: >-
cmake -S. -Bcmake-build -GNinja -DCMAKE_INTERPROCEDURAL_OPTIMIZATION=ON
${{ env.POCO_CMAKE_FOUNDATION_ONLY }} -DPOCO_SOO=OFF
- run: cmake --build cmake-build --target Foundation-testrunner --parallel $(nproc)
- name: Run Foundation tests
run: >-
cd cmake-build &&
PWD=`pwd`
ctest ${{ env.POCO_CTEST_COMMON }} --parallel $(nproc) -R "^Foundation$"
- uses: ./.github/actions/upload-test-report
# FASTLOGGER=OFF probe: Foundation + Util.
linux-gcc-cmake-no-fastlogger:
runs-on: ubuntu-24.04
needs: changes
if: |
needs.changes.outputs.foundation_util == 'true' ||
needs.changes.outputs.ci_core == 'true' ||
github.event_name == 'push' || github.event_name == 'workflow_dispatch'
steps:
- uses: actions/checkout@v5
- run: sudo apt -y update && sudo apt -y install cmake ninja-build
- run: >-
cmake -S. -Bcmake-build -GNinja -DCMAKE_INTERPROCEDURAL_OPTIMIZATION=ON
-DENABLE_FASTLOGGER=OFF
${{ env.POCO_CMAKE_FOUNDATION_UTIL }}
- run: cmake --build cmake-build --target all --parallel $(nproc)
- uses: ./.github/actions/retry-action
with:
timeout_minutes: 90
max_attempts: 3
retry_on: any
command: >-
cd cmake-build &&
PWD=`pwd`
ctest ${{ env.POCO_CTEST_COMMON }} --parallel $(nproc) -R "^(Foundation|Util)$"
- uses: ./.github/actions/upload-test-report
# Linkage + unbundled probe: full static build against system third-party
# libs; tests Foundation/Util plus XML/expat, JSON/pdjson, Zip/zlib.
linux-gcc-cmake-unbundled-static:
runs-on: ubuntu-24.04
needs: changes
if: |
needs.changes.outputs.foundation_util == 'true' ||
needs.changes.outputs.ci_core == 'true' ||
github.event_name == 'push' || github.event_name == 'workflow_dispatch'
steps:
- uses: actions/checkout@v5
- run: >-
sudo apt -y update && sudo apt -y install cmake ninja-build libssl-dev libsqlite3-dev unixodbc-dev
libmysqlclient-dev redis-server libexpat1-dev zlib1g-dev libpcre3-dev libutf8proc-dev libpng-dev
- run: >-
cmake -S. -Bcmake-build -GNinja -DCMAKE_INTERPROCEDURAL_OPTIMIZATION=ON
-DENABLE_TESTS=ON -DPOCO_UNBUNDLED=ON -DBUILD_SHARED_LIBS=OFF
-DENABLE_DATA_MYSQL=ON -DENABLE_PDF=ON -DENABLE_XML=ON
- run: cmake --build cmake-build --target all --parallel $(nproc)
- uses: ./.github/actions/retry-action
with:
timeout_minutes: 90
max_attempts: 3
retry_on: any
command: >-
cd cmake-build &&
PWD=`pwd`
ctest ${{ env.POCO_CTEST_COMMON }} --parallel $(nproc) -R "^(Foundation|Util|XML|JSON|Zip)$"
- uses: ./.github/actions/upload-test-report
# Clang toolchain exception + C++ modules probe: Foundation + Util smoke.
linux-clang-21-cmake-modules:
runs-on: ubuntu-24.04
needs: changes
if: |
needs.changes.outputs.foundation_util == 'true' ||
needs.changes.outputs.ci_core == 'true' ||
github.event_name == 'push' || github.event_name == 'workflow_dispatch'
steps:
- uses: actions/checkout@v5
- name: Install Clang 21
run: |
sudo apt -y update
sudo apt -y install wget lsb-release software-properties-common gnupg
wget https://apt.llvm.org/llvm.sh
chmod +x llvm.sh
sudo ./llvm.sh 21
sudo apt -y install clang-21 libc++-21-dev libc++abi-21-dev
sudo update-alternatives --install /usr/bin/clang clang /usr/bin/clang-21 100
sudo update-alternatives --install /usr/bin/clang++ clang++ /usr/bin/clang++-21 100
- name: Install dependencies
run: sudo apt -y install cmake ninja-build
- name: Configure with Clang 21 and modules
run: |
export CC=clang-21
export CXX=clang++-21
cmake -S . -B build -G Ninja -DCMAKE_INTERPROCEDURAL_OPTIMIZATION=ON -DENABLE_MODULES=ON -DENABLE_TESTS=ON
- name: Build
run: cmake --build build --parallel $(nproc)
- uses: ./.github/actions/retry-action
with:
timeout_minutes: 90
max_attempts: 3
retry_on: any
command: >-
cd build &&
ctest ${{ env.POCO_CTEST_COMMON }} --parallel $(nproc) -R "^(Foundation|Util)$"
- uses: ./.github/actions/upload-test-report
with:
build-dir: build
# Classic GNU make build. Not officially supported anymore, but kept as a
# sanity check so the legacy ./configure + make path keeps compiling. All
# standard components are built (--everything); tests are compiled but not
# run (cmake jobs above already cover the test signal). Samples are skipped.
# Uses the Linux-c++20 config to match the cmake default (C++20 since 1.15.0);
# the codebase has moved past C++17 in places (e.g. std::ranges).
# Always run: the ci_core path filter does not cover the make build system
# (build/**, configure, component Makefiles), so gating on it would skip this
# sanity check on the very PRs that change the legacy make path.
linux-gcc-make-build:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v5
- run: >-
sudo apt -y update &&
sudo apt -y install libssl-dev unixodbc-dev libltdl-dev libmysqlclient-dev libpq-dev
- name: Configure (classic make, C++20)
run: ./configure --config=Linux-c++20 --everything --no-samples
- name: Build libraries and testsuites
run: make -s -j$(nproc)
# ------------------------------------------------------------------------
# Linux cross-compile and other arch build-only probes
# ------------------------------------------------------------------------
android-ndk-cmake:
runs-on: ubuntu-24.04
strategy:
matrix:
include:
- abi: arm64-v8a
- abi: armeabi-v7a
steps:
- uses: actions/checkout@v5
- uses: nttld/setup-ndk@v1.6.0
with:
ndk-version: r27d
add-to-path: true
- run: |
cmake -S$GITHUB_WORKSPACE -B$HOME/android-build -DANDROID_ABI=${{ matrix.abi }} -DANDROID_PLATFORM=android-21 -DCMAKE_TOOLCHAIN_FILE=$ANDROID_NDK_HOME/build/cmake/android.toolchain.cmake
cmake --build $HOME/android-build --target all --parallel $(nproc)
# ARM cross-compile: two codegen flag sets (generic armv7-a NEON VFPv4 and
# older Cortex-A8 NEON) catch regressions specific to one.
linux-gcc-cmake-armv7l:
runs-on: ubuntu-24.04
needs: changes
if: |
needs.changes.outputs.arm_cross == 'true' ||
needs.changes.outputs.ci_core == 'true' ||
github.event_name == 'push' || github.event_name == 'workflow_dispatch'
strategy:
fail-fast: false
matrix:
include:
- name: armv7l-neon-vfpv4
cflags: "-march=armv7-a -mfloat-abi=hard -mfpu=neon-vfpv4"
- name: cortex-a8-neon
cflags: "-mcpu=cortex-a8 -mfpu=neon"
name: linux-gcc-cmake-armv7l (${{ matrix.name }})
env:
CC : "arm-linux-gnueabihf-gcc"
CXX : "arm-linux-gnueabihf-g++"
CFLAGS: ${{ matrix.cflags }}
CXXFLAGS: ${{ matrix.cflags }}
steps:
- uses: actions/checkout@v5
- run: sudo apt -y update && sudo apt -y install g++-arm-linux-gnueabihf
- run: sudo apt -y update && sudo apt -y install cmake ninja-build
- run: >-
cmake -S. -Bcmake-build -GNinja -DENABLE_TESTS=ON -DPOCO_MINIMAL_BUILD=TRUE
-DENABLE_NET=ON -DENABLE_JSON=ON -DENABLE_XML=ON -DENABLE_ZIP=ON
- run: cmake --build cmake-build --target all --parallel $(nproc)
linux-emscripten-cmake:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v5
- run: sudo apt -y update && sudo apt -y install cmake ninja-build emscripten
# CMAKE_POLICY_VERSION_MINIMUM=3.5: emscripten's CheckTypeSize.cmake
# needs a pre-3.5 policy that CMake 4 removed.
- run: >-
emcmake cmake -H. -B cmake-build -DCMAKE_POLICY_VERSION_MINIMUM=3.5 -DENABLE_ACTIVERECORD_COMPILER=OFF
-DENABLE_PAGECOMPILER=OFF -DENABLE_PAGECOMPILER_FILE2PAGE=off
- run: emmake cmake --build cmake-build --target all --parallel $(nproc)
# ------------------------------------------------------------------------
# macOS arm64 (macos-latest)
# ------------------------------------------------------------------------
# Primary macos-arm64 signal: 3 non-hidden sanitizers + 1 hidden+asan. TRACE on.
macos-clang-cmake-sanitizers:
runs-on: macos-latest
strategy:
fail-fast: false
matrix:
include:
- name: asan
visibility: default
sanitize_flags: "-fsanitize=address"
# dyld4 registers ASan globals twice for dlopen'd libs -> spurious
# ODR violation on TestPlugin vtable. Suppress.
asan_options: detect_odr_violation=0
- name: ubsan
visibility: default
sanitize_flags: "-fsanitize=undefined;-fno-sanitize=vptr"
- name: tsan
visibility: default
sanitize_flags: "-fsanitize=thread"
- name: hidden-asan
visibility: hidden
sanitize_flags: "-fsanitize=address"
asan_options: detect_odr_violation=0
env:
TSAN_OPTIONS: ${{ matrix.name == 'tsan' && format('suppressions={0}/tsan.suppress,second_deadlock_stack=1', github.workspace) || '' }}
ASAN_OPTIONS: ${{ matrix.asan_options }}
steps:
- uses: actions/checkout@v5
- name: Install OpenSSL, libssh, Redis, MongoDB
run: |
brew install openssl@3 libssh redis
brew tap mongodb/brew
brew trust mongodb/brew
brew install mongodb-community
- name: Start Redis and MongoDB
run: |
brew services start redis
brew services start mongodb-community
- run: >-
cmake -S. -Bcmake-build
${{ matrix.visibility == 'hidden' && '-DCMAKE_CXX_VISIBILITY_PRESET=hidden' || '' }}
-DPOCO_SANITIZEFLAGS="${{ matrix.sanitize_flags }}"
-DENABLE_TRACE=ON
${{ env.POCO_CMAKE_FULL_COMMON }}
-DOPENSSL_ROOT_DIR=$(brew --prefix openssl@3)
- run: cmake --build cmake-build --target all --parallel $(sysctl -n hw.ncpu)
- uses: ./.github/actions/retry-action
with:
timeout_minutes: 90
max_attempts: 3
retry_on: any
command: >-
cd cmake-build &&
sudo -s
ASAN_OPTIONS=${ASAN_OPTIONS}
TSAN_OPTIONS=${TSAN_OPTIONS}
PWD=`pwd`
ctest ${{ env.POCO_CTEST_COMMON }} ${{ env.POCO_CTEST_SANITIZER_EXTRA }} --parallel $(sysctl -n hw.ncpu) ${{ matrix.ctest_exclude && format('-E "{0}"', matrix.ctest_exclude) || '' }}
- uses: ./.github/actions/upload-test-report
with:
suffix: ${{ matrix.name }}
# POCO_SOO=OFF probe on macos-arm64: Foundation only.
macos-clang-cmake-poco-soo-off:
runs-on: macos-latest
needs: changes
if: |
needs.changes.outputs.foundation == 'true' ||
needs.changes.outputs.ci_core == 'true' ||
github.event_name == 'push' || github.event_name == 'workflow_dispatch'
steps:
- uses: actions/checkout@v5
- run: >-
cmake -S. -Bcmake-build -DCMAKE_INTERPROCEDURAL_OPTIMIZATION=ON
${{ env.POCO_CMAKE_FOUNDATION_ONLY }} -DPOCO_SOO=OFF
- run: cmake --build cmake-build --target Foundation-testrunner --parallel $(sysctl -n hw.ncpu)
- name: Run Foundation tests
run: >-
cd cmake-build &&
PWD=`pwd`
ctest ${{ env.POCO_CTEST_COMMON }} --parallel $(sysctl -n hw.ncpu) -R "^Foundation$"
- uses: ./.github/actions/upload-test-report
# Newer non-Apple compiler probe (brew clang-21). Scope: Foundation + Util
# + Crypto (exercises the OpenSSL link path implied by the -openssl3 name).
macos-clang-21-cmake-openssl3:
runs-on: macos-latest
steps:
- uses: actions/checkout@v5
- run: brew install llvm@21 openssl@3
- run: >-
CXX=$(brew --prefix llvm@21)/bin/clang++ CC=$(brew --prefix llvm@21)/bin/clang
cmake -S. -Bcmake-build -DCMAKE_INTERPROCEDURAL_OPTIMIZATION=ON
${{ env.POCO_CMAKE_FOUNDATION_UTIL }}
-DENABLE_CRYPTO=ON
-DOPENSSL_ROOT_DIR=$(brew --prefix openssl@3)
- run: >-
cmake --build cmake-build --parallel $(sysctl -n hw.ncpu) --target
Foundation Util Crypto Foundation-testrunner Util-testrunner Crypto-testrunner
- uses: ./.github/actions/retry-action
with:
timeout_minutes: 90
max_attempts: 3
retry_on: any
command: >-
cd cmake-build &&
PWD=`pwd`
ctest ${{ env.POCO_CTEST_COMMON }} --parallel $(sysctl -n hw.ncpu) -R "^(Foundation|Util|Crypto)$"
- uses: ./.github/actions/upload-test-report
# Build-only: compile-warnings-as-signal across as many modules as possible.
macos-clang-cmake-warnings:
runs-on: macos-latest
steps:
- uses: actions/checkout@v5
- run: brew install openssl@3 mysql-client unixodbc libpq
- run: >-
cmake -S. -Bcmake-build
${{ env.POCO_CMAKE_FULL_COMMON }}
${{ env.POCO_CMAKE_WARNINGS_EXTRA }}
-DENABLE_DATA_POSTGRESQL=ON -DENABLE_DATA_MYSQL=ON
-DOPENSSL_ROOT_DIR=$(brew --prefix openssl@3)
-DMYSQL_ROOT_DIR=$(brew --prefix mysql-client)
-DPostgreSQL_ROOT=$(brew --prefix libpq)
- run: cmake --build cmake-build --target all --parallel $(sysctl -n hw.ncpu)
# ------------------------------------------------------------------------
# macOS x64 (macos-15-intel) -- de-prioritized, sanitizer-only
# ------------------------------------------------------------------------
macos-x64-clang-cmake-sanitizers:
runs-on: macos-15-intel
strategy:
fail-fast: false
matrix:
include:
- name: asan
sanitize_flags: "-fsanitize=address"
- name: ubsan
sanitize_flags: "-fsanitize=undefined;-fno-sanitize=vptr"
- name: tsan
sanitize_flags: "-fsanitize=thread"
env:
TSAN_OPTIONS: ${{ matrix.name == 'tsan' && format('suppressions={0}/tsan.suppress,second_deadlock_stack=1', github.workspace) || '' }}
steps:
- uses: actions/checkout@v5
- name: Install OpenSSL, libssh, Redis, MongoDB
run: |
brew install openssl@3 libssh redis
brew tap mongodb/brew
brew trust mongodb/brew
brew install mongodb-community
- name: Start Redis and MongoDB
run: |
brew services start redis
brew services start mongodb-community
- run: >-
cmake -S. -Bcmake-build
-DPOCO_SANITIZEFLAGS="${{ matrix.sanitize_flags }}"
-DENABLE_TRACE=ON
${{ env.POCO_CMAKE_FULL_COMMON }}
-DOPENSSL_ROOT_DIR=$(brew --prefix openssl@3)
- run: cmake --build cmake-build --target all --parallel $(sysctl -n hw.ncpu)
- uses: ./.github/actions/retry-action
with:
timeout_minutes: 90
max_attempts: 3
retry_on: any
command: >-
cd cmake-build &&
sudo -s
TSAN_OPTIONS=${TSAN_OPTIONS}
PWD=`pwd`
ctest ${{ env.POCO_CTEST_COMMON }} ${{ env.POCO_CTEST_SANITIZER_EXTRA }} --parallel $(sysctl -n hw.ncpu)
- uses: ./.github/actions/upload-test-report
with:
suffix: ${{ matrix.name }}
# ------------------------------------------------------------------------
# Windows
# ------------------------------------------------------------------------
# Primary Windows signal: msvc x64 shared, OpenSSL Crypto/NetSSL/JWT +
# SChannel (NETSSL_WIN), TRACE on, LTO on. Full non-env test scope.
windows-2025-msvc-cmake:
runs-on: windows-2025
steps:
- uses: actions/checkout@v5
- uses: TheMrMilchmann/setup-msvc-dev@v4
with:
arch: x64
- name: Cache vcpkg binary archives and downloads
# Two disjoint caches rolled into one step:
# 1. %LOCALAPPDATA%\vcpkg\archives -- file-based binary cache of built
# ports, keyed by ABI hash. Reused across runs; invalidates when a
# port's ABI changes (new version, new patch, new transitive dep).
# 2. C:\vcpkg\downloads -- source tarballs (openssl, libssh, ...) and
# tool installs (cmake, ninja, perl, powershell-core). vcpkg re-
# downloads these on every cache miss in (1); persisting them
# avoids the ~30-60s cmake/powershell/perl zip download each run.
# Key rotates on run_id so each run writes a fresh entry; restore-keys
# picks the most recent prefix match. GHA LRU handles eviction.
uses: actions/cache@v5
with:
path: |
~\AppData\Local\vcpkg\archives
C:\vcpkg\downloads
key: vcpkg-${{ runner.os }}-${{ github.run_id }}
restore-keys: |
vcpkg-${{ runner.os }}-
- name: Uninstall pre-existing OpenSSL / libssh
shell: pwsh
# Runner images carry preinstalled OpenSSL/OpenSSH and cached vcpkg
# ports. Scrub all three so only our vcpkg install remains. vcpkg is
# the single source of OpenSSL (pulled in as a transitive dep of
# libssh), matching the rule: no second OpenSSL in CI.
run: |
$ProgressPreference = 'SilentlyContinue'
vcpkg --vcpkg-root="$env:VCPKG_INSTALLATION_ROOT" remove libssh:x64-windows openssl:x64-windows --recurse 2>&1 | Out-Host
$drop = @(
'C:\Program Files\OpenSSL\bin',
'C:\Program Files\OpenSSL-Win64\bin',
'C:\OpenSSL-Win64\bin',
'C:\Windows\System32\OpenSSH'
)
$clean = ($env:PATH -split ';' | Where-Object {
$p = $_.TrimEnd('\'); $drop -notcontains $p
}) -join ';'
"PATH=$clean" | Out-File -FilePath $env:GITHUB_ENV -Append
foreach ($d in 'C:\OpenSSL-Win64','C:\Program Files\OpenSSL','C:\Program Files\OpenSSL-Win64') {
if (Test-Path $d) { Remove-Item -Recurse -Force -ErrorAction SilentlyContinue $d }
}
- name: Install OpenSSL + libssh (vcpkg)
shell: pwsh
# libssh drags in openssl as a transitive dep -- we deliberately use
# that single copy for the whole build. Explicit Test-Path assertions
# fail fast on missing files.
run: |
$ProgressPreference = 'SilentlyContinue'
vcpkg --vcpkg-root="$env:VCPKG_INSTALLATION_ROOT" install libssh:x64-windows
if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE }
$root = "$env:VCPKG_INSTALLATION_ROOT\installed\x64-windows"
# Fixed paths -- no recursive globbing. vcpkg's x64-windows triplet
# places runtime DLLs flat under $root\bin\, including OpenSSL
# provider modules (legacy.dll, default.dll). If this ever diverges,
# we want a hard fail, not a silent pick of a wrong copy.
$providerDir = "$root\bin"
$required = @(
"$root\bin\libcrypto-3-x64.dll",
"$root\bin\libssl-3-x64.dll",
"$root\bin\ssh.dll",
"$root\lib\libcrypto.lib",
"$root\lib\libssl.lib",
"$root\lib\ssh.lib",
"$root\include\openssl\ssl.h",
"$root\include\libssh\libssh.h",
"$providerDir\legacy.dll"
)
foreach ($p in $required) {
if (-not (Test-Path $p)) { Write-Error "Missing: $p"; exit 1 }
}
"OPENSSL_ROOT_DIR=$root" | Out-File -FilePath $env:GITHUB_ENV -Append
"LIBSSH_ROOT_DIR=$root" | Out-File -FilePath $env:GITHUB_ENV -Append
"OPENSSL_MODULES=$providerDir" | Out-File -FilePath $env:GITHUB_ENV -Append
Add-Content $env:GITHUB_PATH "$root\bin"
Write-Host "OPENSSL_ROOT_DIR=$root"
Write-Host "LIBSSH_ROOT_DIR=$root"
Write-Host "OPENSSL_MODULES=$providerDir"
- name: Verify OpenSSL / libssh DLL resolution
shell: pwsh
# Prove the loader will pick DLLs from the vcpkg tree, not from
# residue elsewhere on the runner. Fails the job on any mismatch.
run: |
foreach ($dll in 'libcrypto-3-x64.dll','libssl-3-x64.dll','ssh.dll','legacy.dll') {
$cmd = Get-Command $dll -ErrorAction SilentlyContinue
if ($null -eq $cmd) { Write-Error "$dll not resolvable on PATH"; exit 1 }
$resolved = [System.IO.Path]::GetFullPath($cmd.Source)
$expected = [System.IO.Path]::GetFullPath("$env:LIBSSH_ROOT_DIR\bin\$dll")
Write-Host "$dll -> $resolved"
if ($resolved -ne $expected) {
Write-Error "$dll resolves to $resolved, expected $expected"
exit 1
}
}
- run: >-
cmake -S. -Bcmake-build -G Ninja -DCMAKE_BUILD_TYPE=Release
-DCMAKE_INTERPROCEDURAL_OPTIMIZATION=ON
${{ env.POCO_CMAKE_WINDOWS_FULL }}
-DOPENSSL_ROOT_DIR="${{ env.OPENSSL_ROOT_DIR }}"
-DCMAKE_PREFIX_PATH="${{ env.LIBSSH_ROOT_DIR }}"
- run: cmake --build cmake-build --parallel $env:NUMBER_OF_PROCESSORS
- uses: ./.github/actions/retry-action
env:
CPPUNIT_IGNORE: ${{ env.POCO_WIN_CPPUNIT_IGNORE }}
with:
timeout_minutes: 90
max_attempts: 3
retry_on: any
command: >-
cd cmake-build;
ctest ${{ env.POCO_CTEST_COMMON }} --parallel $env:NUMBER_OF_PROCESSORS -E "(DataMySQL)|(DataODBC)|(Redis)|(MongoDB)"
- uses: ./.github/actions/upload-test-report
- name: Uninstall OpenSSL / libssh
if: always()
shell: pwsh
run: |
vcpkg --vcpkg-root="$env:VCPKG_INSTALLATION_ROOT" remove libssh:x64-windows openssl:x64-windows --recurse 2>&1 | Out-Host
# clang-cl toolchain exception: reduced scope (Foundation + Util smoke).
windows-2025-clang-cmake:
runs-on: windows-2025
steps:
- uses: actions/checkout@v5
- uses: TheMrMilchmann/setup-msvc-dev@v4
with:
arch: x64
- run: >-
cmake -S. -Bcmake-build -G Ninja
-DCMAKE_C_COMPILER=clang-cl -DCMAKE_CXX_COMPILER=clang-cl
-DCMAKE_BUILD_TYPE=Release
-DCMAKE_INTERPROCEDURAL_OPTIMIZATION=ON
${{ env.POCO_CMAKE_WINDOWS_MINIMAL }}
- run: cmake --build cmake-build --parallel $env:NUMBER_OF_PROCESSORS
- uses: ./.github/actions/retry-action
env:
CPPUNIT_IGNORE: ${{ env.POCO_WIN_CPPUNIT_IGNORE }}
with:
timeout_minutes: 90
max_attempts: 3
retry_on: any
command: >-
cd cmake-build;
ctest ${{ env.POCO_CTEST_COMMON }} --parallel $env:NUMBER_OF_PROCESSORS -R "^(Foundation|Util)$"
- uses: ./.github/actions/upload-test-report
# 32-bit Win32: minimal scope (Foundation + Util) like static/static+MT.
windows-2025-msvc-cmake-Win32:
runs-on: windows-2025
steps:
- uses: actions/checkout@v5
- uses: TheMrMilchmann/setup-msvc-dev@v4
with:
arch: x86
- run: >-
cmake -S. -Bcmake-build -G Ninja -DCMAKE_BUILD_TYPE=Release
-DCMAKE_INTERPROCEDURAL_OPTIMIZATION=ON
${{ env.POCO_CMAKE_WINDOWS_MINIMAL }}
- run: cmake --build cmake-build --parallel $env:NUMBER_OF_PROCESSORS
- uses: ./.github/actions/retry-action
# Win32 appends one extra exclusion (SharedMemoryTest.testCreateLarge).
env:
CPPUNIT_IGNORE: ${{ format('{0},class CppUnit::TestCaller<class SharedMemoryTest>.testCreateLarge', env.POCO_WIN_CPPUNIT_IGNORE) }}
with:
timeout_minutes: 90
max_attempts: 3
retry_on: any
command: >-
cd cmake-build;
ctest ${{ env.POCO_CTEST_COMMON }} --parallel $env:NUMBER_OF_PROCESSORS -R "^(Foundation|Util)$"
- uses: ./.github/actions/upload-test-report
# Static linkage probes on Windows x64: minimal scope (Foundation + Util).
windows-2025-msvc-cmake-static:
runs-on: windows-2025
strategy:
fail-fast: false
matrix:
include:
- name: static
poco_mt: "OFF"
- name: static-mt
poco_mt: "ON"
steps:
- uses: actions/checkout@v5
- uses: TheMrMilchmann/setup-msvc-dev@v4
with:
arch: x64
- run: >-
cmake -S. -Bcmake-build -G Ninja -DCMAKE_BUILD_TYPE=Release
-DCMAKE_INTERPROCEDURAL_OPTIMIZATION=ON
-DBUILD_SHARED_LIBS=OFF -DPOCO_MT=${{ matrix.poco_mt }}
${{ env.POCO_CMAKE_WINDOWS_MINIMAL }}
- run: cmake --build cmake-build --parallel $env:NUMBER_OF_PROCESSORS
- uses: ./.github/actions/retry-action
env:
CPPUNIT_IGNORE: ${{ env.POCO_WIN_CPPUNIT_IGNORE }}
with:
timeout_minutes: 90
max_attempts: 3
retry_on: any
command: >-
cd cmake-build;
ctest ${{ env.POCO_CTEST_COMMON }} --parallel $env:NUMBER_OF_PROCESSORS -R "^(Foundation|Util)$"
- uses: ./.github/actions/upload-test-report
with:
suffix: ${{ matrix.name }}
# Build-only warnings probe: extra compiler warnings enabled.
windows-msvc-cmake-warnings:
runs-on: windows-2025
steps:
- uses: actions/checkout@v5
- uses: TheMrMilchmann/setup-msvc-dev@v4
with:
arch: x64
- run: >-
cmake -S. -Bcmake-build -G Ninja -DCMAKE_BUILD_TYPE=Release
${{ env.POCO_CMAKE_FULL_COMMON }}
${{ env.POCO_CMAKE_WARNINGS_EXTRA }}
-DENABLE_NETSSL_WIN=ON -DENABLE_NETSSL=OFF
-DENABLE_CRYPTO=OFF -DENABLE_JWT=OFF
- run: cmake --build cmake-build --parallel $env:NUMBER_OF_PROCESSORS
# ------------------------------------------------------------------------
# Data-env: build-once / test-many. `data-build` compiles every Data/Redis/
# MongoDB testrunner once and uploads the binaries; each data-test-* job
# downloads them and runs only its own driver against a real backend.
# ------------------------------------------------------------------------
data-test-mysql:
runs-on: ubuntu-24.04
needs: data-build
if: needs.data-build.outputs.run == 'true'
env:
POCO_BASE: ${{ github.workspace }}
LD_LIBRARY_PATH: ${{ github.workspace }}/cmake-build/lib
services:
mysql:
image: mysql:8.1.0
env:
MYSQL_ALLOW_EMPTY_PASSWORD: yes
MYSQL_USER: pocotest
MYSQL_PASSWORD: pocotest
MYSQL_DATABASE: pocotest
ports:
- 3306:3306
steps:
- uses: actions/checkout@v5
- run: sudo apt -y update && sudo apt -y install libmysqlclient21 mysql-client
- uses: actions/download-artifact@v8
with:
name: data-build-artifacts
path: cmake-build
- run: chmod +x cmake-build/bin/*-testrunner
- uses: ./.github/actions/retry-action
with:
timeout_minutes: 90
max_attempts: 3
retry_on: any
command: cd cmake-build/bin && ./DataMySQL-testrunner -all
# TODO tests sometimes failing on testTransaction and testReconnect
data-test-postgres:
runs-on: ubuntu-24.04
needs: data-build
if: needs.data-build.outputs.run == 'true'
env:
POCO_BASE: ${{ github.workspace }}
LD_LIBRARY_PATH: ${{ github.workspace }}/cmake-build/lib
services:
postgres:
image: postgres:16.0
env:
POSTGRES_PASSWORD: postgres
ports:
- 5432:5432
steps:
- uses: actions/checkout@v5
- run: sudo apt -y update && sudo apt -y install libpq5
- uses: actions/download-artifact@v8
with:
name: data-build-artifacts
path: cmake-build
- run: chmod +x cmake-build/bin/*-testrunner
- uses: ./.github/actions/retry-action
with:
timeout_minutes: 90
max_attempts: 3
retry_on: any
command: cd cmake-build/bin && ./DataPostgreSQL-testrunner -all
data-test-redis:
runs-on: ubuntu-24.04
needs: data-build
if: needs.data-build.outputs.run == 'true'
env:
POCO_BASE: ${{ github.workspace }}
LD_LIBRARY_PATH: ${{ github.workspace }}/cmake-build/lib
steps:
- uses: actions/checkout@v5
- name: Install Redis server
run: |
curl -fsSL https://packages.redis.io/gpg | sudo gpg --dearmor -o /usr/share/keyrings/redis-archive-keyring.gpg
echo "deb [signed-by=/usr/share/keyrings/redis-archive-keyring.gpg] https://packages.redis.io/deb $(lsb_release -cs) main" | sudo tee /etc/apt/sources.list.d/redis.list
sudo apt-get -y update
sudo apt-get -y install redis
- uses: actions/download-artifact@v8
with:
name: data-build-artifacts
path: cmake-build
- run: chmod +x cmake-build/bin/*-testrunner
- uses: ./.github/actions/retry-action
with:
timeout_minutes: 90
max_attempts: 3
retry_on: any
command: cd cmake-build/bin && ./Redis-testrunner -all
data-test-mongodb:
runs-on: ubuntu-24.04
needs: data-build
if: needs.data-build.outputs.run == 'true'
env:
POCO_BASE: ${{ github.workspace }}
LD_LIBRARY_PATH: ${{ github.workspace }}/cmake-build/lib
steps:
- uses: actions/checkout@v5
- uses: supercharge/mongodb-github-action@1.12.1
- uses: actions/download-artifact@v8
with:
name: data-build-artifacts
path: cmake-build
- run: chmod +x cmake-build/bin/*-testrunner
- uses: ./.github/actions/retry-action
with:
timeout_minutes: 90
max_attempts: 3
retry_on: any
command: cd cmake-build/bin && ./MongoDB-testrunner -all
data-test-odbc-oracle:
runs-on: ubuntu-24.04
needs: data-build
if: needs.data-build.outputs.run == 'true'
env:
POCO_BASE: ${{ github.workspace }}
LD_LIBRARY_PATH: ${{ github.workspace }}/cmake-build/lib
services:
oracle:
image: container-registry.oracle.com/database/free:23.5.0.0-lite
env:
ORACLE_PWD: poco
ports:
- 1521:1521
steps:
- uses: actions/checkout@v5
- name: Pre-check runner disk & cleanup
run: |
echo "Disk usage before cleanup:"
df -h .
free -h
sudo rm -f /var/lib/dpkg/lock-frontend /var/cache/apt/archives/lock || true
sudo apt-get -y autoremove --purge || true