2019-10-26 09:32:32 +00:00
|
|
|
name: main
|
|
|
|
|
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'
|
|
|
|
- '.github/ISSUE_TEMPLATE.md'
|
|
|
|
- 'docs/**'
|
|
|
|
- '.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'
|
|
|
|
- '.github/ISSUE_TEMPLATE.md'
|
|
|
|
- 'docs/**'
|
|
|
|
- '.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:
|
|
|
|
matrix:
|
2020-01-17 15:16:11 +00:00
|
|
|
cpu_arch: [AVX, AVX2, AVX512]
|
2019-10-26 09:32:32 +00:00
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@master
|
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
|
2019-11-21 03:35:06 +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: |
|
2019-11-21 03:35:06 +00:00
|
|
|
robocopy build\bin\Windows\Release artifacts xenia*.exe
|
2019-10-26 09:32:32 +00:00
|
|
|
robocopy . artifacts LICENSE
|
2019-11-21 03:35:06 +00:00
|
|
|
$LastExitCode = 0
|
|
|
|
cd artifacts
|
|
|
|
7z a ..\xenia-canary.zip LICENSE xenia-canary.exe
|
2019-10-26 09:32:32 +00:00
|
|
|
|
|
|
|
- uses: actions/upload-artifact@master
|
|
|
|
with:
|
|
|
|
name: xenia-canary-${{matrix.cpu_arch}}
|
|
|
|
path: artifacts
|
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:
|
|
|
|
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
|
|
|
|
with:
|
|
|
|
tag_name: tag-${{github.sha}}
|
|
|
|
release_name: xenia-canary-${{github.sha}}
|
|
|
|
body: |
|
|
|
|
Changes in this Release
|
|
|
|
- First Change
|
|
|
|
- Second Change
|
|
|
|
|
|
|
|
- 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
|
|
|
|
uses: actions/upload-release-asset@v1.0.1
|
|
|
|
env:
|
|
|
|
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
|
|
|
|
with:
|
|
|
|
upload_url: ${{steps.create_release.outputs.upload_url}}
|
|
|
|
asset_path: ./xenia-canary.zip
|
|
|
|
asset_name: xenia-canary.zip
|
|
|
|
asset_content_type: application/zip
|