Skip to content

Commit a34328a

Browse files
committed
workflow change
1 parent bca3770 commit a34328a

2 files changed

Lines changed: 44 additions & 37 deletions

File tree

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
name: Build Windows Native + Jar
2+
3+
permissions:
4+
contents: write
5+
6+
on:
7+
push:
8+
tags:
9+
- 'v*'
10+
11+
jobs:
12+
build-windows:
13+
runs-on: windows-latest
14+
15+
steps:
16+
- name: Checkout
17+
uses: actions/checkout@v4
18+
19+
- name: Setup JDK
20+
uses: actions/setup-java@v4
21+
with:
22+
distribution: temurin
23+
java-version: 21
24+
25+
- name: Configure CMake
26+
run: cmake -S . -B build -A x64 -DCMAKE_BUILD_TYPE=Release
27+
28+
- name: Build DLL
29+
run: cmake --build build --config Release
30+
31+
- name: Copy DLL into resources
32+
run: |
33+
mkdir -p src/main/resources/native
34+
copy build\Release\SMTC4J.dll src\main\resources\native\SMTC4J.dll
35+
36+
- name: Build JAR
37+
run: ./gradlew clean build
38+
39+
- name: Publish JAR and DLL to GitHub Release
40+
uses: softprops/action-gh-release@v2
41+
with:
42+
files: |
43+
build/libs/SMTC4J-${{ github.ref_name }}.jar
44+
build/Release/SMTC4J.dll

.github/workflows/native-windows.yml

Lines changed: 0 additions & 37 deletions
This file was deleted.

0 commit comments

Comments
 (0)