Skip to content

Commit

Permalink
🚀 macos m1
Browse files Browse the repository at this point in the history
  • Loading branch information
Reverier-Xu committed Apr 8, 2024
1 parent 17b1d75 commit af6a111
Showing 1 changed file with 45 additions and 0 deletions.
45 changes: 45 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,51 @@
name: ${{env.APP_NAME}}-${{env.APP_VERSION}}-macOS.zip
path: ${{env.APP_NAME}}-${{env.APP_VERSION}}-macOS.zip

## macOS build ###############################################################
build-mac-arm:
name: "macOS ARM CI build"
runs-on: macos-13-xlarge
steps:
# Checkout repository (and submodules)
- name: Checkout repository (and submodules)
uses: actions/checkout@v4
with:
submodules: recursive

# Install dependencies (from package manager)
#- name: Install dependencies (from package manager)
# run: |
# brew install qt6 cmake

# Install Qt
- name: Install Qt
uses: jurplel/install-qt-action@v3
with:
version: ${{env.QT_VERSION}}

# Setup env
- name: Setup env
run: |
cmake --version
# Build application
- name: Build application
run: |
export CMAKE_BUILD_PARALLEL_LEVEL=`sysctl -n hw.logicalcpu`
cmake -B build/ -DCMAKE_BUILD_TYPE=Release
cmake --build build/ --config Release --target all
# Deploy application
- name: Deploy application
run: ./deploy_macos.sh -c -p

# Upload application ZIP
- name: Upload application ZIP
uses: actions/upload-artifact@v4
with:
name: ${{env.APP_NAME}}-${{env.APP_VERSION}}-macOS.zip
path: ${{env.APP_NAME}}-${{env.APP_VERSION}}-macOS.zip

## Windows build #############################################################
build-windows:
name: "Windows CI build"
Expand Down

0 comments on commit af6a111

Please sign in to comment.