Skip to content

Commit 3edec9a

Browse files
committed
please work
1 parent c5f0c41 commit 3edec9a

1 file changed

Lines changed: 7 additions & 6 deletions

File tree

.github/workflows/build-release.yml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -29,19 +29,20 @@ jobs:
2929
run: cmake --build build --config Release
3030

3131
- name: Copy DLL into Java resources
32+
shell: pwsh
3233
run: |
33-
mkdir -p src/main/resources/native
34-
copy build\Release\SMTC4J.dll src\main\resources\native\SMTC4J.dll
35-
copy build\Release\SMTC4J.dll .
34+
New-Item -ItemType Directory -Path "src/main/resources/native" -Force
35+
Copy-Item -Path "build/Release/SMTC4J.dll" -Destination "src/main/resources/native/SMTC4J.dll" -Force
3636
3737
- name: Build Java JAR
3838
run: ./gradlew clean build
3939

4040
- name: Prepare release-artifacts folder
41+
shell: pwsh
4142
run: |
42-
mkdir release-artifacts
43-
copy build\Release\SMTC4J.dll release-artifacts\
44-
copy build/libs/SMTC4J-${GITHUB_REF_NAME}.jar release-artifacts\
43+
New-Item -ItemType Directory -Path "release-artifacts" -Force
44+
Copy-Item -Path "build/Release/SMTC4J.dll" -Destination "release-artifacts/SMTC4J.dll" -Force
45+
Copy-Item -Path "build/libs/SMTC4J-${GITHUB_REF_NAME}.jar" -Destination "release-artifacts/SMTC4J.jar" -Force
4546
4647
- name: List release artifacts
4748
run: dir release-artifacts

0 commit comments

Comments
 (0)