Skip to content

Commit e772d8f

Browse files
committed
ci: accelerate the checkout
By upgrading from v1 to v2 of `actions/checkout`, we avoid fetching all the tags and the complete 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 a508479 commit e772d8f

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@v1
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@v1
139139
- name: initialize vcpkg
140140
uses: actions/checkout@v2
@@ -237,7 +237,7 @@ jobs:
237237
jobname: ${{matrix.vector.jobname}}
238238
runs-on: ${{matrix.vector.pool}}
239239
steps:
240-
- uses: actions/checkout@v1
240+
- uses: actions/checkout@v2
241241
- run: ci/install-dependencies.sh
242242
- run: ci/run-build-and-tests.sh
243243
- run: ci/print-test-failures.sh
@@ -282,7 +282,7 @@ jobs:
282282
jobname: StaticAnalysis
283283
runs-on: ubuntu-18.04
284284
steps:
285-
- uses: actions/checkout@v1
285+
- uses: actions/checkout@v2
286286
- run: ci/install-dependencies.sh
287287
- run: ci/run-static-analysis.sh
288288
documentation:
@@ -292,6 +292,6 @@ jobs:
292292
jobname: Documentation
293293
runs-on: ubuntu-latest
294294
steps:
295-
- uses: actions/checkout@v1
295+
- uses: actions/checkout@v2
296296
- run: ci/install-dependencies.sh
297297
- run: ci/test-documentation.sh

0 commit comments

Comments
 (0)