mirror of
https://github.com/xenia-project/xenia.git
synced 2025-12-06 07:12:03 +01:00
Add game patches to Canary artifacts+release
Also add release for canary_experimental+pr
This commit is contained in:
parent
81ca27575c
commit
6a4ad7c0a4
17
.github/workflows/CI.yml
vendored
17
.github/workflows/CI.yml
vendored
|
|
@ -2,7 +2,7 @@ name: CI
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches-ignore: [ gh-pages, master, canary_base ]
|
branches-ignore: [ gh-pages, master ]
|
||||||
paths-ignore:
|
paths-ignore:
|
||||||
- '.github/*'
|
- '.github/*'
|
||||||
- '.github/*_TEMPLATE/**'
|
- '.github/*_TEMPLATE/**'
|
||||||
|
|
@ -31,10 +31,10 @@ jobs:
|
||||||
matrix:
|
matrix:
|
||||||
runs-on: [windows-2019, windows-latest]
|
runs-on: [windows-2019, windows-latest]
|
||||||
include:
|
include:
|
||||||
- runs-on: windows-latest
|
|
||||||
vsver: VS2022
|
|
||||||
- runs-on: windows-2019
|
- runs-on: windows-2019
|
||||||
vsver: VS2019
|
vsver: VS2019
|
||||||
|
- runs-on: windows-latest
|
||||||
|
vsver: VS2022
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
with:
|
with:
|
||||||
|
|
@ -48,6 +48,8 @@ jobs:
|
||||||
robocopy . build\bin\${{ runner.os }}\Release LICENSE /r:0 /w:0
|
robocopy . build\bin\${{ runner.os }}\Release LICENSE /r:0 /w:0
|
||||||
robocopy build\bin\${{ runner.os }}\Release artifacts\xenia_canary xenia_canary.exe xenia_canary.pdb LICENSE /r:0 /w:0
|
robocopy build\bin\${{ runner.os }}\Release artifacts\xenia_canary xenia_canary.exe xenia_canary.pdb LICENSE /r:0 /w:0
|
||||||
robocopy build\bin\${{ runner.os }}\Release artifacts\xenia-vfs-dump xenia-vfs-dump.exe xenia-vfs-dump.pdb LICENSE /r:0 /w:0
|
robocopy build\bin\${{ runner.os }}\Release artifacts\xenia-vfs-dump xenia-vfs-dump.exe xenia-vfs-dump.pdb LICENSE /r:0 /w:0
|
||||||
|
curl -fLJO https://github.com/xenia-canary/game-patches/archive/refs/heads/main.zip
|
||||||
|
7z e game-patches-main.zip game-patches-main\patches -oartifacts\xenia_canary\patches
|
||||||
If ($LastExitCode -le 7) { echo "LastExitCode = $LastExitCode";$LastExitCode = 0 }
|
If ($LastExitCode -le 7) { echo "LastExitCode = $LastExitCode";$LastExitCode = 0 }
|
||||||
- name: Upload xenia-vfs-dump artifacts
|
- name: Upload xenia-vfs-dump artifacts
|
||||||
uses: actions/upload-artifact@v2
|
uses: actions/upload-artifact@v2
|
||||||
|
|
@ -66,7 +68,8 @@ jobs:
|
||||||
matrix.runs-on == 'windows-2019' &&
|
matrix.runs-on == 'windows-2019' &&
|
||||||
github.repository == 'xenia-canary/xenia-canary' &&
|
github.repository == 'xenia-canary/xenia-canary' &&
|
||||||
github.event.action != 'pull_request' &&
|
github.event.action != 'pull_request' &&
|
||||||
contains(github.ref, 'refs/heads/canary')
|
contains(github.ref, 'refs/heads/canary') &&
|
||||||
|
github.ref != 'refs/heads/canary_base'
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
run: |
|
run: |
|
||||||
|
|
@ -76,5 +79,9 @@ jobs:
|
||||||
Throw "Error: Archive $asset too small!"
|
Throw "Error: Archive $asset too small!"
|
||||||
}
|
}
|
||||||
$tag=$env:GITHUB_SHA.SubString(0,7)
|
$tag=$env:GITHUB_SHA.SubString(0,7)
|
||||||
$title="${tag}_$($env:GITHUB_REF -replace 'refs/heads/', '')"
|
$branch=$($env:GITHUB_REF -replace 'refs/heads/', '')
|
||||||
|
$title="${tag}_$branch"
|
||||||
gh release create $tag $asset --target $env:GITHUB_SHA -t $title
|
gh release create $tag $asset --target $env:GITHUB_SHA -t $title
|
||||||
|
gh release delete $branch -y
|
||||||
|
If ($LastExitCode -ne 0) { echo "LastExitCode = $LastExitCode";$LastExitCode = 0 }
|
||||||
|
gh release create $branch $asset --target $env:GITHUB_SHA -t $branch
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue