Skip to content

Commit

Permalink
#231 Add Github action conf. for Mac app build
Browse files Browse the repository at this point in the history
  • Loading branch information
ataffanel authored Sep 26, 2020
1 parent d2708e2 commit 128f1da
Showing 1 changed file with 41 additions and 0 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/mac.yml
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"

0 comments on commit 128f1da

Please sign in to comment.