Skip to content

Commit

Permalink
Matrix runner depends on BIN_COMMIT
Browse files Browse the repository at this point in the history
  • Loading branch information
alexroan committed May 31, 2024
1 parent 2b32f53 commit b3369b0
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ jobs:
PROJECT_NAME: aderyn
# Set the job to run on the platform specified by the matrix below
runs-on: ${{ matrix.runner }}
needs: bin_commit

# Define the build matrix for cross-compilation
strategy:
Expand Down Expand Up @@ -84,10 +85,10 @@ jobs:
BIN_OUTPUT="target/${{ matrix.target }}/release/${PROJECT_NAME}${BIN_SUFFIX}"

# Define a better name for the final binary
echo "BIN_COMMIT: $BIN_COMMIT"
echo "BIN_COMMIT: ${{ needs.bin_commit.outputs.bin_commit }}"
echo "PROJECT_NAME: $PROJECT_NAME"
echo "BIN_SUFFIX: $BIN_SUFFIX"
BIN_RELEASE_VERSIONED="${PROJECT_NAME}-${{ matrix.name }}-${BIN_COMMIT}${BIN_SUFFIX}"
BIN_RELEASE_VERSIONED="${PROJECT_NAME}-${{ matrix.name }}-${{ needs.bin_commit.outputs.bin_commit }}${BIN_SUFFIX}"
echo "BIN_RELEASE_VERSIONED: $BIN_RELEASE_VERSIONED"

# Move the built binary where you want it
Expand Down

0 comments on commit b3369b0

Please sign in to comment.