fix actions/upload-artifact generating tar bombs, change how

make_exe.bat works
This commit is contained in:
Tim Yuen 2022-09-10 16:55:47 -04:00
parent 1f3a01976b
commit d6062c9664
2 changed files with 25 additions and 7 deletions

View file

@ -6,7 +6,8 @@ on:
workflow_dispatch:
env:
dist-folder-path: dist/OpenSeeFace
dist-folder-path: dist/OpenSeeFace # The directory generated by PyInstaller
artifact-path: OpenSeeFace # Needed since upload-artifacts pulls files out of parent directories
jobs:
build-all:
@ -19,21 +20,38 @@ jobs:
- name: Pull OpenSeeFace
uses: actions/checkout@v3
- name: Create binary
- name: Create binary Unix
if: matrix.os != 'windows-latest'
shell: bash
run: |
chmod +x make_exe.sh
./make_exe.sh
- name: Create binary Windows
if: matrix.os == 'windows-latest'
shell: cmd
run: |
choco install vcredist140
xcopy c:\Windows\System32\msvcp140.dll .
xcopy c:\Windows\System32\vcomp140.dll .
xcopy c:\Windows\System32\concrt140.dll .
xcopy c:\Windows\System32\vccorlib140.dll .
make_exe.bat
- 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 }}
mkdir ${{ env.artifact-path }}
mv ${{ env.dist-folder-path }} ${{ env.artifact-path }}
- name: Upload artifact
uses: actions/upload-artifact@v3
with:
name: ${{ matrix.os }}
path: ${{ env.dist-folder-path }}
path: ${{ env.artifact-path }}
if-no-files-found: error