2525 matrix : ${{ steps.cpp-matrix.outputs.matrix }}
2626 steps :
2727 - name : Generate Test Matrix
28- uses :
alandefreitas/cpp-actions/[email protected] .3 28+ uses :
alandefreitas/cpp-actions/[email protected] .4 2929 id : cpp-matrix
3030 with :
3131 compilers : |
6060 uses : actions/checkout@v4
6161
6262 - name : Setup CMake
63- uses :
alandefreitas/cpp-actions/[email protected] .3 63+ uses :
alandefreitas/cpp-actions/[email protected] .4 6464 id : setup-cmake
6565 with :
6666 version : ${{ matrix.compiler == 'clang' && '3.26' || '>=3.26' }}
@@ -72,15 +72,15 @@ jobs:
7272 if : ${{ runner.os == 'Windows' }}
7373
7474 - name : Setup C++
75- uses :
alandefreitas/cpp-actions/[email protected] .3 75+ uses :
alandefreitas/cpp-actions/[email protected] .4 7676 id : setup-cpp
7777 with :
7878 compiler : ${{ matrix.compiler }}
7979 version : ${{ matrix.version }}
8080 check-latest : ${{ matrix.compiler == 'clang' }}
8181
8282 - name : Install System Packages
83- uses :
alandefreitas/cpp-actions/[email protected] .3 83+ uses :
alandefreitas/cpp-actions/[email protected] .4 8484 id : package-install
8585 env :
8686 DEBIAN_FRONTEND : ' noninteractive'
@@ -237,7 +237,7 @@ jobs:
237237 node-version : ' 18'
238238
239239 - name : CMake Workflow
240- uses :
alandefreitas/cpp-actions/[email protected] .3 240+ uses :
alandefreitas/cpp-actions/[email protected] .4 241241 with :
242242 cmake-version : ${{ matrix.compiler == 'clang' && '3.26' || '>=3.26' }}
243243 cxxstd : ${{ matrix.cxxstd }}
@@ -275,7 +275,7 @@ jobs:
275275 retention-days : 1
276276
277277 - name : FlameGraph
278- uses :
alandefreitas/cpp-actions/[email protected] .3 278+ uses :
alandefreitas/cpp-actions/[email protected] .4 279279 if : matrix.time-trace
280280 with :
281281 build-dir : build
@@ -290,28 +290,28 @@ jobs:
290290 gcov : true
291291 verbose : true
292292
293- website :
293+ releases :
294294 needs : build
295295 defaults :
296296 run :
297297 shell : bash
298- name : Website
298+ name : Releases
299299 timeout-minutes : 30
300300 runs-on : ubuntu-20.04
301301 container : ubuntu:23.04
302302 permissions :
303303 contents : write
304304 steps :
305305 - name : Setup C++
306- uses :
alandefreitas/cpp-actions/[email protected] .3 306+ uses :
alandefreitas/cpp-actions/[email protected] .4 307307 id : setup-cpp
308308 with :
309309 compiler : clang
310310 version : 16
311311 check-latest : true
312312
313313 - name : Install packages
314- uses :
alandefreitas/cpp-actions/[email protected] .3 314+ uses :
alandefreitas/cpp-actions/[email protected] .4 315315 id : package-install
316316 with :
317317 apt-get : libstdc++-12-dev asciidoctor cmake bzip2 git
@@ -332,6 +332,11 @@ jobs:
332332 name : release-packages-Linux
333333 path : packages
334334
335+ - uses : actions/download-artifact@v4
336+ with :
337+ name : release-packages-Windows
338+ path : packages
339+
335340 - name : Install MrDocs
336341 run : |
337342 set -x
@@ -343,7 +348,7 @@ jobs:
343348 echo -e "CXX=$CXX" >> $GITHUB_ENV
344349
345350 - name : Clone Boost.URL
346- uses :
alandefreitas/cpp-actions/[email protected] .3 351+ uses :
alandefreitas/cpp-actions/[email protected] .4 347352 id : boost-url-clone
348353 with :
349354 branch : develop
@@ -530,51 +535,22 @@ jobs:
530535 chmod 755 -R $(pwd)/demos
531536 scp -o StrictHostKeyChecking=no -r $(pwd)/demos/* [email protected] :$demo_dir/ 532537
533- releases :
534- needs : build
535- defaults :
536- run :
537- shell : bash
538-
539- name : Releases
540- timeout-minutes : 120
541- runs-on : ubuntu-22.04
542- permissions :
543- contents : write
544-
545- steps :
546538 - name : Clone mrdocs
547539 uses : actions/checkout@v4
548540
549- - uses : actions/download-artifact@v4
550- with :
551- name : release-packages-Linux
552- path : build
553-
554- - uses : actions/download-artifact@v4
555- with :
556- name : release-packages-Windows
557- path : build
558-
559- - name : List artifacts
560- run : ls -R
561- working-directory : build
541+ - name : Set Repository Ownership
542+ run : |
543+ git config --global --add safe.directory "$(pwd)"
562544
563545 - name : Create changelog
564- uses :
alandefreitas/cpp-actions/[email protected] .3 546+ uses :
alandefreitas/cpp-actions/[email protected] .4 565547 with :
566548 output-path : CHANGELOG.md
567549 thank-non-regular : ${{ startsWith(github.ref, 'refs/tags/') }}
568550 github-token : ${{ secrets.GITHUB_TOKEN }}
569551 limit : 150
570552
571- - name : Compare Markup Templates
572- run : |
573- set -x
574- chmod +x .github/compare_templates.sh
575- .github/compare_templates.sh
576-
577- - name : Check info nodes
553+ - name : Check Info Nodes
578554 run : |
579555 set -x
580556 chmod +x .github/check_info_nodes_support.sh
@@ -584,15 +560,16 @@ jobs:
584560 if : ${{ github.event_name == 'push' && (contains(fromJSON('["master", "develop"]'), github.ref_name) || startsWith(github.ref, 'refs/tags/')) }}
585561 uses : softprops/action-gh-release@v1
586562 with :
587- files : build /MrDocs-?.?.?-*.*
563+ files : packages /MrDocs-?.?.?-*.*
588564 name : ${{ github.ref_name || github.ref }}
589565 tag_name : ${{ github.ref_name || github.ref }}${{ ((!startsWith(github.ref, 'refs/tags/')) && '-release') || '' }}
590566 body_path : CHANGELOG.md
591567 prerelease : false
592568 draft : false
593569 token : ${{ github.token }}
594570
595- -
uses :
dev-drprasad/[email protected] 571+ - name : Delete Older Releases
572+ uses :
dev-drprasad/[email protected] 596573 if : ${{ github.event_name == 'push' && contains(fromJSON('["master", "develop"]'), github.ref_name) }}
597574 with :
598575 keep_latest : 1
0 commit comments