[CI] Add GitHub Actions

This commit is contained in:
Margen67 2019-09-18 00:44:46 -07:00 committed by illusion98
parent 7a7c44b0b7
commit 7b21e4126b
1 changed files with 34 additions and 0 deletions

34
.github/workflows/main.yml vendored Normal file
View File

@ -0,0 +1,34 @@
name: main
on: [push, pull_request]
jobs:
build:
runs-on: windows-latest
strategy:
matrix:
configuration: [Release]
platform: [Windows]
steps:
- uses: actions/checkout@master
- name: Setup
run: xb setup
- name: Build
run: xb build --config=${{matrix.configuration}} --target=src\xenia-app --target=tests\xenia-cpu-ppc-tests --target=src\xenia-vfs-dump
- name: After build
run: |
7z a artifacts\xenia-%appveyor_repo_branch%.zip LICENSE %GITHUB_WORKSPACE%\build\bin\${{matrix.platform}}\${{matrix.configuration}}\xenia.exe %GITHUB_WORKSPACE%\build\bin\${{matrix.platform}}\${{matrix.configuration}}\xenia.pdb
7z a artifacts\xenia-vfs-dump-%appveyor_repo_branch%.zip LICENSE %GITHUB_WORKSPACE%\build\bin\${{matrix.platform}}\${{matrix.configuration}}\xenia-vfs-dump.exe %GITHUB_WORKSPACE%\build\bin\${{matrix.platform}}\${{matrix.configuration}}\xenia-vfs-dump.pdb
- name: Tests
run: |
xb gentests
xb.bat test --config=${{matrix.configuration}} --no_build
- uses: actions/upload-artifact@master
with:
name: xenia-${{matrix.configuration}}
path: artifacts