Skip to content

Commit

Permalink
[WF:test_build] Tag debug builds and set run-name dynamically
Browse files Browse the repository at this point in the history
  • Loading branch information
m4heshd committed Apr 22, 2024
1 parent 45203bf commit 5c92c2a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/test_build.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
name: test_build

run-name: Test build on ${{ inputs.platform }}

on:
workflow_dispatch:
inputs:
Expand All @@ -18,7 +20,6 @@ jobs:
name: Building for tests on ${{ inputs.platform }}
runs-on: ${{ inputs.platform }}
env:
PACKAGE_NAME: ${{ fromJSON('{"windows-latest":"ufc-ripper-win32-x64.zip","ubuntu-latest":"ufc-ripper-linux-x64.zip"}')[ inputs.platform ] }}
TARGET_PLATFORM: ${{ fromJSON('{"windows-latest":"win32","ubuntu-latest":"linux"}')[ inputs.platform ] }}
steps:
# Checkout repo
Expand All @@ -43,7 +44,7 @@ jobs:
run: cargo build-${{ env.TARGET_PLATFORM }}
# Package app for release
- name: Package app
run: cargo pack-${{ env.TARGET_PLATFORM }}
run: cargo pack-${{ env.TARGET_PLATFORM }} --tag debug-${{ github.run_number }}
# Create Windows installer
- if: inputs.platform == 'windows-latest'
name: Create Windows installer
Expand Down

0 comments on commit 5c92c2a

Please sign in to comment.