ci: use fancy checkout action

This commit is contained in:
sithlord48
2024-10-21 14:18:59 -04:00
committed by Chris Rizzitello
parent 5d183c98e9
commit f967b9ed46
4 changed files with 14 additions and 70 deletions

View File

@ -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' }}

View File

@ -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

View File

@ -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

View File

@ -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