summaryrefslogtreecommitdiff
path: root/.github/workflows
diff options
context:
space:
mode:
authorAdonais Romero González <[email protected]>2022-08-26 14:48:11 -0700
committerGitHub <[email protected]>2022-08-26 14:48:11 -0700
commitd504c54cf595e9185617a3e611e417617be8c0b8 (patch)
treef0d7d3e09abe2cf55ad646380488c8cde685f727 /.github/workflows
parent73c55fdc2e3d407ee39521ff4a1b2ea6791f134e (diff)
Add CI workflows for building and validating driver samples (#775)
* Add scripts to build a set of samples, as well as individual solution folders. * Add GitHub workflows to use these scripts and build all samples on push and changed samples on pull request. For now samples will be built under Windows 2019 but eventually workflow will be moved to run under Windows 2022.
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/ci-pr.yml40
-rw-r--r--.github/workflows/ci.yml35
2 files changed, 75 insertions, 0 deletions
diff --git a/.github/workflows/ci-pr.yml b/.github/workflows/ci-pr.yml
new file mode 100644
index 00000000..12062b34
--- /dev/null
+++ b/.github/workflows/ci-pr.yml
@@ -0,0 +1,40 @@
+name: Build changes to driver samples
+on:
+ pull_request:
+ branches:
+ - main
+ - develop
+ paths-ignore:
+ - '**.md'
+ - 'LICENSE'
+jobs:
+ build:
+ strategy:
+ fail-fast: false
+ matrix:
+ configuration: [Debug, Release]
+ platform: [x64, arm64]
+ runs-on: windows-2019
+ env:
+ Solution_Path: general\echo\kmdf\kmdfecho.sln
+ steps:
+ - name: Check out repository code
+ uses: actions/checkout@v3
+ with:
+ submodules: 'recursive'
+
+ - name: Add MSBuild to PATH
+ uses: microsoft/[email protected]
+
+ - name: Get changed files
+ id: get-changed-files
+ uses: tj-actions/changed-files@v27
+
+ - name: Retrieve and build solutions from changed files
+ id: build-changed-projects
+ run: |
+ $changedFiles = "${{ steps.get-changed-files.outputs.all_changed_files }}".Split(' ')
+ .\.github\scripts\Build-ChangedProjects.ps1 -ChangedFiles $changedFiles
+ env:
+ Configuration: ${{ matrix.configuration }}
+ Platform: ${{ matrix.platform }}
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
new file mode 100644
index 00000000..68b46552
--- /dev/null
+++ b/.github/workflows/ci.yml
@@ -0,0 +1,35 @@
+name: Build all driver samples
+on:
+ push:
+ branches:
+ - main
+ - develop
+ paths-ignore:
+ - '**.md'
+ - 'LICENSE'
+jobs:
+ build:
+ strategy:
+ fail-fast: false
+ matrix:
+ configuration: [Debug, Release]
+ platform: [x64, arm64]
+ runs-on: windows-2019
+ env:
+ Solution_Path: general\echo\kmdf\kmdfecho.sln
+ steps:
+ - name: Check out repository code
+ uses: actions/checkout@v3
+ with:
+ submodules: 'recursive'
+
+ - name: Add MSBuild to PATH
+ uses: microsoft/[email protected]
+
+ - name: Retrieve and build all available solutions
+ id: build-all-projects
+ run: |
+ .\Build-AllProjects.ps1
+ env:
+ Configuration: ${{ matrix.configuration }}
+ Platform: ${{ matrix.platform }}