2019-09-18 07:44:46 +00:00
|
|
|
name: main
|
|
|
|
|
|
|
|
on: [push, pull_request]
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
runs-on: windows-latest
|
|
|
|
strategy:
|
|
|
|
matrix:
|
2019-10-20 20:51:32 +00:00
|
|
|
cpu_arch: [SSE2, AVX, AVX2, AVX512]
|
2019-09-18 07:44:46 +00:00
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@master
|
|
|
|
|
|
|
|
- name: Setup
|
|
|
|
run: xb setup
|
|
|
|
|
|
|
|
- name: Build
|
2019-10-20 20:51:32 +00:00
|
|
|
run: xb build --cpu_arch=${{matrix.cpu_arch}} --target=src\xenia-app --target=tests\xenia-cpu-ppc-tests --target=src\xenia-vfs-dump
|
2019-09-18 07:44:46 +00:00
|
|
|
|
2019-10-20 20:51:32 +00:00
|
|
|
- name: Prepare artifacts
|
2019-09-18 07:44:46 +00:00
|
|
|
run: |
|
2019-10-20 20:51:32 +00:00
|
|
|
robocopy build\bin\Windows\Release artifacts xenia.exe xenia-vfs-dump.exe
|
|
|
|
robocopy . artifacts LICENSE
|
|
|
|
if errorlevel 8 exit /b 1
|
|
|
|
exit /b 0
|
2019-09-18 07:44:46 +00:00
|
|
|
|
|
|
|
- uses: actions/upload-artifact@master
|
|
|
|
with:
|
2019-10-20 20:51:32 +00:00
|
|
|
name: xenia-canary-${{matrix.cpu_arch}}
|
2019-09-18 07:44:46 +00:00
|
|
|
path: artifacts
|