Skip to content

Commit

Permalink
Avoid unnecessary git checkout overhead (#279)
Browse files Browse the repository at this point in the history
  • Loading branch information
TerrorJack authored Jan 3, 2023
1 parent 3a3771d commit cee312d
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 6 deletions.
18 changes: 13 additions & 5 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down Expand Up @@ -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: |
Expand Down Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion src/config
Submodule config updated from c179db to f992bc

0 comments on commit cee312d

Please sign in to comment.