mirror of
https://github.com/bblanchon/ArduinoJson.git
synced 2025-07-31 03:07:35 +02:00
Split conf_test between linux and windows
This commit is contained in:
12
.github/workflows/ci.yml
vendored
12
.github/workflows/ci.yml
vendored
@ -174,13 +174,13 @@ jobs:
|
|||||||
- name: AVR
|
- name: AVR
|
||||||
run: avr-g++ -std=c++11 -Isrc extras/conf_test/avr.cpp
|
run: avr-g++ -std=c++11 -Isrc extras/conf_test/avr.cpp
|
||||||
- name: GCC 32-bit
|
- name: GCC 32-bit
|
||||||
run: g++ -std=c++11 -m32 -Isrc extras/conf_test/x86.cpp
|
run: g++ -std=c++11 -m32 -Isrc extras/conf_test/linux32.cpp
|
||||||
- name: GCC 64-bit
|
- name: GCC 64-bit
|
||||||
run: g++ -std=c++11 -m64 -Isrc extras/conf_test/x64.cpp
|
run: g++ -std=c++11 -m64 -Isrc extras/conf_test/linux64.cpp
|
||||||
- name: Clang 32-bit
|
- name: Clang 32-bit
|
||||||
run: clang++ -std=c++11 -m32 -Isrc extras/conf_test/x86.cpp
|
run: clang++ -std=c++11 -m32 -Isrc extras/conf_test/linux32.cpp
|
||||||
- name: Clang 64-bit
|
- name: Clang 64-bit
|
||||||
run: clang++ -std=c++11 -m64 -Isrc extras/conf_test/x64.cpp
|
run: clang++ -std=c++11 -m64 -Isrc extras/conf_test/linux64.cpp
|
||||||
|
|
||||||
conf_test_windows:
|
conf_test_windows:
|
||||||
name: Test configuration on Windows
|
name: Test configuration on Windows
|
||||||
@ -192,12 +192,12 @@ jobs:
|
|||||||
- name: 32-bit
|
- name: 32-bit
|
||||||
run: |
|
run: |
|
||||||
call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Auxiliary\Build\vcvars32.bat"
|
call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Auxiliary\Build\vcvars32.bat"
|
||||||
cl /Isrc extras/conf_test/x86.cpp
|
cl /Isrc extras/conf_test/win32.cpp
|
||||||
shell: cmd
|
shell: cmd
|
||||||
- name: 64-bit
|
- name: 64-bit
|
||||||
run: |
|
run: |
|
||||||
call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Auxiliary\Build\vcvars64.bat"
|
call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Auxiliary\Build\vcvars64.bat"
|
||||||
cl /Isrc extras/conf_test/x64.cpp
|
cl /Isrc extras/conf_test/win64.cpp
|
||||||
shell: cmd
|
shell: cmd
|
||||||
|
|
||||||
xcode:
|
xcode:
|
||||||
|
14
extras/conf_test/win32.cpp
Normal file
14
extras/conf_test/win32.cpp
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
#include <ArduinoJson.h>
|
||||||
|
|
||||||
|
static_assert(ARDUINOJSON_USE_LONG_LONG == 1, "ARDUINOJSON_USE_LONG_LONG");
|
||||||
|
|
||||||
|
static_assert(ARDUINOJSON_SLOT_ID_SIZE == 2, "ARDUINOJSON_SLOT_ID_SIZE");
|
||||||
|
|
||||||
|
static_assert(ARDUINOJSON_LITTLE_ENDIAN == 1, "ARDUINOJSON_LITTLE_ENDIAN");
|
||||||
|
|
||||||
|
static_assert(ARDUINOJSON_USE_DOUBLE == 1, "ARDUINOJSON_USE_DOUBLE");
|
||||||
|
|
||||||
|
static_assert(sizeof(ArduinoJson::detail::VariantSlot) == 16,
|
||||||
|
"sizeof(VariantSlot)");
|
||||||
|
|
||||||
|
int main() {}
|
14
extras/conf_test/win64.cpp
Normal file
14
extras/conf_test/win64.cpp
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
#include <ArduinoJson.h>
|
||||||
|
|
||||||
|
static_assert(ARDUINOJSON_USE_LONG_LONG == 1, "ARDUINOJSON_USE_LONG_LONG");
|
||||||
|
|
||||||
|
static_assert(ARDUINOJSON_SLOT_ID_SIZE == 4, "ARDUINOJSON_SLOT_ID_SIZE");
|
||||||
|
|
||||||
|
static_assert(ARDUINOJSON_LITTLE_ENDIAN == 1, "ARDUINOJSON_LITTLE_ENDIAN");
|
||||||
|
|
||||||
|
static_assert(ARDUINOJSON_USE_DOUBLE == 1, "ARDUINOJSON_USE_DOUBLE");
|
||||||
|
|
||||||
|
static_assert(sizeof(ArduinoJson::detail::VariantSlot) == 24,
|
||||||
|
"sizeof(VariantSlot)");
|
||||||
|
|
||||||
|
int main() {}
|
Reference in New Issue
Block a user