From 1f3a01976b003630cf488e611a27b9d7272e1d03 Mon Sep 17 00:00:00 2001 From: Tim Yuen Date: Fri, 9 Sep 2022 21:32:13 -0400 Subject: [PATCH] add build workflow for windows, mac, and linux --- .github/workflows/create-binaries.yaml | 39 ++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 .github/workflows/create-binaries.yaml diff --git a/.github/workflows/create-binaries.yaml b/.github/workflows/create-binaries.yaml new file mode 100644 index 0000000..352f345 --- /dev/null +++ b/.github/workflows/create-binaries.yaml @@ -0,0 +1,39 @@ +name: Package using PyInstaller +on: + push: + tags: + - v** + workflow_dispatch: + +env: + dist-folder-path: dist/OpenSeeFace + +jobs: + build-all: + strategy: + fail-fast: false + matrix: + os: [windows-latest, ubuntu-latest, macos-latest] + runs-on: ${{ matrix.os }} + steps: + - name: Pull OpenSeeFace + uses: actions/checkout@v3 + + - name: Create binary + shell: bash + run: | + chmod +x make_exe.sh + ./make_exe.sh + + - name: Move and zip files + shell: bash # Using bash for all OSs should be fine, even on Windows + run: | + mv dist/facetracker ${{ env.dist-folder-path }} + cp -r models ${{ env.dist-folder-path }} + + - name: Upload artifact + uses: actions/upload-artifact@v3 + with: + name: ${{ matrix.os }} + path: ${{ env.dist-folder-path }} + if-no-files-found: error