Skip to content

Commit

Permalink
Add Windows pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
snnn committed Oct 23, 2024
1 parent 98eade3 commit 4becfe4
Showing 1 changed file with 109 additions and 0 deletions.
109 changes: 109 additions & 0 deletions .github/workflows/win_ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,109 @@
name: Windows_CI
on:
push:
branches:
- main
- rel-*
pull_request:

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
Win32_debug_no_ort:
runs-on: windows-2022
permissions:
actions: read
contents: read
security-events: write
steps:
- uses: actions/checkout@v4
- name: Initialize CodeQL
uses: github/codeql-action/init@v3
with:
config-file: ./.github/codeql/codeql-config.yml
languages: 'cpp'
- run: |
cmake --workflow --preset windows_win32_debug_no_ort_workflow
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v3
with:
category: "/language:cpp"
output: sarif-results
upload: failure-only

- name: filter-sarif
uses: advanced-security/filter-sarif@v1
with:
patterns: |
+**/*.cc
+**/*.h
-tests/**/*.*
-build/**/*.*
input: sarif-results/cpp.sarif
output: sarif-results/cpp.sarif

- name: Upload SARIF
uses: github/codeql-action/upload-sarif@v3
with:
sarif_file: sarif-results/cpp.sarif

Win32_release_no_ort:
runs-on: windows-2022
steps:
- uses: actions/checkout@v4
- run: |
cmake --workflow --preset windows_win32_release_no_ort_workflow
WinX64_debug_no_ort:
runs-on: windows-2022
permissions:
actions: read
contents: read
security-events: write
steps:
- uses: actions/checkout@v4
- name: Initialize CodeQL
uses: github/codeql-action/init@v3
with:
config-file: ./.github/codeql/codeql-config.yml
languages: 'cpp'
- run: |
cmake --workflow --preset windows_x64_debug_no_ort_workflow
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v3
with:
category: "/language:cpp"
output: sarif-results
upload: failure-only

- name: filter-sarif
uses: advanced-security/filter-sarif@v1
with:
patterns: |
+**/*.cc
+**/*.h
-tests/**/*.*
-build/**/*.*
input: sarif-results/cpp.sarif
output: sarif-results/cpp.sarif

- name: Upload SARIF
uses: github/codeql-action/upload-sarif@v3
with:
sarif_file: sarif-results/cpp.sarif

WinX64_release_no_ort:
runs-on: windows-2022
steps:
- uses: actions/checkout@v4
- run: |
cmake --workflow --preset windows_x64_release_no_ort_workflow
WinX64_release:
runs-on: windows-2022
steps:
- uses: actions/checkout@v4
- run: |
cmake --workflow --preset windows_x64_release_workflow

0 comments on commit 4becfe4

Please sign in to comment.