Skip to content

Commit c97214a

Browse files
committed
github actions refactoring
1 parent 8052910 commit c97214a

File tree

5 files changed

+51
-40
lines changed

5 files changed

+51
-40
lines changed

.github/workflows/driver.yaml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: Driver
2+
on: push
3+
#on:
4+
# push:
5+
# paths:
6+
# - 'src/BlackBoneDrv/**'
7+
8+
jobs:
9+
driver:
10+
name: Build driver
11+
strategy:
12+
matrix:
13+
configuration: [Win10Debug, Win10Release, 'Win8.1 Debug', 'Win8.1 Release', 'Win8 Debug', 'Win8 Release', 'Win7 Debug', 'Win7 Release']
14+
runs-on: windows-2019
15+
steps:
16+
- name: Checkout
17+
uses: actions/checkout@v1
18+
- name: Build
19+
shell: cmd
20+
run: |
21+
"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 }}"

.github/workflows/lib.yaml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Library
2+
on: push
3+
#on:
4+
# push:
5+
# paths:
6+
# - './**'
7+
# - '!src/BlackBoneDrv/**'
8+
9+
jobs:
10+
library:
11+
name: Build and test library
12+
strategy:
13+
matrix:
14+
platfom: [win32, x64]
15+
#, Debug(DLL), Release(DLL)
16+
configuration: [Debug, Release]
17+
runs-on: windows-2019
18+
steps:
19+
- name: Checkout
20+
uses: actions/checkout@v1
21+
- name: Build
22+
shell: cmd
23+
run: |
24+
"C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild\Current\Bin\MSBuild.exe" BlackBone.sln /p:CI=true /p:Platform="${{ matrix.platfom }}" /p:Configuration="${{ matrix.configuration }}"
25+
- name: Test
26+
shell: cmd
27+
run: |
28+
"C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\Common7\IDE\CommonExtensions\Microsoft\TestWindow\vstest.console.exe" "build/${{ matrix.platfom }}/${{ matrix.configuration }}/BlackboneTest.dll"

.github/workflows/main.yaml

Lines changed: 0 additions & 40 deletions
This file was deleted.

src/BlackBone/trigger.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
1234

src/BlackBoneDrv/trigger.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
123

0 commit comments

Comments
 (0)