2424
2525env :
2626 GO_VERSION : " 1.23"
27- NODE_VERSION : " 20 "
27+ NODE_VERSION : " 24 "
2828 FLUTTER_VERSION : " 3.29.3"
2929
3030jobs :
@@ -44,11 +44,11 @@ jobs:
4444 echo "version=$VERSION" >> $GITHUB_OUTPUT
4545 echo "current version is $VERSION"
4646
47- build-macos-arm64 -lib :
47+ build-macos-x64 -lib :
4848 if : ${{ github.event_name == 'release' || github.event.inputs.platform == 'all' || github.event.inputs.platform == 'macos' }}
4949 needs :
5050 - get-version
51- runs-on : macos-latest
51+ runs-on : macos-15-intel
5252 steps :
5353 - name : Checkout
5454 uses : actions/checkout@v4
@@ -67,15 +67,15 @@ jobs:
6767 - name : Upload dylib
6868 uses : actions/upload-artifact@v4
6969 with :
70- name : macos-arm64 -lib
70+ name : macos-x64 -lib
7171 path : server/libserver.dylib
7272
7373 build-macos :
7474 if : ${{ github.event_name == 'release' || github.event.inputs.platform == 'all' || github.event.inputs.platform == 'macos' }}
7575 needs :
7676 - get-version
77- - build-macos-arm64 -lib
78- runs-on : macos-13
77+ - build-macos-x64 -lib
78+ runs-on : macos-15
7979 steps :
8080 - name : Checkout
8181 uses : actions/checkout@v4
@@ -101,25 +101,25 @@ jobs:
101101 python3 -m pip install setuptools --break-system-packages
102102 npm install -g appdmg
103103
104- - name : Download arm64 dylib
104+ - name : Download x64 dylib
105105 uses : actions/download-artifact@v4
106106 with :
107- name : macos-arm64 -lib
108- path : server/arm64
107+ name : macos-x64 -lib
108+ path : server/x64
109109
110- - name : Build amd64 dylib
110+ - name : Build arm64 dylib
111111 run : |
112112 cd server
113113 go build -ldflags="-w -s -X github.com/honmaple/maple-file/server/internal/app.VERSION=${{ needs.get-version.outputs.version }}" -buildmode=c-shared -o libserver.dylib github.com/honmaple/maple-file/server/cmd/desktop
114114
115115 - name : Create dylib
116116 run : |
117117 mkdir -p app/macos/Frameworks
118- cp server/libserver.dylib app/macos/Frameworks/amd64 -lib
119- cp server/arm64 /libserver.dylib app/macos/Frameworks/arm64 -lib
118+ cp server/libserver.dylib app/macos/Frameworks/arm64 -lib
119+ cp server/x64 /libserver.dylib app/macos/Frameworks/x64 -lib
120120
121121 cd app/macos/Frameworks
122- lipo -create -output libserver.dylib amd64 -lib arm64 -lib
122+ lipo -create -output libserver.dylib arm64 -lib x64 -lib
123123
124124 - name : Build dmg
125125 run : |
@@ -195,7 +195,7 @@ jobs:
195195 if : ${{ github.event_name == 'release' || github.event.inputs.platform == 'all' || github.event.inputs.platform == 'ios' }}
196196 needs :
197197 - get-version
198- runs-on : macos-latest
198+ runs-on : macos-15
199199
200200 steps :
201201 - name : Checkout
0 commit comments