diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 87a94b668..55331bcd0 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -126,16 +126,8 @@ jobs: runs-on: ${{ vars.CI_WINDOWS_RUNNER || 'windows-2022' }} steps: - - name: Checkout - uses: actions/checkout@v4 - with: - fetch-depth: 0 - - # The fetch-tags option for checkout does not work correctly so we need to do this. - - name: Fetch tags - run: | - git config --global --add safe.directory $GITHUB_WORKSPACE - git fetch --tags --force + - name: Fancy Checkout + uses: sithlord48/fancy-checkout@v1.0.0 # This effectively runs `vcvarsall.bat`, etc. It's not actually installing # VC++ as that's already pre-installed on the Windows runner. @@ -215,16 +207,8 @@ jobs: extra-cmake-config: "-DCMAKE_OSX_ARCHITECTURES=\"x86_64\" -DMACOSX_DEPLOYMENT_TARGET=12" steps: - - name: Checkout - uses: actions/checkout@v4 - with: - fetch-depth: 0 - - # The fetch-tags option for checkout does not work correctly so we need to do this. - - name: Fetch tags - run: | - git config --global --add safe.directory $GITHUB_WORKSPACE - git fetch --tags --force + - name: Fancy Checkout + uses: sithlord48/fancy-checkout@v1.0.0 - name: Install dependencies run: brew install cmake ninja openssl googletest --quiet @@ -306,16 +290,8 @@ jobs: matrix: ${{fromJson(needs.linux-matrix.outputs.json-matrix)}} steps: - - name: Checkout - uses: actions/checkout@v4 - with: - fetch-depth: 0 - - # The fetch-tags option for checkout does not work correctly so we need to do this. - - name: Fetch tags - run: | - git config --global --add safe.directory $GITHUB_WORKSPACE - git fetch --tags --force + - name: Fancy Checkout + uses: sithlord48/fancy-checkout@v1.0.0 - name: Add Kitware repo if: ${{ matrix.distro.name == 'ubuntu-22.04-amd64' }} @@ -383,16 +359,8 @@ jobs: - name: freebsd steps: - - name: Checkout - uses: actions/checkout@v4 - with: - fetch-depth: 0 - - # The fetch-tags option for checkout does not work correctly so we need to do this. - - name: Fetch tags - run: | - git config --global --add safe.directory $GITHUB_WORKSPACE - git fetch --tags --force + - name: Fancy Checkout + uses: sithlord48/fancy-checkout@v1.0.0 - name: Build on FreeBSD if: ${{ matrix.distro.name == 'freebsd' }} diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index ca51ec2cc..87dfb21b7 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -38,16 +38,8 @@ jobs: language: ["cpp"] steps: - - name: Checkout - uses: actions/checkout@v4 - with: - fetch-depth: 0 - - # the fetch-tags option for checkout does not work correctly so we need todo this - - name: Fetch tags - run: | - git config --global --add safe.directory $GITHUB_WORKSPACE - git fetch --tags --force + - name: Fancy Checkout + uses: sithlord48/fancy-checkout@v1.0.0 - name: Install dependencies run: ./scripts/install_deps.py diff --git a/.github/workflows/sonarcloud-analysis.yml b/.github/workflows/sonarcloud-analysis.yml index e7865781c..443bac5f1 100644 --- a/.github/workflows/sonarcloud-analysis.yml +++ b/.github/workflows/sonarcloud-analysis.yml @@ -22,16 +22,8 @@ jobs: CPU_CORE_COUNT: ${{ vars.SONAR_SCANNER_CPU_COUNT || 4 }} steps: - - name: Checkout - uses: actions/checkout@v4 - with: - fetch-depth: 0 - - # the fetch-tags option for checkout does not work correctly so we need todo this - - name: Fetch tags - run: | - git config --global --add safe.directory $GITHUB_WORKSPACE - git fetch --tags --force + - name: Fancy Checkout + uses: sithlord48/fancy-checkout@v1.0.0 - name: Add Kitware repo uses: ./.github/actions/add-kitware-repo diff --git a/.github/workflows/valgrind-analysis.yml b/.github/workflows/valgrind-analysis.yml index ade2854f7..63e72823c 100644 --- a/.github/workflows/valgrind-analysis.yml +++ b/.github/workflows/valgrind-analysis.yml @@ -11,16 +11,8 @@ jobs: timeout-minutes: 10 steps: - - name: Checkout - uses: actions/checkout@v4 - with: - fetch-depth: 0 - - # the fetch-tags option for checkout does not work correctly so we need todo this - - name: Fetch tags - run: | - git config --global --add safe.directory $GITHUB_WORKSPACE - git fetch --tags --force + - name: Fancy Checkout + uses: sithlord48/fancy-checkout@v1.0.0 - name: Add Kitware repo uses: ./.github/actions/add-kitware-repo