Add step name, platform suffix and rename artifacts
This commit is contained in:
parent
06ae9d9c0a
commit
447ab6f29c
44
.github/workflows/ci-workflow.yml
vendored
44
.github/workflows/ci-workflow.yml
vendored
@ -3,27 +3,43 @@ name: CI Workflow
|
||||
on: [push, pull_request]
|
||||
|
||||
jobs:
|
||||
linux-and-macos:
|
||||
runs-on: ${{ matrix.os }}
|
||||
linux:
|
||||
runs-on: ubuntu-latest
|
||||
strategy:
|
||||
matrix:
|
||||
os: [ubuntu-latest, macos-latest]
|
||||
config: [debug, release]
|
||||
include:
|
||||
- os: ubuntu-latest
|
||||
osname: linux
|
||||
- os: macos-latest
|
||||
osname: osx
|
||||
platform: [x64]
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v2
|
||||
- name: Build
|
||||
run: make -f Bootstrap.mak ${{ matrix.osname }} CONFIG=${{ matrix.config }}
|
||||
run: make -f Bootstrap.mak linux CONFIG=${{ matrix.config }}
|
||||
- name: Test
|
||||
run: bin/${{ matrix.config }}/premake5 test
|
||||
- uses: actions/upload-artifact@v2
|
||||
- name: Upload Artifacts
|
||||
if: matrix.config == 'release'
|
||||
uses: actions/upload-artifact@v2
|
||||
with:
|
||||
name: ${{ matrix.osname }}-${{ matrix.config }}
|
||||
name: premake-linux-${{ matrix.platform }}
|
||||
path: bin/${{ matrix.config }}/
|
||||
macosx:
|
||||
runs-on: macos-latest
|
||||
strategy:
|
||||
matrix:
|
||||
config: [debug, release]
|
||||
platform: [x64]
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v2
|
||||
- name: Build
|
||||
run: make -f Bootstrap.mak macosx CONFIG=${{ matrix.config }}
|
||||
- name: Test
|
||||
run: bin/${{ matrix.config }}/premake5 test
|
||||
- name: Upload Artifacts
|
||||
if: matrix.config == 'release'
|
||||
uses: actions/upload-artifact@v2
|
||||
with:
|
||||
name: premake-macosx-${{ matrix.platform }}
|
||||
path: bin/${{ matrix.config }}/
|
||||
windows:
|
||||
runs-on: windows-latest
|
||||
@ -42,7 +58,9 @@ jobs:
|
||||
- name: Test
|
||||
run: bin\${{ matrix.config }}\premake5 test
|
||||
shell: cmd
|
||||
- uses: actions/upload-artifact@v2
|
||||
- name: Upload Artifacts
|
||||
if: matrix.config == 'release'
|
||||
uses: actions/upload-artifact@v2
|
||||
with:
|
||||
name: windows-${{ matrix.config }}-${{ matrix.platform }}
|
||||
name: premake-windows-${{ matrix.platform }}
|
||||
path: bin\${{ matrix.config }}\
|
||||
|
Reference in New Issue
Block a user