Skip to content

Commit c7774e7

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. Note that `actions/checkout@v2` seems to be incompatible with running in containers: actions/checkout#151. Therefore, we stick with v1 there. Signed-off-by: Johannes Schindelin <[email protected]>
1 parent 23eecab commit c7774e7

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

.github/workflows/main.yml

Lines changed: 5 additions & 5 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@v0
8686
- name: build
8787
shell: bash
@@ -134,7 +134,7 @@ jobs:
134134
GIT_CONFIG_PARAMETERS: "'user.name=CI' 'user.email=ci@git'"
135135
runs-on: windows-latest
136136
steps:
137-
- uses: actions/checkout@v1
137+
- uses: actions/checkout@v2
138138
- uses: git-for-windows/setup-git-for-windows-sdk@v0
139139
- name: download vcpkg artifacts
140140
shell: powershell
@@ -232,7 +232,7 @@ jobs:
232232
jobname: ${{matrix.vector.jobname}}
233233
runs-on: ${{matrix.vector.pool}}
234234
steps:
235-
- uses: actions/checkout@v1
235+
- uses: actions/checkout@v2
236236
- run: ci/install-dependencies.sh
237237
- run: ci/run-build-and-tests.sh
238238
- run: ci/print-test-failures.sh
@@ -277,7 +277,7 @@ jobs:
277277
jobname: StaticAnalysis
278278
runs-on: ubuntu-latest
279279
steps:
280-
- uses: actions/checkout@v1
280+
- uses: actions/checkout@v2
281281
- run: ci/install-dependencies.sh
282282
- run: ci/run-static-analysis.sh
283283
documentation:
@@ -287,6 +287,6 @@ jobs:
287287
jobname: Documentation
288288
runs-on: ubuntu-latest
289289
steps:
290-
- uses: actions/checkout@v1
290+
- uses: actions/checkout@v2
291291
- run: ci/install-dependencies.sh
292292
- run: ci/test-documentation.sh

0 commit comments

Comments
 (0)