Github actions: Get more windows deps, tidy up yml

This commit is contained in:
Jammyjamjamman 2021-06-18 01:24:22 +01:00
parent 6cc27462e6
commit 5b01dd4841
1 changed files with 13 additions and 5 deletions

View File

@ -77,17 +77,25 @@ jobs:
# Build your program with the given configuration
run: cmake --build ${{github.workspace}}/build --config Release --target ALL_BUILD
- name: Create Mega Glest Artifact
# Make a copy of 7z.exe and 7z.dll
run: |
cd mk/windoze
7z a -mx=9 megaglest-x64-snapshot.7z .\megaglest.exe .\megaglest_editor.exe .\megaglest_g3dviewer.exe .\glest.ini
$7zPath = $(Get-Command 7z).Source | Split-Path
$dllPath = Join-Path $7zPath 7z.dll
$exePath = Join-Path $path 7z.exe
cp $dllPath .
cp $exePath .
cd ../..
- name: Archive Mega Glest
- name: Create Mega Glest Snapshot
uses: actions/upload-artifact@v2
with:
name: megaglest-x64-snapshot
path: mk/windoze/megaglest-x64-snapshot.7z
path: |
mk/windoze/*.exe
mk/windoze/*.dll
mk/windoze/glest.ini
mk/shared/*.ini
# - name: Test
# working-directory: ${{github.workspace}}/build