winget-cli

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

main-build-windows.yml (1375B)


      1 name: Main Build (Windows)
      2 
      3 on:
      4   push:
      5     branches: [ "main" ]
      6 
      7 # Permissions and environment values to be able to update the dependency graph with vcpkg information
      8 # and to enable the writing/uploading of CodeQL scan results
      9 permissions:
     10   contents: write
     11   security-events: write
     12 
     13 env:
     14   GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
     15   VCPKG_FEATURE_FLAGS: dependencygraph
     16 
     17 jobs:
     18   build-windows:
     19     runs-on: 'windows-latest'
     20 
     21     steps:
     22       - uses: actions/checkout@v4
     23 
     24       - name: Initialize CodeQL
     25         uses: ./.github/workflows/initialize-codeql
     26 
     27       - name: Install Winget
     28         uses: ./.github/workflows/install-winget
     29 
     30       - name: Setup
     31         shell: pwsh
     32         run: .\scripts\Setup.ps1
     33 
     34       - name: Build and Test (no test overrides)
     35         shell: pwsh
     36         run: |
     37           .\scripts\Build.ps1
     38           .\scripts\Test.ps1 -OutputOnFailure
     39 
     40       - name: Build and Test (with test overrides)
     41         shell: pwsh
     42         run: |
     43           .\scripts\Build.ps1 -EnableTestOverrides
     44           .\scripts\Test.ps1 -OutputOnFailure
     45 
     46       - name: Build and Test (Release)
     47         shell: pwsh
     48         run: |
     49             .\scripts\Build.ps1 -BuildType Release
     50             .\scripts\Test.ps1 -OutputOnFailure
     51       
     52       - name: Perform CodeQL Analysis
     53         uses: github/codeql-action/analyze@v3