From 0b22a5da3df0d570a39681ffdd256cd876c30047 Mon Sep 17 00:00:00 2001 From: Adonais Romero González Date: Thu, 16 Feb 2023 16:19:48 -0800 Subject: Rename build instructions file to avoid conflicts with root README + small fix --- .github/Build-with-GitHub.md | 35 +++++++++++++++++++++++++++++++++++ .github/README.md | 35 ----------------------------------- 2 files changed, 35 insertions(+), 35 deletions(-) create mode 100644 .github/Build-with-GitHub.md delete mode 100644 .github/README.md diff --git a/.github/Build-with-GitHub.md b/.github/Build-with-GitHub.md new file mode 100644 index 00000000..8fe67c5f --- /dev/null +++ b/.github/Build-with-GitHub.md @@ -0,0 +1,35 @@ +# Using GitHub actions for building drivers + +If you use GitHub to host your code, you can leverage [GitHub Actions](https://docs.github.com/en/actions) to create automated workflows to build your driver projects. + +`windows-2022` runner (provided by `windows-latest`) is configured with Windows Driver Kit version 22H2 and Visual Studio 2022 off the box, so most solutions can be built directly running `msbuild` directly. + +```yaml +name: Build all driver samples +on: + push: + branches: + - main +jobs: + build: + strategy: + matrix: + configuration: [Debug, Release] + platform: [x64] + runs-on: windows-2022 + env: + Solution_Path: path\to\driver\solution.sln + steps: + - name: Check out repository code + uses: actions/checkout@v3 + + - name: Add MSBuild to PATH + uses: microsoft/setup-msbuild@v1.0.2 + + - name: Build solution + run: | + msbuild ${{ env.Solution_Path }} -p:Configuration:${{ env.Configuration }} -p:Platform:${{ env.Platform }} + env: + Configuration: ${{ matrix.configuration }} + Platform: ${{ matrix.platform }} +``` diff --git a/.github/README.md b/.github/README.md deleted file mode 100644 index b7569139..00000000 --- a/.github/README.md +++ /dev/null @@ -1,35 +0,0 @@ -# Using GitHub actions for building drivers - -If you use GitHub to host your code, you can leverage [GitHub Actions](https://docs.github.com/en/actions) to create automated workflows to build your driver projects. - -`windows-2022` runner (provided by `windows-latest`) is configured with Windows Driver Kit version 22H2 and Visual Studio 2022 off the box, so most solutions can be built directly running `msbuild` directly. - -```yaml -name: Build all driver samples -on: - push: - branches: - - main -jobs: - build: - strategy: - matrix: - configuration: [Debug, Release] - platform: [x64] - runs-on: windows-2022 - env: - Solution_Path: path\to\driver\solution.sln - steps: - - name: Check out repository code - uses: actions/checkout@v3 - - - name: Add MSBuild to PATH - uses: microsoft/setup-msbuild@v1.0.2 - - - name: Build solution - run: | - msbuild $${{ env.Solution_Path }} -p:Configuration:${{ env.Configuration }} -p:Platform:${{ env.Platform }} - env: - Configuration: ${{ matrix.configuration }} - Platform: ${{ matrix.platform }} -``` -- cgit v1.3.1