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
This commit is contained in:
@@ -13,7 +13,13 @@ jobs:
|
|||||||
runs-on: ubuntu-22.04
|
runs-on: ubuntu-22.04
|
||||||
continue-on-error: true
|
continue-on-error: true
|
||||||
steps:
|
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
|
- name: Install dependencies
|
||||||
run: |
|
run: |
|
||||||
@@ -53,7 +59,13 @@ jobs:
|
|||||||
# and BDB until they're fixed file-by-file.
|
# 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"
|
SAN_FLAGS: "-fsanitize=address,undefined -fno-omit-frame-pointer -fno-sanitize-recover=undefined -fno-sanitize=alignment,signed-integer-overflow,vptr"
|
||||||
steps:
|
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
|
- name: Install dependencies
|
||||||
run: |
|
run: |
|
||||||
@@ -87,7 +99,13 @@ jobs:
|
|||||||
run:
|
run:
|
||||||
shell: msys2 {0}
|
shell: msys2 {0}
|
||||||
steps:
|
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
|
- uses: msys2/setup-msys2@v2
|
||||||
with:
|
with:
|
||||||
@@ -238,7 +256,13 @@ jobs:
|
|||||||
run:
|
run:
|
||||||
shell: msys2 {0}
|
shell: msys2 {0}
|
||||||
steps:
|
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
|
- uses: msys2/setup-msys2@v2
|
||||||
with:
|
with:
|
||||||
@@ -301,7 +325,13 @@ jobs:
|
|||||||
build-linux-qt:
|
build-linux-qt:
|
||||||
runs-on: ubuntu-22.04
|
runs-on: ubuntu-22.04
|
||||||
steps:
|
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
|
- name: Set VERSION
|
||||||
run: |
|
run: |
|
||||||
@@ -418,7 +448,13 @@ jobs:
|
|||||||
build-linux-daemon:
|
build-linux-daemon:
|
||||||
runs-on: ubuntu-22.04
|
runs-on: ubuntu-22.04
|
||||||
steps:
|
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
|
- name: Set VERSION
|
||||||
run: |
|
run: |
|
||||||
@@ -548,7 +584,13 @@ jobs:
|
|||||||
build-macos:
|
build-macos:
|
||||||
runs-on: macos-15
|
runs-on: macos-15
|
||||||
steps:
|
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
|
- name: Set VERSION
|
||||||
run: |
|
run: |
|
||||||
|
|||||||
Reference in New Issue
Block a user