-
Notifications
You must be signed in to change notification settings - Fork 476
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#231 Add Github action conf. for Mac app build
- Loading branch information
Showing
1 changed file
with
41 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
# MacOS build configuration | ||
|
||
name: MacOS | ||
|
||
# Controls when the action will run. Triggers the workflow on push or pull request | ||
# events but only for the master branch | ||
on: | ||
push: | ||
branches: [ master ] | ||
pull_request: | ||
branches: [ master ] | ||
|
||
jobs: | ||
build: | ||
runs-on: macos-10.15 | ||
steps: | ||
# Checkout, fetch-depth=0 fetches the full repos (required for automatic versioning to work) | ||
- uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Install dependencies | ||
run: | | ||
brew install sdl2 libusb | ||
pip3 install -e . | ||
pip3 install "pyqt5~=5.15.0" | ||
pip3 install git+https://github.com/marcelotduarte/cx_Freeze@bfa89fc010b3c | ||
- name: Build | ||
run: python3 setup.py bdist_mac | ||
|
||
- name: Archive | ||
run: | | ||
export VERSION=$(pip3 list | grep cfclient | awk '{print $2}') | ||
zip -r "build/cfclient_$VERSION.zip" "build/Crazyflie client.app" | ||
- name: Upload Build Artifact | ||
uses: actions/upload-artifact@v2.1.4 | ||
with: | ||
name: mac-build | ||
path: "build/*.zip" |