diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index af0cdb7d5..32fa3b2e5 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -11,10 +11,23 @@ env: jobs: build: - runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 + with: + # Fetches the main repo but skips automatic handling of submodules + submodules: false + fetch-depth: 0 + + # Manually handle submodules + - name: Handle Git Submodules + run: | + # Initialize submodules + git submodule update --init --recursive + # Sync submodules in case .gitmodules has been updated + git submodule sync --recursive + # Attempt to fix any specific submodule fetching issues here, if applicable + - name: Build run: cargo build --verbose