add build workflow for windows, mac, and linux
This commit is contained in:
parent
1825b2e67e
commit
1f3a01976b
1 changed files with 39 additions and 0 deletions
39
.github/workflows/create-binaries.yaml
vendored
Normal file
39
.github/workflows/create-binaries.yaml
vendored
Normal file
|
|
@ -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
|
||||
Loading…
Add table
Add a link
Reference in a new issue