Merge pull request #1499 from sphene/feature/actions-artifacts
GitHub Actions: Artifacts
This commit is contained in:
commit
75c74f2c4a
44
.github/workflows/ci-workflow.yml
vendored
44
.github/workflows/ci-workflow.yml
vendored
@ -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 }}\
|
||||
|
Loading…
Reference in New Issue
Block a user