Skip to content

Commit

Permalink
Merge pull request #1499 from sphene/feature/actions-artifacts
Browse files Browse the repository at this point in the history
GitHub Actions: Artifacts
  • Loading branch information
samsinsane authored Aug 21, 2020
2 parents a102474 + 447ab6f commit 75c74f2
Showing 1 changed file with 35 additions and 9 deletions.
44 changes: 35 additions & 9 deletions .github/workflows/ci-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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 }}\

0 comments on commit 75c74f2

Please sign in to comment.