Skip to content

Commit 79a131c

Browse files
committed
ci: accelerate the checkout
By upgrading from v1 to v2 of `actions/checkout`, we avoid fetching all the tags and the entire history: v2 only fetches one revision by default. This should make things a lot faster. Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
1 parent cfb9e1b commit 79a131c

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

.github/workflows/main.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ jobs:
8181
if: needs.ci-config.outputs.enabled == 'yes'
8282
runs-on: windows-latest
8383
steps:
84-
- uses: actions/checkout@v1
84+
- uses: actions/checkout@v2
8585
- uses: git-for-windows/setup-git-for-windows-sdk@main
8686
- name: build
8787
shell: bash
@@ -129,7 +129,7 @@ jobs:
129129
GIT_CONFIG_PARAMETERS: "'user.name=CI' 'user.email=ci@git'"
130130
runs-on: windows-latest
131131
steps:
132-
- uses: actions/checkout@v1
132+
- uses: actions/checkout@v2
133133
- name: download vcpkg artifacts
134134
shell: powershell
135135
run: |
@@ -215,7 +215,7 @@ jobs:
215215
jobname: ${{matrix.vector.jobname}}
216216
runs-on: ${{matrix.vector.pool}}
217217
steps:
218-
- uses: actions/checkout@v1
218+
- uses: actions/checkout@v2
219219
- run: ci/install-dependencies.sh
220220
- run: ci/run-build-and-tests.sh
221221
- run: ci/print-test-failures.sh
@@ -242,7 +242,7 @@ jobs:
242242
runs-on: ubuntu-latest
243243
container: ${{matrix.vector.image}}
244244
steps:
245-
- uses: actions/checkout@v1
245+
- uses: actions/checkout@v2
246246
- run: ci/install-docker-dependencies.sh
247247
- run: ci/run-build-and-tests.sh
248248
- run: ci/print-test-failures.sh
@@ -260,7 +260,7 @@ jobs:
260260
jobname: StaticAnalysis
261261
runs-on: ubuntu-latest
262262
steps:
263-
- uses: actions/checkout@v1
263+
- uses: actions/checkout@v2
264264
- run: ci/install-dependencies.sh
265265
- run: ci/run-static-analysis.sh
266266
documentation:
@@ -270,6 +270,6 @@ jobs:
270270
jobname: Documentation
271271
runs-on: ubuntu-latest
272272
steps:
273-
- uses: actions/checkout@v1
273+
- uses: actions/checkout@v2
274274
- run: ci/install-dependencies.sh
275275
- run: ci/test-documentation.sh

0 commit comments

Comments
 (0)