Skip to content

Commit af6a111

Browse files
committed
🚀 macos m1
1 parent 17b1d75 commit af6a111

File tree

1 file changed

+45
-0
lines changed

1 file changed

+45
-0
lines changed

.github/workflows/build.yml

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,51 @@
113113
name: ${{env.APP_NAME}}-${{env.APP_VERSION}}-macOS.zip
114114
path: ${{env.APP_NAME}}-${{env.APP_VERSION}}-macOS.zip
115115

116+
## macOS build ###############################################################
117+
build-mac-arm:
118+
name: "macOS ARM CI build"
119+
runs-on: macos-13-xlarge
120+
steps:
121+
# Checkout repository (and submodules)
122+
- name: Checkout repository (and submodules)
123+
uses: actions/checkout@v4
124+
with:
125+
submodules: recursive
126+
127+
# Install dependencies (from package manager)
128+
#- name: Install dependencies (from package manager)
129+
# run: |
130+
# brew install qt6 cmake
131+
132+
# Install Qt
133+
- name: Install Qt
134+
uses: jurplel/install-qt-action@v3
135+
with:
136+
version: ${{env.QT_VERSION}}
137+
138+
# Setup env
139+
- name: Setup env
140+
run: |
141+
cmake --version
142+
143+
# Build application
144+
- name: Build application
145+
run: |
146+
export CMAKE_BUILD_PARALLEL_LEVEL=`sysctl -n hw.logicalcpu`
147+
cmake -B build/ -DCMAKE_BUILD_TYPE=Release
148+
cmake --build build/ --config Release --target all
149+
150+
# Deploy application
151+
- name: Deploy application
152+
run: ./deploy_macos.sh -c -p
153+
154+
# Upload application ZIP
155+
- name: Upload application ZIP
156+
uses: actions/upload-artifact@v4
157+
with:
158+
name: ${{env.APP_NAME}}-${{env.APP_VERSION}}-macOS.zip
159+
path: ${{env.APP_NAME}}-${{env.APP_VERSION}}-macOS.zip
160+
116161
## Windows build #############################################################
117162
build-windows:
118163
name: "Windows CI build"

0 commit comments

Comments
 (0)