summaryrefslogtreecommitdiff
path: root/.github/workflows/ci.yml
blob: c4fd1a2a9415e7a3ec46c28db06316eefd90b955 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
name: Build all driver samples
on:
  push:
    branches:
      - main
      - develop
    paths-ignore:
      - '**.md'
      - 'LICENSE'
jobs:
  build:
    name: Build driver samples
    strategy:
      fail-fast: false
      matrix:
        configuration: [Debug, Release]
        platform: [x64, arm64]
    runs-on: windows-2022
    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
        run: |
          .\Build-AllSamples.ps1 -Verbose
        env:
          WDS_Configuration: ${{ matrix.configuration }}
          WDS_Platform: ${{ matrix.platform }}
          WDS_ReportFileName: _overview.${{ matrix.configuration }}.${{ matrix.platform }}

      - name: Archive build logs and overview build reports
        uses: actions/upload-artifact@v3
        if: always()
        with:
          name: logs
          path: _logs

  report:
    name: Generate global report
    runs-on: windows-2022
    needs: build
    if: always()
    steps:
      - name: Check out repository code
        uses: actions/checkout@v3

      - name: Retrieve overview reports
        uses: actions/download-artifact@v3
        with:
          name: logs
          path: _logs

      - name: Join and generate global reports
        run: |
          .\.github\scripts\Join-CsvReports.ps1

      - name: Archive global overview build reports
        uses: actions/upload-artifact@v3
        with:
          name: logs
          path: _logs/_overview.all.*