Skip to content

Commit 9ca1c15

Browse files
committed
build(bootstrap): modularize recipes
1 parent b4f1ad2 commit 9ca1c15

File tree

15 files changed

+2014
-1103
lines changed

15 files changed

+2014
-1103
lines changed

.github/workflows/ci.yml

Lines changed: 17 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -430,8 +430,8 @@ jobs:
430430
git-tag: ${{ matrix.llvm-hash }}
431431
download-dir: ../third-party/llvm-project
432432
patches: |
433-
./third-party/llvm/CMakePresets.json
434-
./third-party/llvm/CMakeUserPresets.json
433+
./third-party/patches/llvm/llvm/CMakePresets.json
434+
./third-party/patches/llvm/llvm/CMakeUserPresets.json
435435
build-dir: ${sourceDir}/build
436436
preset: ${{ matrix.llvm-build-preset }}
437437
build-type: ${{ matrix.build-type }}
@@ -467,8 +467,8 @@ jobs:
467467
source-dir: ../third-party/duktape
468468
url: https://github.com/svaarala/duktape/releases/download/v2.7.0/duktape-2.7.0.tar.xz
469469
patches: |
470-
./third-party/duktape/CMakeLists.txt
471-
./third-party/duktape/duktapeConfig.cmake.in
470+
./third-party/patches/duktape/CMakeLists.txt
471+
./third-party/patches/duktape/duktapeConfig.cmake.in
472472
build-dir: ${sourceDir}/build
473473
cc: ${{ steps.setup-cpp.outputs.cc }}
474474
cxx: ${{ steps.setup-cpp.outputs.cxx }}
@@ -487,8 +487,8 @@ jobs:
487487
source-dir: ../third-party/lua
488488
url: https://github.com/lua/lua/archive/refs/tags/v5.4.8.tar.gz
489489
patches: |
490-
./third-party/lua/CMakeLists.txt
491-
./third-party/lua/LuaConfig.cmake.in
490+
./third-party/patches/lua/CMakeLists.txt
491+
./third-party/patches/lua/LuaConfig.cmake.in
492492
build-dir: ${sourceDir}/build
493493
cc: ${{ steps.setup-cpp.outputs.cc }}
494494
cxx: ${{ steps.setup-cpp.outputs.cxx }}
@@ -910,6 +910,17 @@ jobs:
910910
npx gulp lint
911911
npx gulp
912912
913+
- name: Ensure all refs for Antora
914+
if: github.event_name == 'push' && (contains(fromJSON('["master", "develop"]'), github.ref_name) || startsWith(github.ref, 'refs/tags/')) && runner.os == 'Linux'
915+
run: |
916+
set -euo pipefail
917+
# Make sure Antora sees every branch and tag from the upstream repo,
918+
# regardless of who triggered the workflow.
919+
git remote set-url origin https://github.com/cppalliance/mrdocs.git
920+
git fetch --prune --prune-tags origin \
921+
'+refs/heads/*:refs/remotes/origin/*' \
922+
'+refs/tags/*:refs/tags/*'
923+
913924
- name: Generate Remote Documentation
914925
working-directory: docs
915926
run: |

0 commit comments

Comments
 (0)