summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.github/workflows/msbuild.yml47
1 files changed, 47 insertions, 0 deletions
diff --git a/.github/workflows/msbuild.yml b/.github/workflows/msbuild.yml
new file mode 100644
index 0000000..4518c0f
--- /dev/null
+++ b/.github/workflows/msbuild.yml
@@ -0,0 +1,47 @@
+name: Build driver
+on:
+ push:
+ branches:
+ - trunk
+jobs:
+ build:
+ strategy:
+ matrix:
+ configuration: [Debug, Release]
+ platform: [x64]
+ runs-on: windows-2022
+ env:
+ Driver_Solution_Path: MIIEow\MIIEow\MIIEow.sln
+ Client_Solution_Path: MIIEowClient\MIIEowClient\MIIEowClient.sln
+ steps:
+ - name: Check out repository code
+ uses: actions/checkout@v3
+
+ - name: Add MSBuild to PATH
+ uses: microsoft/[email protected]
+
+ - name: Build solutions
+ run: |
+ msbuild ${{ env.Driver_Solution_Path }} -p:Configuration=${{ env.Configuration }} -p:Platform=${{ env.Platform }}
+ msbuild ${{ env.Client_Solution_Path }} -p:Configuration=${{ env.Configuration }} -p:Platform=${{ env.Platform }}
+ env:
+ Configuration: ${{ matrix.configuration }}
+ Platform: ${{ matrix.platform }}
+
+ - name: Package
+ run: |
+ mkdir ${{ env.Configuration }}_${{ env.Platform }}/
+ xcopy /e /k /h /i MIIEow\MIIEow\${{ env.Platform }}\${{ env.Configuration }} ${{ env.Configuration }}_${{ env.Platform }}/
+ xcopy /e /k /h /i MIIEowClient\MIIEowClient\${{ env.Platform }}\${{ env.Configuration }} ${{ env.Configuration }}_${{ env.Platform }}/
+ env:
+ Configuration: ${{ matrix.configuration }}
+ Platform: ${{ matrix.platform }}
+
+ - name: Upload
+ uses: actions/upload-artifact@v4
+ with:
+ name: miieow_${{ github.sha }}_${{ env.Configuration }}_${{ env.Platform }}
+ path: ${{ env.Configuration }}_${{ env.Platform }}
+ env:
+ Configuration: ${{ matrix.configuration }}
+ Platform: ${{ matrix.platform }}