File tree Expand file tree Collapse file tree 7 files changed +50
-2
lines changed
Expand file tree Collapse file tree 7 files changed +50
-2
lines changed Original file line number Diff line number Diff line change 55 tags :
66 - ' **'
77
8+ env :
9+ NATIVE_LIBS_DIR : ${{ github.workspace }}/build/nativeLibs
10+
811jobs :
12+ build-native :
13+ runs-on : ${{ matrix.os }}
14+ strategy :
15+ matrix :
16+ include :
17+ - os : ubuntu-latest
18+ command : bash linuxlib/build.sh
19+ - os : macos-latest
20+ command : bash maclib/build.sh
21+ - os : windows-latest
22+ command : cmd /c winlib/build.bat
23+
24+ steps :
25+ - uses : actions/checkout@v4
26+ with :
27+ submodules : recursive
28+
29+ - name : Build native binary
30+ run : ${{ matrix.command }}
31+ env :
32+ NATIVE_LIBS_OUTPUT_DIR : ${{ env.NATIVE_LIBS_DIR }}
33+
34+ - name : Upload native binaries
35+ uses : actions/upload-artifact@v4
36+ with :
37+ name : nativeLibs-${{ matrix.os }}
38+ path : ${{ env.NATIVE_LIBS_DIR }}/**
39+
940 publish :
41+ needs : [ "build-native" ]
1042 runs-on : macos-latest
1143
1244 steps :
1345 - name : Checkout code
1446 uses : actions/checkout@v3
1547
48+ - name : Download all native binaries
49+ uses : actions/download-artifact@v4
50+ with :
51+ name : nativeLibs-*
52+ path : ${{ env.NATIVE_LIBS_DIR }}
53+ merge-multiple : true
54+
55+ - name : Copy native libs into src/commonMain/resources/
56+ run : |
57+ mkdir -p src/commonMain/resources/
58+ cp -r ${{ env.NATIVE_LIBS_DIR }}/* src/commonMain/resources/
59+
1660 - name : Set up JDK
1761 uses : actions/setup-java@v3
1862 with :
2771 ORG_GRADLE_PROJECT_signingInMemoryKey : ${{ secrets.SIGNINGINMEMORYKEY }}
2872 ORG_GRADLE_PROJECT_signingInMemoryKeyId : ${{ secrets.SIGNINGKEYID }}
2973 ORG_GRADLE_PROJECT_signingInMemoryKeyPassword : ${{ secrets.SIGNINGPASSWORD }}
30-
Original file line number Diff line number Diff line change 4848tray_position.properties
4949
5050linuxlib /build-x86-64
51- linuxlibdbus /build-x86-64
51+ linuxlibdbus /build-x86-64
52+
53+ # don't commit compiled native binaries
54+ src /commonMain /resources /** /* .so
55+ src /commonMain /resources /** /* .dll
56+ src /commonMain /resources /** /* .dylib
You can’t perform that action at this time.
0 commit comments