File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -15,11 +15,14 @@ jobs:
1515 matrix :
1616 include :
1717 - os : ubuntu-latest
18- command : bash linuxlib/build.sh
18+ command : |
19+ cd linuxlib && bash build.sh
1920 - os : macos-latest
20- command : bash maclib/build.sh
21+ command : |
22+ cd maclib && bash build.sh
2123 - os : windows-latest
22- command : cmd /c winlib/build.bat
24+ command : |
25+ cd winlib && cmd /c build.bat
2326
2427 steps :
2528 - uses : actions/checkout@v4
4851 - name : Download all native binaries
4952 uses : actions/download-artifact@v4
5053 with :
51- name : nativeLibs-*
54+ pattern : nativeLibs-*
5255 path : ${{ env.NATIVE_LIBS_DIR }}
5356 merge-multiple : true
5457
Original file line number Diff line number Diff line change 55
66echo " Building MacTray library..."
77
8+ OUTPUT_DIR=" ${NATIVE_LIBS_OUTPUT_DIR} "
9+ echo " output dir for mac is: $OUTPUT_DIR "
10+
811echo " Building for ARM64 (Apple Silicon)..."
912
10- swiftc -emit-library -o ../src/commonMain/resources/darwin-aarch64/libMacTray.dylib \
13+ mkdir -p " $OUTPUT_DIR /darwin-aarch64"
14+ mkdir -p " $OUTPUT_DIR /darwin-x86-64"
15+
16+ swiftc -emit-library -o " $OUTPUT_DIR /darwin-aarch64/libMacTray.dylib" \
1117 -module-name MacTray \
1218 -swift-version 5 \
1319 -target arm64-apple-macosx11.0 \
@@ -20,7 +26,7 @@ swiftc -emit-library -o ../src/commonMain/resources/darwin-aarch64/libMacTray.dy
2026
2127echo " Building for x86_64 (Intel)..."
2228
23- swiftc -emit-library -o ../src/commonMain/resources/ darwin-x86-64/libMacTray.dylib \
29+ swiftc -emit-library -o " $OUTPUT_DIR / darwin-x86-64/libMacTray.dylib" \
2430 -module-name MacTray \
2531 -swift-version 5 \
2632 -target x86_64-apple-macosx11.0 \
@@ -31,4 +37,4 @@ swiftc -emit-library -o ../src/commonMain/resources/darwin-x86-64/libMacTray.dyl
3137 -Xlinker -rpath -Xlinker @loader_path/Frameworks \
3238 tray.swift
3339
34- echo " Build completed successfully."
40+ echo " Build completed successfully."
You can’t perform that action at this time.
0 commit comments