2020-01-29 06:48:54 +00:00
|
|
|
name: CI
|
2019-10-26 09:32:32 +00:00
|
|
|
|
2019-11-02 09:38:27 +00:00
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches-ignore:
|
|
|
|
- 'gh-pages'
|
2019-11-25 10:48:30 +00:00
|
|
|
- 'master'
|
2019-11-02 09:38:27 +00:00
|
|
|
paths-ignore:
|
2019-11-21 03:35:06 +00:00
|
|
|
- '.github/CONTRIBUTING.md'
|
|
|
|
- '.github/FUNDING.md'
|
2020-03-10 09:48:40 +00:00
|
|
|
- '.github/ISSUE_TEMPLATE/*'
|
2020-02-05 12:42:44 +00:00
|
|
|
- 'docs/*'
|
|
|
|
- 'docs/*/*'
|
2019-11-21 03:35:06 +00:00
|
|
|
- '.appveyor.yml'
|
2020-01-16 16:51:48 +00:00
|
|
|
- '.azure-pipelines.yml'
|
2019-11-21 03:35:06 +00:00
|
|
|
- '.travis.yml'
|
|
|
|
- 'LICENSE'
|
|
|
|
- 'README.md'
|
2019-11-02 09:38:27 +00:00
|
|
|
pull_request:
|
|
|
|
branches-ignore:
|
|
|
|
- 'gh-pages'
|
2019-11-25 10:48:30 +00:00
|
|
|
- 'master'
|
2019-11-02 09:38:27 +00:00
|
|
|
paths-ignore:
|
2019-11-21 03:35:06 +00:00
|
|
|
- '.github/CONTRIBUTING.md'
|
|
|
|
- '.github/FUNDING.md'
|
2020-03-10 09:48:40 +00:00
|
|
|
- '.github/ISSUE_TEMPLATE/*'
|
2020-02-05 12:42:44 +00:00
|
|
|
- 'docs/*'
|
|
|
|
- 'docs/*/*'
|
2019-11-21 03:35:06 +00:00
|
|
|
- '.appveyor.yml'
|
2020-01-16 16:51:48 +00:00
|
|
|
- '.azure-pipelines.yml'
|
2019-11-21 03:35:06 +00:00
|
|
|
- '.travis.yml'
|
|
|
|
- 'LICENSE'
|
|
|
|
- 'README.md'
|
2019-10-26 09:32:32 +00:00
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
runs-on: windows-latest
|
|
|
|
strategy:
|
2020-01-25 13:40:23 +00:00
|
|
|
fail-fast: false
|
2019-10-26 09:32:32 +00:00
|
|
|
matrix:
|
2020-01-17 15:16:11 +00:00
|
|
|
cpu_arch: [AVX, AVX2, AVX512]
|
2019-10-26 09:32:32 +00:00
|
|
|
steps:
|
2020-02-05 12:42:44 +00:00
|
|
|
- uses: actions/checkout@v2
|
2020-01-16 07:53:49 +00:00
|
|
|
with:
|
|
|
|
fetch-depth: 0
|
2019-10-26 09:32:32 +00:00
|
|
|
|
|
|
|
- name: Setup
|
|
|
|
run: .\xb setup
|
|
|
|
|
|
|
|
- name: Build
|
2020-01-29 06:48:54 +00:00
|
|
|
run: .\xb build --cpu_arch=${{ matrix.cpu_arch }} --target=src\xenia-app --target=src\xenia-vfs-dump
|
2019-10-26 09:32:32 +00:00
|
|
|
|
|
|
|
- name: Prepare artifacts
|
|
|
|
run: |
|
2020-03-17 17:32:34 +00:00
|
|
|
robocopy . build\bin\Windows\Release LICENSE /r:0 /w:0
|
|
|
|
robocopy build\bin\Windows\Release artifacts\xenia-canary xenia-canary.exe LICENSE /r:0 /w:0
|
|
|
|
robocopy build\bin\Windows\Release artifacts\xenia-vfs-dump xenia-vfs-dump.exe LICENSE /r:0 /w:0
|
|
|
|
If ($LastExitCode -le 7) { $LastExitCode = 0 }
|
2020-03-10 09:48:40 +00:00
|
|
|
7z a -mx1 xenia-canary.zip LICENSE .\artifacts\xenia-canary\*.exe
|
2019-10-26 09:32:32 +00:00
|
|
|
|
2020-03-10 09:48:40 +00:00
|
|
|
- name: Upload xenia-canary artifacts
|
|
|
|
uses: actions/upload-artifact@v1
|
2019-10-26 09:32:32 +00:00
|
|
|
with:
|
2020-01-29 06:48:54 +00:00
|
|
|
name: xenia-canary-${{ matrix.cpu_arch }}
|
2020-03-10 09:48:40 +00:00
|
|
|
path: artifacts\xenia-canary
|
|
|
|
|
|
|
|
- name: Upload xenia-vfs-dump artifacts
|
|
|
|
uses: actions/upload-artifact@v1
|
|
|
|
if: matrix.cpu_arch == 'AVX'
|
|
|
|
with:
|
|
|
|
name: xenia-vfs-dump
|
|
|
|
path: artifacts\xenia-vfs-dump
|
2019-11-21 03:35:06 +00:00
|
|
|
|
2020-03-10 09:48:40 +00:00
|
|
|
- name: Upload SDL2 artifact(s)
|
|
|
|
uses: actions/upload-artifact@v1
|
2020-02-13 07:17:31 +00:00
|
|
|
if: matrix.cpu_arch == 'AVX'
|
|
|
|
with:
|
|
|
|
name: SDL2
|
|
|
|
path: build\bin\Windows\Release\SDL2.dll
|
|
|
|
|
2019-11-21 03:35:06 +00:00
|
|
|
- name: Create Release
|
2020-01-16 09:39:32 +00:00
|
|
|
if: github.event.action != 'pull_request' && github.ref == 'refs/heads/canary' && matrix.cpu_arch == 'AVX'
|
2019-11-21 03:35:06 +00:00
|
|
|
id: create_release
|
|
|
|
uses: actions/create-release@v1
|
|
|
|
env:
|
2020-01-29 06:48:54 +00:00
|
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
2019-11-21 03:35:06 +00:00
|
|
|
with:
|
2020-01-29 06:48:54 +00:00
|
|
|
tag_name: tag-${{ github.sha }}
|
|
|
|
release_name: xenia-canary-${{ github.sha }}
|
2019-11-21 03:35:06 +00:00
|
|
|
|
|
|
|
- name: Upload Release Asset
|
2020-01-16 09:39:32 +00:00
|
|
|
if: github.event.action != 'pull_request' && github.ref == 'refs/heads/canary' && matrix.cpu_arch == 'AVX'
|
2019-11-21 03:35:06 +00:00
|
|
|
id: upload-release-asset
|
2020-03-28 00:19:02 +00:00
|
|
|
uses: actions/upload-release-asset@v1
|
2019-11-21 03:35:06 +00:00
|
|
|
env:
|
2020-01-29 06:48:54 +00:00
|
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
2019-11-21 03:35:06 +00:00
|
|
|
with:
|
2020-01-29 06:48:54 +00:00
|
|
|
upload_url: ${{ steps.create_release.outputs.upload_url }}
|
|
|
|
asset_path: xenia-canary.zip
|
2019-11-21 03:35:06 +00:00
|
|
|
asset_name: xenia-canary.zip
|
|
|
|
asset_content_type: application/zip
|