From 986e9bb2003bcebbabf9dcb792ec58cb2270abaa Mon Sep 17 00:00:00 2001 From: Pearce Barry Date: Sun, 22 Sep 2024 14:58:40 -0700 Subject: [PATCH] Add macos builder for GH Actions --- .github/workflows/build.yml | 24 ++++++++++++++++++++++-- 1 file changed, 22 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index bbbaa91..6384fd7 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -2,7 +2,7 @@ name: Build Workflow on: push: - branches: main + branches: main jobs: build-windows: @@ -24,4 +24,24 @@ jobs: - uses: actions/upload-artifact@v3 with: name: DeepLabCut-Display - path: dist/DeepLabCut-Display.exe \ No newline at end of file + path: dist/DeepLabCut-Display.exe + build-macos: + runs-on: macos-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + - name: Install Python + uses: actions/setup-python@v4 + with: + python-version: '3.11' + architecture: 'arm64' + - name: Install requirements + run: | + pip install -r requirements.txt + - name: Run PyInstaller + run: | + python -m PyInstaller mainGUI.spec + - uses: actions/upload-artifact@v3 + with: + name: DeepLabCut-Display-macOS + path: dist/DeepLabCut-Display