From dc425883ef9238a578aec056d900e549c4addc01 Mon Sep 17 00:00:00 2001 From: Ricardo Abreu Date: Fri, 11 Apr 2025 17:47:58 +0100 Subject: [PATCH 1/2] [ci] Test direct checkout of submodules --- .github/actions/checkout/action.yml | 18 ------------------ .github/workflows/linux.yml | 4 +--- 2 files changed, 1 insertion(+), 21 deletions(-) delete mode 100644 .github/actions/checkout/action.yml diff --git a/.github/actions/checkout/action.yml b/.github/actions/checkout/action.yml deleted file mode 100644 index 6932843965..0000000000 --- a/.github/actions/checkout/action.yml +++ /dev/null @@ -1,18 +0,0 @@ -name: Checkout -description: Get tags and submodules for the Multipass repository - -runs: - using: composite - steps: - - name: Check out submodules - shell: bash - run: | - git submodule sync - # This repository can't do depth. - git -c protocol.version=2 submodule update --init 3rd-party/xz-decoder/xz-embedded - git -c protocol.version=2 submodule update --init --force --depth=1 --recursive - - - name: Fetch tags - shell: bash - run: | - git fetch --recurse-submodules origin +refs/tags/*:refs/tags/* diff --git a/.github/workflows/linux.yml b/.github/workflows/linux.yml index 6c9166259a..e339f35d2f 100644 --- a/.github/workflows/linux.yml +++ b/.github/workflows/linux.yml @@ -103,9 +103,7 @@ jobs: with: # Need to fetch it all for submodules to work. fetch-depth: 0 - - - name: Check out tags and submodules - uses: ./.github/actions/checkout + submodules: 'recursive' - name: Determine build parameters id: build-params From 5be6be0dca7665a92254e06e94d7d68afac8b634 Mon Sep 17 00:00:00 2001 From: Ricardo Abreu Date: Fri, 11 Apr 2025 18:30:12 +0100 Subject: [PATCH 2/2] [ci] Test shallower checkout --- .github/workflows/linux.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/linux.yml b/.github/workflows/linux.yml index e339f35d2f..fa18746010 100644 --- a/.github/workflows/linux.yml +++ b/.github/workflows/linux.yml @@ -101,9 +101,8 @@ jobs: - name: Check out code uses: actions/checkout@v4 with: - # Need to fetch it all for submodules to work. - fetch-depth: 0 submodules: 'recursive' + fetch-tags: 'true' - name: Determine build parameters id: build-params