Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 55334ba

Browse files
committedJun 4, 2024
win build
1 parent 29aac8d commit 55334ba

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed
 

‎.github/workflows/build.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -347,6 +347,15 @@ jobs:
347347
name: php${{ matrix.php-version }}-${{ matrix.target }}
348348
path: target/php${{ matrix.php-version }}-${{ matrix.target }}-${{ env.EXTENSION_NAME }}.dll
349349

350+
- name: Get Cargo Version
351+
id: cargo_version
352+
run: |
353+
$content = Get-Content -Path .\Cargo.toml
354+
$versionLine = $content | Select-String -Pattern '^version =' | Select-Object -First 1
355+
$version = $versionLine -replace 'version = "', '' -replace '"', ''
356+
echo "VERSION=$version" | Out-File -FilePath $env:GITHUB_ENV -Append
357+
shell: pwsh
358+
350359
- name: Create GitHub Release
351360
id: create_release
352361
uses: softprops/action-gh-release@v2

0 commit comments

Comments
 (0)
Please sign in to comment.