parent
af4e3908b4
commit
332e8c0cbb
|
@ -21,55 +21,56 @@ on:
|
||||||
- 'LICENSE'
|
- 'LICENSE'
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build-windows:
|
build:
|
||||||
runs-on: windows-latest
|
runs-on: windows-latest
|
||||||
env:
|
|
||||||
POWERSHELL_TELEMETRY_OPTOUT: 1
|
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
cpu_arch: [ AVX, AVX2, AVX512 ]
|
cpu_arch: [AVX, AVX2, AVX512]
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
|
|
||||||
- name: Setup
|
- name: Setup
|
||||||
run: .\xb setup
|
run: .\xb setup
|
||||||
|
|
||||||
- name: Build
|
- name: Build
|
||||||
run: .\xb build --cpu_arch=${{ matrix.cpu_arch }} --config=Release --target=src\xenia-app --target=src\xenia-vfs-dump
|
run: .\xb build --cpu_arch=${{ matrix.cpu_arch }} --config=Release --target=src\xenia-app --target=src\xenia-vfs-dump
|
||||||
|
|
||||||
- name: Prepare artifacts
|
- name: Prepare artifacts
|
||||||
run: |
|
run: |
|
||||||
robocopy . build\bin\${{ runner.os }}\Release LICENSE /r:0 /w:0
|
robocopy build\bin\Windows\Release artifacts xenia*.exe
|
||||||
robocopy build\bin\${{ runner.os }}\Release artifacts\xenia_canary xenia_canary.exe xenia_canary.pdb LICENSE /r:0 /w:0
|
robocopy . artifacts LICENSE
|
||||||
robocopy build\bin\${{ runner.os }}\Release artifacts\xenia-vfs-dump xenia-vfs-dump.exe xenia-vfs-dump.pdb LICENSE /r:0 /w:0
|
$LastExitCode = 0
|
||||||
If ($LastExitCode -le 7) { echo "LastExitCode = $LastExitCode";$LastExitCode = 0 }
|
cd artifacts
|
||||||
7z a -mx1 xenia_canary.zip .\artifacts\xenia_canary\*.exe LICENSE
|
7z a ..\xenia_canary.zip LICENSE xenia_canary.exe
|
||||||
echo "::set-env name=short_commit_sha::$(git rev-parse --short HEAD)"
|
- uses: actions/upload-artifact@master
|
||||||
- name: Upload xenia-vfs-dump artifacts
|
|
||||||
uses: actions/upload-artifact@v2
|
|
||||||
if: matrix.cpu_arch == 'AVX'
|
|
||||||
with:
|
with:
|
||||||
name: xenia-vfs-dump_canary
|
name: xenia-canary-${{matrix.cpu_arch}}
|
||||||
path: artifacts\xenia-vfs-dump
|
path: artifacts
|
||||||
- name: Upload xenia artifacts
|
|
||||||
uses: actions/upload-artifact@v2
|
- name: Create Release
|
||||||
with:
|
if: github.event.action != 'pull_request' && matrix.cpu_arch == 'AVX'
|
||||||
name: xenia_canary_${{ matrix.cpu_arch }}
|
|
||||||
path: artifacts\xenia
|
|
||||||
- uses: actions/create-release@v1
|
|
||||||
if: github.event.action != 'pull_request' && github.ref == 'refs/heads/canary' && matrix.cpu_arch == 'AVX'
|
|
||||||
id: create_release
|
id: create_release
|
||||||
|
uses: actions/create-release@v1
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
|
||||||
with:
|
with:
|
||||||
tag_name: ${{ env.short_commit_sha }}
|
tag_name: tag-${{github.sha}}
|
||||||
release_name: xenia_canary_${{ env.short_commit_sha }}
|
release_name: xenia-canary-${{github.sha}}
|
||||||
- uses: actions/upload-release-asset@v1
|
body: |
|
||||||
if: github.event.action != 'pull_request' && github.ref == 'refs/heads/canary' && matrix.cpu_arch == 'AVX'
|
Changes in this Release
|
||||||
|
- First Change
|
||||||
|
- Second Change
|
||||||
|
- name: Upload Release Asset
|
||||||
|
if: github.event.action != 'pull_request' && matrix.cpu_arch == 'AVX'
|
||||||
|
id: upload-release-asset
|
||||||
|
uses: actions/upload-release-asset@v1.0.1
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
|
||||||
with:
|
with:
|
||||||
upload_url: ${{ steps.create_release.outputs.upload_url }}
|
upload_url: ${{steps.create_release.outputs.upload_url}}
|
||||||
asset_path: xenia_canary.zip
|
asset_path: ./xenia_canary.zip
|
||||||
asset_name: xenia_canary.zip
|
asset_name: xenia_canary.zip
|
||||||
asset_content_type: application/zip
|
asset_content_type: application/zip
|
Loading…
Reference in New Issue