Fix github release-pipeline so version tag is available for cmake (#3651)

Followup to
https://discord.com/channels/756287461377703987/1280601431975661599
where the v0.2.16 release is showing git SHA in the speedrun
verification text, instead of the version tag
This commit is contained in:
Matt Dallmeyer 2024-09-09 20:26:46 -07:00 committed by GitHub
parent a39af394fb
commit d82bb3fde8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 36 additions and 0 deletions

View file

@ -21,9 +21,19 @@ jobs:
timeout-minutes: 60 timeout-minutes: 60
steps: steps:
# minimal checkout if we're NOT uploading artifacts
- name: Checkout Repository - name: Checkout Repository
if: ${{ ! inputs.uploadArtifacts }}
uses: actions/checkout@v4 uses: actions/checkout@v4
# full checkout with tags if we ARE uploading artifacts
- name: Checkout Repository with Tags
if: ${{ inputs.uploadArtifacts }}
uses: actions/checkout@v4
with:
fetch-depth: 0
fetch-tags: true
- name: Install Package Dependencies - name: Install Package Dependencies
run: | run: |
sudo apt update sudo apt update

View file

@ -21,9 +21,19 @@ jobs:
timeout-minutes: 120 timeout-minutes: 120
steps: steps:
# minimal checkout if we're NOT uploading artifacts
- name: Checkout Repository - name: Checkout Repository
if: ${{ ! inputs.uploadArtifacts }}
uses: actions/checkout@v4 uses: actions/checkout@v4
# full checkout with tags if we ARE uploading artifacts
- name: Checkout Repository with Tags
if: ${{ inputs.uploadArtifacts }}
uses: actions/checkout@v4
with:
fetch-depth: 0
fetch-tags: true
- name: Install Package Dependencies - name: Install Package Dependencies
run: brew install cmake nasm ninja run: brew install cmake nasm ninja

View file

@ -45,6 +45,8 @@ jobs:
# Windows # Windows
build_windows_clang: build_windows_clang:
needs:
- cut_release
name: "🖥️ Windows" name: "🖥️ Windows"
uses: ./.github/workflows/windows-build-clang.yaml uses: ./.github/workflows/windows-build-clang.yaml
with: with:
@ -55,6 +57,8 @@ jobs:
# Linux # Linux
build_linux_clang: build_linux_clang:
needs:
- cut_release
name: "🐧 Linux" name: "🐧 Linux"
uses: ./.github/workflows/linux-build-clang.yaml uses: ./.github/workflows/linux-build-clang.yaml
with: with:
@ -65,6 +69,8 @@ jobs:
# macOS # macOS
build_macos_intel: build_macos_intel:
needs:
- cut_release
name: "🍎 MacOS" name: "🍎 MacOS"
uses: ./.github/workflows/macos-build.yaml uses: ./.github/workflows/macos-build.yaml
with: with:

View file

@ -22,9 +22,19 @@ jobs:
timeout-minutes: 60 timeout-minutes: 60
steps: steps:
# minimal checkout if we're NOT uploading artifacts
- name: Checkout Repository - name: Checkout Repository
if: ${{ ! inputs.uploadArtifacts }}
uses: actions/checkout@v4 uses: actions/checkout@v4
# full checkout with tags if we ARE uploading artifacts
- name: Checkout Repository with Tags
if: ${{ inputs.uploadArtifacts }}
uses: actions/checkout@v4
with:
fetch-depth: 0
fetch-tags: true
- name: Install NASM - name: Install NASM
# TODO - Simplify this with just the first command once choco 2.0 rolls out everywhere # TODO - Simplify this with just the first command once choco 2.0 rolls out everywhere
run: | run: |