Skip to content

Commit cc7fb67

Browse files
committed
ich fick doch alles
1 parent 48d26e9 commit cc7fb67

2 files changed

Lines changed: 5 additions & 18 deletions

File tree

.github/workflows/build-release.yml

Lines changed: 5 additions & 12 deletions
Original file line numberDiff line numberDiff 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

build.gradle

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,6 @@ java {
1919
}
2020
}
2121

22-
tasks.register('printVersion') {
23-
doLast {
24-
println project.version
25-
}
26-
}
27-
2822
def nativeDownloadDir = layout.buildDirectory.dir("native-download").get().asFile
2923
def downloadedNativeDllFile = nativeDownloadDir.toPath().resolve("SMTC4J.dll").toFile()
3024
def resourcesNativeDir = layout.buildDirectory.dir("resources/main/native").get().asFile

0 commit comments

Comments
 (0)