From 7b21e4126b8ea9ae5e1b3d876d9e20af9383a529 Mon Sep 17 00:00:00 2001 From: Margen67 Date: Wed, 18 Sep 2019 00:44:46 -0700 Subject: [PATCH] [CI] Add GitHub Actions --- .github/workflows/main.yml | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 000000000..347f0c553 --- /dev/null +++ b/.github/workflows/main.yml @@ -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