Skip to content

Commit

Permalink
Fix ASan issue on Windows workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
jimmy-park committed Jan 19, 2024
1 parent 549da47 commit ac9cc19
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 6 deletions.
16 changes: 10 additions & 6 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,22 +12,22 @@ jobs:
strategy:
fail-fast: false
matrix:
preset: [linux-clang, linux-gcc, macos, windows]
preset: [linux-clang, linux-gcc, macos, windows-ninja]
config: [Debug, Release]
sanitize: [address, thread, undefined, leak, memory]
exclude:
- { preset: linux-gcc, sanitize: memory }
- { preset: macos, sanitize: leak }
- { preset: macos, sanitize: memory }
- { preset: windows, sanitize: thread }
- { preset: windows, sanitize: undefined }
- { preset: windows, sanitize: leak }
- { preset: windows, sanitize: memory }
- { preset: windows-ninja, sanitize: thread }
- { preset: windows-ninja, sanitize: undefined }
- { preset: windows-ninja, sanitize: leak }
- { preset: windows-ninja, sanitize: memory }
include:
- { preset: linux-clang, os: ubuntu-latest }
- { preset: linux-gcc, os: ubuntu-latest }
- { preset: macos, os: macos-latest }
- { preset: windows, os: windows-latest }
- { preset: windows-ninja, os: windows-latest }
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
Expand All @@ -42,6 +42,10 @@ jobs:
run: |
sudo apt-get update
sudo apt-get install -y ninja-build
- name: Install dependencies
if: runner.os == 'Windows'
run: |
choco install ninja
- name: Configure
run: >
Expand Down
24 changes: 24 additions & 0 deletions cmake/preset/windows.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,15 @@
"default"
]
},
{
"name": "windows-ninja",
"inherits": [
"host-windows",
"target-windows",
"ninja",
"default"
]
},
{
"name": "windows-arm",
"inherits": [
Expand Down Expand Up @@ -58,6 +67,13 @@
"host-windows"
]
},
{
"name": "windows-ninja",
"configurePreset": "windows-ninja",
"inherits": [
"host-windows"
]
},
{
"name": "windows-arm",
"configurePreset": "windows-arm",
Expand Down Expand Up @@ -96,6 +112,14 @@
"options"
]
},
{
"name": "windows-ninja",
"configurePreset": "windows-ninja",
"inherits": [
"host-windows",
"options"
]
},
{
"name": "windows-arm",
"configurePreset": "windows-arm",
Expand Down

0 comments on commit ac9cc19

Please sign in to comment.