[GitHub Actions] Rename to CI, formatting

Also don't use master version of Actions, and make asset_path look nicer.
This commit is contained in:
Margen67 2020-01-28 22:48:54 -08:00 committed by illusion
parent 0fa3bf6ca5
commit abce6dcdaa
2 changed files with 12 additions and 13 deletions

View File

@ -1,4 +1,4 @@
name: main
name: CI
on:
push:
@ -29,7 +29,6 @@ on:
- '.travis.yml'
- 'LICENSE'
- 'README.md'
jobs:
build:
runs-on: windows-latest
@ -42,7 +41,7 @@ jobs:
run: wmic cpu get caption, deviceid, name, numberofcores, maxclockspeed, status
shell: cmd
- uses: actions/checkout@master
- uses: actions/checkout@v2.0.0
with:
fetch-depth: 0
@ -50,7 +49,7 @@ jobs:
run: .\xb setup
- name: Build
run: .\xb build --cpu_arch=${{matrix.cpu_arch}} --target=src\xenia-app --target=src\xenia-vfs-dump
run: .\xb build --cpu_arch=${{ matrix.cpu_arch }} --target=src\xenia-app --target=src\xenia-vfs-dump
- name: Prepare artifacts
run: |
@ -60,9 +59,9 @@ jobs:
cd artifacts
7z a ..\xenia-canary.zip LICENSE xenia-canary.exe
- uses: actions/upload-artifact@master
- uses: actions/upload-artifact@v1.0.0
with:
name: xenia-canary-${{matrix.cpu_arch}}
name: xenia-canary-${{ matrix.cpu_arch }}
path: artifacts
- name: Create Release
@ -70,10 +69,10 @@ jobs:
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: tag-${{github.sha}}
release_name: xenia-canary-${{github.sha}}
tag_name: tag-${{ github.sha }}
release_name: xenia-canary-${{ github.sha }}
body: |
Changes in this Release
- First Change
@ -84,9 +83,9 @@ jobs:
id: upload-release-asset
uses: actions/upload-release-asset@v1.0.1
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{steps.create_release.outputs.upload_url}}
asset_path: ./xenia-canary.zip
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: xenia-canary.zip
asset_name: xenia-canary.zip
asset_content_type: application/zip

View File

@ -6,7 +6,7 @@
<h1 align="center">Xenia Canary - Xbox 360 Emulator</h1>
[![Discord Server](https://img.shields.io/discord/533275703882547200?logo=discord)](https://discord.gg/jydhhRQ)
[![Actions Status](https://github.com/xenia-canary/xenia-canary/workflows/main/badge.svg)](https://github.com/xenia-canary/xenia-canary/actions)
[![Actions Status](https://github.com/xenia-canary/xenia-canary/workflows/CI/badge.svg)](https://github.com/xenia-canary/xenia-canary/actions)
[![AppVeyor Build Status](https://ci.appveyor.com/api/projects/status/5fs0ia3031l9rbpo/branch/canary?svg=true)](https://ci.appveyor.com/project/chris-hawley/xenia-canary/branch/canary)
[![Azure Build Status](https://dev.azure.com/xenia-canary/xenia-canary/_apis/build/status/xenia-canary.xenia-canary?branchName=canary)](https://dev.azure.com/xenia-canary/xenia-canary/_build/latest?definitionId=1&branchName=canary)
<!--[![Travis Build Status](https://travis-ci.org/xenia-canary/xenia-canary.svg?branch=canary)](https://travis-ci.org/xenia-canary/xenia-canary)-->