From fce343ea089125dbadc19a90e4b6a87e0fdf35c5 Mon Sep 17 00:00:00 2001 From: Margen67 Date: Sat, 26 Oct 2019 02:32:32 -0700 Subject: [PATCH] [CI] Add GitHub Actions --- .github/workflows/main.yml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 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..ac5aed1bb --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,31 @@ +name: main + +on: [push, pull_request] + +jobs: + build: + runs-on: windows-latest + strategy: + matrix: + cpu_arch: [SSE2, AVX, AVX2, AVX512] + steps: + - uses: actions/checkout@master + + - name: Setup + run: .\xb setup + + - name: Build + run: .\xb build --cpu_arch=${{matrix.cpu_arch}} --target=src\xenia-app --target=tests\xenia-cpu-ppc-tests --target=src\xenia-vfs-dump + + - name: Prepare artifacts + run: | + robocopy build\bin\Windows\Release artifacts xenia.exe xenia-vfs-dump.exe + robocopy . artifacts LICENSE + if errorlevel 8 exit /b 1 + exit /b 0 + shell: cmd + + - uses: actions/upload-artifact@master + with: + name: xenia-canary-${{matrix.cpu_arch}} + path: artifacts