|
16 | 16 | distribution: 'temurin' |
17 | 17 | java-version: '21' |
18 | 18 |
|
| 19 | + - name: Setup MSVC |
| 20 | + uses: ilammy/msvc-dev-cmd@v1 |
| 21 | + |
19 | 22 | - name: Build darkmode-detector Windows native DLLs |
20 | 23 | shell: cmd |
21 | 24 | run: call darkmode-detector\src\main\native\windows\build.bat |
@@ -226,6 +229,27 @@ jobs: |
226 | 229 | path: decorated-window-core/src/main/resources/nucleus/native/win32-*/ |
227 | 230 | retention-days: 1 |
228 | 231 |
|
| 232 | + - name: Build system-info Windows DLLs |
| 233 | + shell: cmd |
| 234 | + run: call system-info\src\main\native\windows\build.bat |
| 235 | + |
| 236 | + - name: Verify system-info Windows natives |
| 237 | + shell: bash |
| 238 | + run: | |
| 239 | + for f in \ |
| 240 | + system-info/src/main/resources/nucleus/native/win32-x64/nucleus_system_info.dll \ |
| 241 | + system-info/src/main/resources/nucleus/native/win32-aarch64/nucleus_system_info.dll; do |
| 242 | + if [ ! -f "$f" ]; then echo "MISSING: $f" >&2; exit 1; fi |
| 243 | + echo "OK: $f ($(wc -c < "$f") bytes)" |
| 244 | + done |
| 245 | +
|
| 246 | + - name: Upload system-info Windows DLLs |
| 247 | + uses: actions/upload-artifact@v4 |
| 248 | + with: |
| 249 | + name: system-info-windows |
| 250 | + path: system-info/src/main/resources/nucleus/native/win32-*/ |
| 251 | + retention-days: 1 |
| 252 | + |
229 | 253 | macos: |
230 | 254 | runs-on: macos-latest |
231 | 255 | steps: |
@@ -466,6 +490,25 @@ jobs: |
466 | 490 | path: decorated-window-core/src/main/resources/nucleus/native/darwin-*/ |
467 | 491 | retention-days: 1 |
468 | 492 |
|
| 493 | + - name: Build system-info macOS dylibs |
| 494 | + run: bash system-info/src/main/native/macos/build.sh |
| 495 | + |
| 496 | + - name: Verify system-info macOS natives |
| 497 | + run: | |
| 498 | + for f in \ |
| 499 | + system-info/src/main/resources/nucleus/native/darwin-aarch64/libnucleus_system_info.dylib \ |
| 500 | + system-info/src/main/resources/nucleus/native/darwin-x64/libnucleus_system_info.dylib; do |
| 501 | + if [ ! -f "$f" ]; then echo "MISSING: $f" >&2; exit 1; fi |
| 502 | + echo "OK: $f ($(wc -c < "$f") bytes)" |
| 503 | + done |
| 504 | +
|
| 505 | + - name: Upload system-info macOS dylibs |
| 506 | + uses: actions/upload-artifact@v4 |
| 507 | + with: |
| 508 | + name: system-info-macos |
| 509 | + path: system-info/src/main/resources/nucleus/native/darwin-*/ |
| 510 | + retention-days: 1 |
| 511 | + |
469 | 512 | linux: |
470 | 513 | runs-on: ${{ matrix.os }} |
471 | 514 | strategy: |
@@ -617,6 +660,22 @@ jobs: |
617 | 660 | path: decorated-window-core/src/main/resources/nucleus/native/linux-*/ |
618 | 661 | retention-days: 1 |
619 | 662 |
|
| 663 | + - name: Build system-info Linux native shared library |
| 664 | + run: bash system-info/src/main/native/linux/build.sh |
| 665 | + |
| 666 | + - name: Verify system-info Linux native |
| 667 | + run: | |
| 668 | + f="system-info/src/main/resources/nucleus/native/linux-${{ matrix.arch }}/libnucleus_system_info.so" |
| 669 | + if [ ! -f "$f" ]; then echo "MISSING: $f" >&2; exit 1; fi |
| 670 | + echo "OK: $f ($(wc -c < "$f") bytes)" |
| 671 | +
|
| 672 | + - name: Upload system-info Linux shared library |
| 673 | + uses: actions/upload-artifact@v4 |
| 674 | + with: |
| 675 | + name: system-info-linux-${{ matrix.arch }} |
| 676 | + path: system-info/src/main/resources/nucleus/native/linux-*/ |
| 677 | + retention-days: 1 |
| 678 | + |
620 | 679 | - name: Build global-hotkey Linux native shared library |
621 | 680 | run: bash global-hotkey/src/main/native/linux/build.sh |
622 | 681 |
|
|
0 commit comments