File tree Expand file tree Collapse file tree 2 files changed +25
-1
lines changed Expand file tree Collapse file tree 2 files changed +25
-1
lines changed Original file line number Diff line number Diff line change 91
91
qwprogs.*
92
92
compression-level : 9
93
93
94
+ build-macos :
95
+ runs-on : macos-latest
96
+ timeout-minutes : 10
97
+ steps :
98
+ - name : Checkout
99
+ uses : actions/checkout@v4
100
+
101
+ - name : Build
102
+ run : |
103
+ ./build_cmake.sh macos
104
+ mv build/macos/qwprogs.dylib .
105
+
106
+ - uses : actions/upload-artifact@v4
107
+ with :
108
+ name : qwprogs-macos-universal
109
+ path : |
110
+ qwprogs.dylib
111
+ compression-level : 9
112
+
94
113
upload :
95
- needs : build
114
+ needs : [ build, build-macos]
96
115
timeout-minutes : 10
97
116
runs-on : ubuntu-latest
98
117
if : github.repository == 'QW-Group/ktx' && ((github.event_name == 'push' && github.ref == 'refs/heads/master') || github.event_name == 'release')
Original file line number Diff line number Diff line change @@ -15,6 +15,7 @@ DEFAULT_PLATFORMS=(
15
15
windows-x64
16
16
windows-x86
17
17
qvm
18
+ # macos, no cross-compilation
18
19
)
19
20
PLATFORMS=(" ${@:- ${DEFAULT_PLATFORMS[@]} } " )
20
21
@@ -50,6 +51,10 @@ for name in "${PLATFORMS[@]}"; do
50
51
cmake -B " ${P} " -S . ${BOT_SUPPORT} ${BUILD}
51
52
cmake --build " ${P} " --target qvm ${V}
52
53
;;
54
+ " macos" )
55
+ cmake -B " ${P} " -S . -DCMAKE_OSX_ARCHITECTURES=" arm64;x86_64" ${BOT_SUPPORT} ${BUILD}
56
+ cmake --build " ${P} " ${V}
57
+ ;;
53
58
* ) # Build native library.
54
59
cmake -B " ${P} " -S . ${BOT_SUPPORT} ${BUILD} -DCMAKE_TOOLCHAIN_FILE=" tools/cross-cmake/${name} .cmake"
55
60
cmake --build " ${P} " ${V}
You can’t perform that action at this time.
0 commit comments