11name : Nightly release
22on :
33 schedule :
4- - cron : ' 0 5 * * 1-5'
4+ - cron : ' 0 8 * * 1-5'
55 workflow_dispatch :
66 pull_request :
77 paths :
@@ -21,68 +21,23 @@ jobs:
2121 - os : heavy
2222 build_type : Release
2323 static : true
24- container :
25- image : rippleci/clio_ci:latest
24+ container : ' { "image": "rippleci/clio_ci:latest" }'
2625 - os : heavy
2726 build_type : Debug
2827 static : true
29- container :
30- image : rippleci/clio_ci:latest
31- runs-on : [self-hosted, "${{ matrix.os }}"]
32- container : ${{ matrix.container }}
33-
34- steps :
35- - name : Clean workdir
36- if : ${{ runner.os == 'macOS' }}
37- uses : kuznetsss/workspace-cleanup@1.0
38-
39- - uses : actions/checkout@v4
40- with :
41- fetch-depth : 0
42-
43- - name : Prepare runner
44- uses : ./.github/actions/prepare_runner
45- with :
46- disable_ccache : true
47-
48- - name : Setup conan
49- uses : ./.github/actions/setup_conan
50- id : conan
51- with :
52- conan_profile : gcc
53-
54- - name : Run conan and cmake
55- uses : ./.github/actions/generate
56- with :
57- conan_profile : ${{ steps.conan.outputs.conan_profile }}
58- conan_cache_hit : ${{ steps.restore_cache.outputs.conan_cache_hit }}
59- build_type : ${{ matrix.build_type }}
60- static : ${{ matrix.static }}
61-
62- - name : Build Clio
63- uses : ./.github/actions/build_clio
64-
65- - name : Strip tests
66- run : strip build/clio_tests && strip build/clio_integration_tests
67-
68- - name : Upload clio_tests
69- uses : actions/upload-artifact@v4
70- with :
71- name : clio_tests_${{ runner.os }}_${{ matrix.build_type }}
72- path : build/clio_*tests
73-
74- - name : Compress clio_server
75- shell : bash
76- run : |
77- cd build
78- tar czf ./clio_server_${{ runner.os }}_${{ matrix.build_type }}.tar.gz ./clio_server
79-
80- - name : Upload clio_server
81- uses : actions/upload-artifact@v4
82- with :
83- name : clio_server_${{ runner.os }}_${{ matrix.build_type }}
84- path : build/clio_server_${{ runner.os }}_${{ matrix.build_type }}.tar.gz
85-
28+ container : ' { "image": "rippleci/clio_ci:latest" }'
29+ uses : ./.github/workflows/reusable_build.yml
30+ with :
31+ runs_on : ${{ matrix.os }}
32+ container : ${{ matrix.container }}
33+ conan_profile : gcc
34+ build_type : ${{ matrix.build_type }}
35+ code_coverage : false
36+ static : ${{ matrix.static }}
37+ unit_tests : true
38+ integration_tests : true
39+ clio_server : true
40+ disable_ccache : true
8641
8742 run_tests :
8843 needs : build
@@ -122,13 +77,17 @@ jobs:
12277
12378 - uses : actions/download-artifact@v4
12479 with :
125- name : clio_tests_${{ runner.os }}_${{ matrix.build_type }}
80+ name : clio_tests_${{ runner.os }}_${{ matrix.build_type }}_${{ matrix.conan_profile }}
12681
12782 - name : Run clio_tests
12883 run : |
12984 chmod +x ./clio_tests
13085 ./clio_tests
13186
87+ - uses : actions/download-artifact@v4
88+ with :
89+ name : clio_integration_tests_${{ runner.os }}_${{ matrix.build_type }}_${{ matrix.conan_profile }}
90+
13291 # To be enabled back once docker in mac runner arrives
13392 # https://github.com/XRPLF/clio/issues/1400
13493 - name : Run clio_integration_tests
0 commit comments