[ci] switch to checkout v2

With checkout v1, it checks out all the repository history, which takes
~20 seconds to complete with all the submodules that we have. With v2,
takes <10 seconds to complete the checkout by virtue of checking out
only the latest commit.

For some cursed reason, spell check starts failing if docs uses v2
checkout, but doesn't fail if it uses v1.
This commit is contained in:
Quantum 2022-05-28 15:21:37 -04:00 committed by Geoffrey McRae
parent bf9023d6f8
commit 20b2130596

View File

@ -12,7 +12,7 @@ jobs:
wayland_shell: [xdg-shell, libdecor] wayland_shell: [xdg-shell, libdecor]
build_type: [Release, Debug] build_type: [Release, Debug]
steps: steps:
- uses: actions/checkout@v1 - uses: actions/checkout@v2
with: with:
submodules: recursive submodules: recursive
- name: Install libdecor PPA - name: Install libdecor PPA
@ -62,7 +62,7 @@ jobs:
module: module:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v1 - uses: actions/checkout@v2
with: with:
submodules: recursive submodules: recursive
- name: Build kernel module - name: Build kernel module
@ -73,7 +73,7 @@ jobs:
host-linux: host-linux:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v1 - uses: actions/checkout@v2
with: with:
submodules: recursive submodules: recursive
- name: Install PipeWire repository - name: Install PipeWire repository
@ -99,7 +99,7 @@ jobs:
host-windows-cross: host-windows-cross:
runs-on: ubuntu-20.04 runs-on: ubuntu-20.04
steps: steps:
- uses: actions/checkout@v1 - uses: actions/checkout@v2
with: with:
submodules: recursive submodules: recursive
- name: Update apt - name: Update apt
@ -130,7 +130,7 @@ jobs:
host-windows-native: host-windows-native:
runs-on: windows-latest runs-on: windows-latest
steps: steps:
- uses: actions/checkout@v1 - uses: actions/checkout@v2
with: with:
submodules: recursive submodules: recursive
- name: Configure Windows host for native MinGW-w64 - name: Configure Windows host for native MinGW-w64
@ -153,7 +153,7 @@ jobs:
matrix: matrix:
cc: [gcc, clang] cc: [gcc, clang]
steps: steps:
- uses: actions/checkout@v1 - uses: actions/checkout@v2
with: with:
submodules: recursive submodules: recursive
- name: Update apt - name: Update apt