-
Notifications
You must be signed in to change notification settings - Fork 7
32 lines (28 loc) · 1.03 KB
/
windows_clang.yml
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
name: Windows Clang CI
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
strategy:
fail-fast: false
runs-on: windows-latest
timeout-minutes: 30
steps:
- uses: actions/checkout@v3
- uses: egor-tensin/setup-clang@v1
with:
platform: x64
- name: Setup ENV
run: |
echo "CI=false" >> "$GITHUB_ENV"
- name: Test No-Op (debug)
run: clang -O0 -fstack-protector-all tests\noop.c -I. -DFIO_LEAK_COUNTER=1 -DDEBUG -D_CRT_NONSTDC_NO_WARNINGS -o ./noop.exe && ./noop.exe
- name: Test STL (debug) - no allocators
run: clang -O0 -fstack-protector-all tests\stl.c -I. -DFIO_MEMORY_DISABLE=1 -DFIO_LEAK_COUNTER=1 -D_CRT_NONSTDC_NO_WARNINGS -DDEBUG -o ./stld.exe && ./stld.exe
- name: Test fio_malloc speed
run: clang -O3 -march=native tests\malloc.c -I. -o ./malloc.exe && ./malloc.exe
- name: Test STL
run: clang -O3 -march=native tests\stl.c -DFIO_LEAK_COUNTER=1 -D_CRT_NONSTDC_NO_WARNINGS -I. -o ./stl.exe && ./stl.exe