Merge pull request #1499 from sphene/feature/actions-artifacts

GitHub Actions: Artifacts
This commit is contained in:
Samuel Surtees 2020-08-21 16:19:49 +10:00 committed by GitHub
commit 75c74f2c4a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -3,24 +3,44 @@ 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
- name: Upload Artifacts
if: matrix.config == 'release'
uses: actions/upload-artifact@v2
with:
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
strategy:
@ -38,3 +58,9 @@ jobs:
- name: Test
run: bin\${{ matrix.config }}\premake5 test
shell: cmd
- name: Upload Artifacts
if: matrix.config == 'release'
uses: actions/upload-artifact@v2
with:
name: premake-windows-${{ matrix.platform }}
path: bin\${{ matrix.config }}\