File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -29,25 +29,18 @@ jobs:
2929 run : cmake --build build --config Release
3030
3131 - name : Copy DLL into Java resources
32- shell : pwsh
3332 run : |
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
33+ mkdir -p src/main/resources/native
34+ copy build\ Release\ SMTC4J.dll src\ main\ resources\ native\ SMTC4J.dll
3635
3736 - name : Build Java JAR
3837 run : ./gradlew clean build
3938
40- - name : Get Gradle version
41- id : gradle_version
42- run : |
43- echo "VERSION=$(./gradlew -q printVersion)" >> $GITHUB_ENV
44-
4539 - name : Prepare release-artifacts folder
46- shell : pwsh
4740 run : |
48- New-Item -ItemType Directory -Path " release-artifacts" -Force
49- Copy-Item -Path " src/ main/ resources/ native/ SMTC4J.dll" -Destination " release-artifacts/SMTC4J.dll" -Force
50- Copy-Item -Path " build/libs/SMTC4J-$env:VERSION. jar" -Destination " release-artifacts/SMTC4J-$env:VERSION.jar" -Force
41+ mkdir -p release-artifacts
42+ copy src\ main\ resources\ native\ SMTC4J.dll release-artifacts/SMTC4J.dll
43+ copy build/libs/SMTC4J-${{ github.ref_name }}. jar release-artifacts/SMTC4J-${{ github.ref_name }}.jar
5144
5245 - name : List release artifacts
5346 run : dir release-artifacts
Original file line number Diff line number Diff line change @@ -19,12 +19,6 @@ java {
1919 }
2020}
2121
22- tasks. register(' printVersion' ) {
23- doLast {
24- println project. version
25- }
26- }
27-
2822def nativeDownloadDir = layout. buildDirectory. dir(" native-download" ). get(). asFile
2923def downloadedNativeDllFile = nativeDownloadDir. toPath(). resolve(" SMTC4J.dll" ). toFile()
3024def resourcesNativeDir = layout. buildDirectory. dir(" resources/main/native" ). get(). asFile
You can’t perform that action at this time.
0 commit comments