diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index cb1c1b42..ce6254c0 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -15,9 +15,14 @@ jobs: with: submodules: recursive - - name: Fetch tags, needed for lib/SDL + - name: Fetch tags for lib/SDL run: | - git submodule foreach --recursive 'git fetch origin "refs/*:refs/*"' + # Unshallow a specific submodule (fetches full history) + cd lib/SDL + git fetch --unshallow origin + # Or fetch all refs without unshallowing (keeps it shallow but adds refs) + git fetch origin 'refs/*:refs/*' + cd ../.. - name: Install dependencies run: |