Skip to content

Commit

Permalink
ci: tune version extraction on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
torkelrogstad committed Nov 9, 2024
1 parent 86c7628 commit 2430109
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/build-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -122,8 +122,10 @@ jobs:
- name: 'Set environment variables: version number'
shell: bash
# This command is a bit different than macOS and Linux, because the Windows version of
# `grep` doesn't have the `-P` option.
run: |
BITCOIN_PATCHED_VERSION=$(grep -oP "(?<=^CMAKE_PROJECT_VERSION:STATIC=).+(?=)" build/CMakeCache.txt)
BITCOIN_PATCHED_VERSION=$(grep CMAKE_PROJECT_VERSION:STATIC build/CMakeCache.txt | cut -d = -f=1)
echo "BITCOIN_PATCHED_VERSION=$BITCOIN_PATCHED_VERSION" >> "$GITHUB_ENV"
- uses: actions/upload-artifact@v4
Expand Down

0 comments on commit 2430109

Please sign in to comment.