Update workflows
This commit is contained in:
@@ -11,7 +11,7 @@ env:
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: windows-2019
|
||||
runs-on: windows-2022
|
||||
strategy:
|
||||
matrix:
|
||||
platform:
|
||||
@@ -53,27 +53,28 @@ jobs:
|
||||
run: |
|
||||
msbuild -m -p:Configuration=${{ matrix.buildtype }} -p:Platform=${{ matrix.platform }} build/re3.sln
|
||||
|
||||
- name: Create gamefiles directory
|
||||
- name: Stage gamefiles (vanilla resources) + binaries
|
||||
shell: pwsh
|
||||
run: |
|
||||
New-Item -ItemType Directory -Path "gamefiles" -Force
|
||||
New-Item -ItemType Directory -Path "dist" -Force
|
||||
Copy-Item -Path "gamefiles/vanilla/*" -Destination "dist/" -Recurse -Force
|
||||
|
||||
- name: Copy binaries
|
||||
shell: pwsh
|
||||
run: |
|
||||
Move-Item -Path "bin/${{ matrix.platform }}/${{ matrix.buildtype }}/re3.exe" -Destination "gamefiles/" -Force
|
||||
Move-Item -Path "bin/${{ matrix.platform }}/${{ matrix.buildtype }}/re3.pdb" -Destination "gamefiles/" -Force
|
||||
Move-Item -Path "bin/${{ matrix.platform }}/${{ matrix.buildtype }}/re3.exe" -Destination "dist/" -Force
|
||||
Move-Item -Path "bin/${{ matrix.platform }}/${{ matrix.buildtype }}/re3.pdb" -Destination "dist/" -Force
|
||||
|
||||
- name: Copy OAL dependencies
|
||||
if: contains(matrix.platform, 'oal')
|
||||
shell: pwsh
|
||||
run: |
|
||||
Move-Item -Path "vendor/mpg123/dist/Win32/libmpg123-0.dll" -Destination "gamefiles/" -Force
|
||||
Move-Item -Path "vendor/openal-soft/dist/Win32/OpenAL32.dll" -Destination "gamefiles/" -Force
|
||||
Move-Item -Path "vendor/mpg123/dist/Win32/libmpg123-0.dll" -Destination "dist/" -Force
|
||||
Move-Item -Path "vendor/openal-soft/dist/Win32/OpenAL32.dll" -Destination "dist/" -Force
|
||||
|
||||
- name: Upload artifacts
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: re3_${{ matrix.buildtype }}_${{ matrix.platform }}
|
||||
path: gamefiles/*
|
||||
path: dist/*
|
||||
|
||||
|
||||
Reference in New Issue
Block a user