From 6c56e41e824b946fa85781c4538566c6ffca3666 Mon Sep 17 00:00:00 2001 From: Krystie Date: Thu, 30 Apr 2026 01:08:27 -0700 Subject: [PATCH] Fix CI: init secp256k1 submodule before build The secp256k1 submodule (src/secp256k1/) was not being checked out by the default shallow checkout, causing CMake to fail with: 'src/secp256k1 is empty. Run: git submodule update --init --recursive' All 6 build jobs (Linux unit/sanitizer, Windows Qt/daemon, Linux Qt/daemon, macOS) now: 1. Use fetch-depth:0 to get full git history (needed for submodules) 2. Run 'git submodule update --init --recursive' after checkout 3. Proceed with the normal build steps --- .github/workflows/build-all.yml | 56 ++++++++++++++++++++++++++++----- 1 file changed, 49 insertions(+), 7 deletions(-) diff --git a/.github/workflows/build-all.yml b/.github/workflows/build-all.yml index 267d62b..5750498 100644 --- a/.github/workflows/build-all.yml +++ b/.github/workflows/build-all.yml @@ -13,7 +13,13 @@ jobs: runs-on: ubuntu-22.04 continue-on-error: true steps: - - uses: actions/checkout@v4 + - name: Checkout (with history for submodule) + uses: actions/checkout@v4 + with: + fetch-depth: 0 + + - name: Init submodules + run: git submodule update --init --recursive - name: Install dependencies run: | @@ -53,7 +59,13 @@ jobs: # and BDB until they're fixed file-by-file. SAN_FLAGS: "-fsanitize=address,undefined -fno-omit-frame-pointer -fno-sanitize-recover=undefined -fno-sanitize=alignment,signed-integer-overflow,vptr" steps: - - uses: actions/checkout@v4 + - name: Checkout (with history for submodule) + uses: actions/checkout@v4 + with: + fetch-depth: 0 + + - name: Init submodules + run: git submodule update --init --recursive - name: Install dependencies run: | @@ -87,7 +99,13 @@ jobs: run: shell: msys2 {0} steps: - - uses: actions/checkout@v4 + - name: Checkout (with history for submodule) + uses: actions/checkout@v4 + with: + fetch-depth: 0 + + - name: Init submodules + run: git submodule update --init --recursive - uses: msys2/setup-msys2@v2 with: @@ -238,7 +256,13 @@ jobs: run: shell: msys2 {0} steps: - - uses: actions/checkout@v4 + - name: Checkout (with history for submodule) + uses: actions/checkout@v4 + with: + fetch-depth: 0 + + - name: Init submodules + run: git submodule update --init --recursive - uses: msys2/setup-msys2@v2 with: @@ -301,7 +325,13 @@ jobs: build-linux-qt: runs-on: ubuntu-22.04 steps: - - uses: actions/checkout@v4 + - name: Checkout (with history for submodule) + uses: actions/checkout@v4 + with: + fetch-depth: 0 + + - name: Init submodules + run: git submodule update --init --recursive - name: Set VERSION run: | @@ -418,7 +448,13 @@ jobs: build-linux-daemon: runs-on: ubuntu-22.04 steps: - - uses: actions/checkout@v4 + - name: Checkout (with history for submodule) + uses: actions/checkout@v4 + with: + fetch-depth: 0 + + - name: Init submodules + run: git submodule update --init --recursive - name: Set VERSION run: | @@ -548,7 +584,13 @@ jobs: build-macos: runs-on: macos-15 steps: - - uses: actions/checkout@v4 + - name: Checkout (with history for submodule) + uses: actions/checkout@v4 + with: + fetch-depth: 0 + + - name: Init submodules + run: git submodule update --init --recursive - name: Set VERSION run: |