Skip to content

Commit 3bcb1c8

Browse files
CopilotThihup
andcommitted
Quote Gradle parameters to fix Windows parsing
- Add quotes around -PwgpuVersion and -Pos parameters - Fixes issue where version strings with periods (v27.0.4.0) were being incorrectly parsed on Windows - Prevents "Task '.0.4.0' not found" error Co-authored-by: Thihup <13357965+Thihup@users.noreply.github.com>
1 parent 8c1c112 commit 3bcb1c8

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

.github/workflows/build-and-publish-bindings.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -78,16 +78,16 @@ jobs:
7878
gradle-version: wrapper
7979

8080
- name: Download natives
81-
run: ${{ matrix.gradle_cmd }} -PwgpuVersion=${{ inputs.wgpuVersion }} -Pos=${{ matrix.os_name }} :natives:download
81+
run: ${{ matrix.gradle_cmd }} "-PwgpuVersion=${{ inputs.wgpuVersion }}" "-Pos=${{ matrix.os_name }}" :natives:download
8282

8383
- name: Extract natives
84-
run: ${{ matrix.gradle_cmd }} -PwgpuVersion=${{ inputs.wgpuVersion }} -Pos=${{ matrix.os_name }} :natives:unzip
84+
run: ${{ matrix.gradle_cmd }} "-PwgpuVersion=${{ inputs.wgpuVersion }}" "-Pos=${{ matrix.os_name }}" :natives:unzip
8585

8686
- name: Copy headers
87-
run: ${{ matrix.gradle_cmd }} -PwgpuVersion=${{ inputs.wgpuVersion }} -Pos=${{ matrix.os_name }} ':natives:copyWgpuHeaders'
87+
run: ${{ matrix.gradle_cmd }} "-PwgpuVersion=${{ inputs.wgpuVersion }}" "-Pos=${{ matrix.os_name }}" ':natives:copyWgpuHeaders'
8888

8989
- name: Generate bindings
90-
run: ${{ matrix.gradle_cmd }} -PwgpuVersion=${{ inputs.wgpuVersion }} -Pjextract.home=${{ env.JEXTRACT_HOME }} :lib:bindings
90+
run: ${{ matrix.gradle_cmd }} "-PwgpuVersion=${{ inputs.wgpuVersion }}" "-Pjextract.home=${{ env.JEXTRACT_HOME }}" :lib:bindings
9191

9292
- name: Publish bindings as artifact
9393
uses: actions/upload-artifact@v4
@@ -96,7 +96,7 @@ jobs:
9696
path: lib/build/webgpu.jar
9797

9898
- name: Publish bindings to GH packages
99-
run: ${{ matrix.gradle_cmd }} -PwgpuVersion=${{ inputs.wgpuVersion }} :lib:publish
99+
run: ${{ matrix.gradle_cmd }} "-PwgpuVersion=${{ inputs.wgpuVersion }}" :lib:publish
100100
env:
101101
GITHUB_USER: ${{ github.actor }}
102102
GITHUB_TOKEN: ${{ secrets.PKG_PUBLISHING_AUTH_TOKEN }}

0 commit comments

Comments
 (0)