Skip to content

Commit 6297f81

Browse files
committed
Checkout submodules in github actions
1 parent 6b06a60 commit 6297f81

File tree

2 files changed

+19
-0
lines changed

2 files changed

+19
-0
lines changed

.cirrus.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
env:
22
CIRRUS_CLONE_DEPTH: 1
3+
CIRRUS_CLONE_SUBMODULES: true
34

45
freebsd_task:
56
name: FREEBSD_DEBUG_NTS

.github/workflows/push.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,21 @@ jobs:
7474
container:
7575
image: ${{ matrix.asan && 'ubuntu:23.04' || null }}
7676
steps:
77+
# A workaround to checkout submodules for images without git
78+
- name: apt git
79+
run: |
80+
set -x
81+
export DEBIAN_FRONTEND=noninteractive
82+
# Install sudo in Docker for consistent actions
83+
if ! type "sudo" > /dev/null; then
84+
apt-get update -y | true
85+
apt-get install -y sudo
86+
fi
87+
sudo apt-get install -y git
7788
- name: git checkout
7889
uses: actions/checkout@v3
90+
with:
91+
submodules: 'recursive'
7992
- name: apt
8093
uses: ./.github/actions/apt-x64
8194
- name: System info
@@ -139,6 +152,8 @@ jobs:
139152
steps:
140153
- name: git checkout
141154
uses: actions/checkout@v3
155+
with:
156+
submodules: 'recursive'
142157
- name: brew
143158
uses: ./.github/actions/brew
144159
- name: ccache
@@ -186,6 +201,8 @@ jobs:
186201
run: git config --global core.autocrlf false && git config --global core.eol lf
187202
- name: git checkout
188203
uses: actions/checkout@v3
204+
with:
205+
submodules: 'recursive'
189206
- name: Setup
190207
uses: ./.github/actions/setup-windows
191208
- name: Build
@@ -201,6 +218,7 @@ jobs:
201218
uses: actions/checkout@v3
202219
with:
203220
fetch-depth: 0
221+
submodules: 'recursive'
204222
- name: apt
205223
run: |
206224
set -x

0 commit comments

Comments
 (0)