Skip to content

Commit

Permalink
added github actions workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
DarthTon committed Sep 17, 2019
1 parent 049dafa commit 780a5b0
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 3 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: Main
on: [push]

jobs:
library:
name: Build and test library
strategy:
matrix:
platfom: [win32, x64]
#, Debug(DLL), Release(DLL)
configuration: [Debug, Release]
runs-on: windows-2019
steps:
- name: Checkout
if: contains(github.event.head_commit.message, 'driver') != true
uses: actions/checkout@v1
- name: Build
if: contains(github.event.head_commit.message, 'driver') != true
run: |
"C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Auxiliary\Build\vcvars64.bat" && MSBuild.exe BlackBone.sln /p:CI=true /p:Platform="${{ matrix.platfom }}" /p:Configuration="${{ matrix.configuration }}"
- name: Test
if: contains(github.event.head_commit.message, 'driver') != true
run: |
"C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Auxiliary\Build\vcvars64.bat" && vstest.console "build/${{ matrix.platfom }}/${{ matrix.configuration }}/BlackboneTest.dll"
driver:
name: Build driver
strategy:
matrix:
configuration: [Win10Debug, Win10Release, 'Win8.1 Debug', 'Win8.1 Release', 'Win8 Debug', 'Win8 Release', 'Win7 Debug', 'Win7 Release']
runs-on: windows-2019
steps:
- name: Checkout
if: contains(github.event.head_commit.message, 'driver')
uses: actions/checkout@v1
- name: Build
if: contains(github.event.head_commit.message, 'driver')
run: |
"C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Auxiliary\Build\vcvars64.bat" && MSBuild.exe src\BlackBoneDrv\BlackBoneDrv.sln /p:Platform="x64" /p:Configuration="${{ matrix.configuration }}"
4 changes: 1 addition & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,4 @@
## License
Blackbone is licensed under the MIT License. Dependencies are under their respective licenses.

[![Build status](https://ci.appveyor.com/api/projects/status/h3tr97727ngr7jko?svg=true)](https://ci.appveyor.com/project/DarthTon/blackbone)

[![Build status](https://ci.appveyor.com/api/projects/status/5lu9aw84t00ibkdo?svg=true)](https://ci.appveyor.com/project/DarthTon/blackbone-q21rd)
[![Build status](https://github.com/DarthTon/BlackBone/workflows/Main/badge.svg)]

0 comments on commit 780a5b0

Please sign in to comment.