ci: use fancy checkout action
This commit is contained in:
parent
5d183c98e9
commit
f967b9ed46
4 changed files with 14 additions and 70 deletions
48
.github/workflows/ci.yml
vendored
48
.github/workflows/ci.yml
vendored
|
|
@ -126,16 +126,8 @@ jobs:
|
||||||
runs-on: ${{ vars.CI_WINDOWS_RUNNER || 'windows-2022' }}
|
runs-on: ${{ vars.CI_WINDOWS_RUNNER || 'windows-2022' }}
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Fancy Checkout
|
||||||
uses: actions/checkout@v4
|
uses: sithlord48/fancy-checkout@v1.0.0
|
||||||
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
|
|
||||||
|
|
||||||
# This effectively runs `vcvarsall.bat`, etc. It's not actually installing
|
# This effectively runs `vcvarsall.bat`, etc. It's not actually installing
|
||||||
# VC++ as that's already pre-installed on the Windows runner.
|
# 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"
|
extra-cmake-config: "-DCMAKE_OSX_ARCHITECTURES=\"x86_64\" -DMACOSX_DEPLOYMENT_TARGET=12"
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Fancy Checkout
|
||||||
uses: actions/checkout@v4
|
uses: sithlord48/fancy-checkout@v1.0.0
|
||||||
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: Install dependencies
|
- name: Install dependencies
|
||||||
run: brew install cmake ninja openssl googletest --quiet
|
run: brew install cmake ninja openssl googletest --quiet
|
||||||
|
|
@ -306,16 +290,8 @@ jobs:
|
||||||
matrix: ${{fromJson(needs.linux-matrix.outputs.json-matrix)}}
|
matrix: ${{fromJson(needs.linux-matrix.outputs.json-matrix)}}
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Fancy Checkout
|
||||||
uses: actions/checkout@v4
|
uses: sithlord48/fancy-checkout@v1.0.0
|
||||||
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: Add Kitware repo
|
- name: Add Kitware repo
|
||||||
if: ${{ matrix.distro.name == 'ubuntu-22.04-amd64' }}
|
if: ${{ matrix.distro.name == 'ubuntu-22.04-amd64' }}
|
||||||
|
|
@ -383,16 +359,8 @@ jobs:
|
||||||
- name: freebsd
|
- name: freebsd
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Fancy Checkout
|
||||||
uses: actions/checkout@v4
|
uses: sithlord48/fancy-checkout@v1.0.0
|
||||||
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: Build on FreeBSD
|
- name: Build on FreeBSD
|
||||||
if: ${{ matrix.distro.name == 'freebsd' }}
|
if: ${{ matrix.distro.name == 'freebsd' }}
|
||||||
|
|
|
||||||
12
.github/workflows/codeql-analysis.yml
vendored
12
.github/workflows/codeql-analysis.yml
vendored
|
|
@ -38,16 +38,8 @@ jobs:
|
||||||
language: ["cpp"]
|
language: ["cpp"]
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Fancy Checkout
|
||||||
uses: actions/checkout@v4
|
uses: sithlord48/fancy-checkout@v1.0.0
|
||||||
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: Install dependencies
|
- name: Install dependencies
|
||||||
run: ./scripts/install_deps.py
|
run: ./scripts/install_deps.py
|
||||||
|
|
|
||||||
12
.github/workflows/sonarcloud-analysis.yml
vendored
12
.github/workflows/sonarcloud-analysis.yml
vendored
|
|
@ -22,16 +22,8 @@ jobs:
|
||||||
CPU_CORE_COUNT: ${{ vars.SONAR_SCANNER_CPU_COUNT || 4 }}
|
CPU_CORE_COUNT: ${{ vars.SONAR_SCANNER_CPU_COUNT || 4 }}
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Fancy Checkout
|
||||||
uses: actions/checkout@v4
|
uses: sithlord48/fancy-checkout@v1.0.0
|
||||||
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: Add Kitware repo
|
- name: Add Kitware repo
|
||||||
uses: ./.github/actions/add-kitware-repo
|
uses: ./.github/actions/add-kitware-repo
|
||||||
|
|
|
||||||
12
.github/workflows/valgrind-analysis.yml
vendored
12
.github/workflows/valgrind-analysis.yml
vendored
|
|
@ -11,16 +11,8 @@ jobs:
|
||||||
timeout-minutes: 10
|
timeout-minutes: 10
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Fancy Checkout
|
||||||
uses: actions/checkout@v4
|
uses: sithlord48/fancy-checkout@v1.0.0
|
||||||
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: Add Kitware repo
|
- name: Add Kitware repo
|
||||||
uses: ./.github/actions/add-kitware-repo
|
uses: ./.github/actions/add-kitware-repo
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue