Skip to content

Commit cee312d

Browse files
authored
Avoid unnecessary git checkout overhead (#279)
1 parent 3a3771d commit cee312d

File tree

2 files changed

+14
-6
lines changed

2 files changed

+14
-6
lines changed

.github/workflows/main.yml

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,15 @@ jobs:
4040
if: matrix.os == 'macos-latest'
4141
- name: Install wasmtime for tests
4242
run: curl -f -L --retry 5 https://wasmtime.dev/install.sh | bash -s -- --version v2.0.2
43-
- uses: actions/checkout@v1
43+
- uses: actions/checkout@v3
4444
with:
45-
submodules: true
45+
fetch-depth: 0
46+
# We can't use `--depth 1` here sadly because the GNU config
47+
# submodule is not pinned to a particular tag/branch. Please
48+
# bump depth (or even better, the submodule), in case of "error:
49+
# Server does not allow request for unadvertised object" in the
50+
# future.
51+
- run: git submodule update --init --depth 16 --jobs 3
4652
- name: Install ccache, ninja (macOS)
4753
run: brew install ccache ninja
4854
if: matrix.os == 'macos-latest'
@@ -96,7 +102,7 @@ jobs:
96102
- uses: actions/checkout@v3
97103
with:
98104
fetch-depth: 0
99-
submodules: true
105+
- run: git submodule update --init --depth 16 --jobs 3
100106
- name: Build
101107
shell: msys2 {0}
102108
run: |
@@ -125,9 +131,11 @@ jobs:
125131
restore-keys: |
126132
0-cache-ubuntu-bionic
127133
128-
- uses: actions/checkout@v1
134+
- uses: actions/checkout@v3
129135
with:
130-
submodules: true
136+
fetch-depth: 0
137+
138+
- run: git submodule update --init --depth 16 --jobs 3
131139

132140
- uses: docker/login-action@v2
133141
with:

src/config

Submodule config updated from c179db1 to f992bcc

0 commit comments

Comments
 (0)