Avoid unnecessary git checkout overhead (#279)

pull/273/head
Cheng Shao 3 years ago committed by GitHub
parent 3a3771d6cd
commit cee312d6d0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -40,9 +40,15 @@ jobs:
if: matrix.os == 'macos-latest'
- name: Install wasmtime for tests
run: curl -f -L --retry 5 https://wasmtime.dev/install.sh | bash -s -- --version v2.0.2
- uses: actions/checkout@v1
- uses: actions/checkout@v3
with:
submodules: true
fetch-depth: 0
# We can't use `--depth 1` here sadly because the GNU config
# submodule is not pinned to a particular tag/branch. Please
# bump depth (or even better, the submodule), in case of "error:
# Server does not allow request for unadvertised object" in the
# future.
- run: git submodule update --init --depth 16 --jobs 3
- name: Install ccache, ninja (macOS)
run: brew install ccache ninja
if: matrix.os == 'macos-latest'
@ -96,7 +102,7 @@ jobs:
- uses: actions/checkout@v3
with:
fetch-depth: 0
submodules: true
- run: git submodule update --init --depth 16 --jobs 3
- name: Build
shell: msys2 {0}
run: |
@ -125,9 +131,11 @@ jobs:
restore-keys: |
0-cache-ubuntu-bionic
- uses: actions/checkout@v1
- uses: actions/checkout@v3
with:
submodules: true
fetch-depth: 0
- run: git submodule update --init --depth 16 --jobs 3
- uses: docker/login-action@v2
with:

@ -1 +1 @@
Subproject commit c179db1b6f2ae484bfca1e9f8bae273e3319fa7d
Subproject commit f992bcc08219edb283d2ab31dd3871a4a0e8220e
Loading…
Cancel
Save