diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml index 94edc14..d1386fb 100644 --- a/.github/workflows/windows.yml +++ b/.github/workflows/windows.yml @@ -16,12 +16,12 @@ jobs: - uses: actions/checkout@v3 - uses: ilammy/msvc-dev-cmd@v1 - name: Test No-Op (debug) - run: cl /Od /RTCsu /TC tests\noop.c /I. /DFIO_LEAK_COUNTER=1 /DDEBUG /Fe./noop.exe && ./noop.exe + run: cl /Od /RTCsu /TC tests\noop.c /I. /D_CRT_NONSTDC_NO_WARNINGS /DFIO_LEAK_COUNTER=1 /DDEBUG /Fe./noop.exe && ./noop.exe - name: Test STL (debug) - no allocators - run: cl /Od /RTCsu /TC tests\stl.c /I. /DFIO_MEMORY_DISABLE=1 /DFIO_LEAK_COUNTER=1 /DDEBUG /Fe./stld.exe && ./stld.exe + run: cl /Od /RTCsu /TC tests\stl.c /I. /D_CRT_NONSTDC_NO_WARNINGS /DFIO_MEMORY_DISABLE=1 /DFIO_LEAK_COUNTER=1 /DDEBUG /Fe./stld.exe && ./stld.exe - name: Test Mustache Compliance (debug) - no allocators - run: cl /Od /RTCsu /TC tests\mustache.c /I. /DFIO_MEMORY_DISABLE=1 /DFIO_LEAK_COUNTER=1 /DDEBUG /Fe./stld.exe && ./stld.exe + run: cl /Od /RTCsu /TC tests\mustache.c /I. /D_CRT_NONSTDC_NO_WARNINGS /DFIO_MEMORY_DISABLE=1 /DFIO_LEAK_COUNTER=1 /DDEBUG /Fe./stld.exe && ./stld.exe - name: Test fio_malloc speed run: cl /O2 /Oi /TC tests\malloc.c /I. /Fe./malloc.exe && ./malloc.exe - name: Test STL - run: cl /O2 /Oi /TC tests\stl.c /DFIO_LEAK_COUNTER=1 /I. /Fe./stl.exe && ./stl.exe + run: cl /O2 /Oi /TC tests\stl.c /D_CRT_NONSTDC_NO_WARNINGS /DFIO_LEAK_COUNTER=1 /I. /Fe./stl.exe && ./stl.exe diff --git a/.github/workflows/windows_clang.yml b/.github/workflows/windows_clang.yml index ae6435e..98f9a2e 100644 --- a/.github/workflows/windows_clang.yml +++ b/.github/workflows/windows_clang.yml @@ -18,10 +18,10 @@ jobs: with: platform: x64 - name: Test No-Op (debug) - run: clang -O0 -fstack-protector-all tests\noop.c -I. -DFIO_LEAK_COUNTER=1 -DDEBUG -o ./noop.exe && ./noop.exe + 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 -DDEBUG -o ./stld.exe && ./stld.exe + 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 -I. -o ./stl.exe && ./stl.exe + run: clang -O3 -march=native tests\stl.c -DFIO_LEAK_COUNTER=1 -D_CRT_NONSTDC_NO_WARNINGS -I. -o ./stl.exe && ./stl.exe diff --git a/.github/workflows/windows_mingw.yml b/.github/workflows/windows_mingw.yml deleted file mode 100644 index 2fd5118..0000000 --- a/.github/workflows/windows_mingw.yml +++ /dev/null @@ -1,28 +0,0 @@ -name: Windows MingW CI - -on: - push: - branches: [ master ] - pull_request: - branches: [ master ] - -jobs: - build: - - runs-on: windows-latest - timeout-minutes: 35 - - steps: - - uses: actions/checkout@v3 - - uses: egor-tensin/setup-mingw@v2 - with: - platform: x64 - cc: 1 - - name: Test No-Op (debug) - run: cc -O0 -fstack-protector-all tests\noop.c -I. -DFIO_LEAK_COUNTER=1 -DDEBUG -lws2_32 -o ./noop.exe && ./noop.exe - - name: Test STL (debug) - no allocators - run: cc -O0 -fstack-protector-all tests\stl.c -I. -DFIO_MEMORY_DISABLE=1 -DFIO_LEAK_COUNTER=1 -DDEBUG -lws2_32 -o ./stld.exe && ./stld.exe - - name: Test fio_malloc speed - run: cc -O2 -march=native tests\malloc.c -I. -lws2_32 -o ./malloc.exe && ./malloc.exe - - name: Test STL - run: cc -O2 -march=native tests\stl.c -DFIO_LEAK_COUNTER=1 -I. -lws2_32 -o ./stl.exe && ./stl.exe