Repository navigation
Update arena creation size in extended C API tests to improve memory … #4
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: CI | |
| on: | |
| push: | |
| branches: [main, master] | |
| pull_request: | |
| branches: [main, master] | |
| defaults: | |
| run: | |
| shell: bash | |
| jobs: | |
| mcu-ubuntu: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install Clang 21 (C++26) | |
| run: | | |
| wget -O /tmp/llvm.sh https://apt.llvm.org/llvm.sh | |
| chmod +x /tmp/llvm.sh | |
| sudo /tmp/llvm.sh 21 | |
| - name: Build and test (MCU) | |
| env: | |
| CXX: clang++-21 | |
| CC: clang-21 | |
| run: | | |
| make all | |
| make test_c_api_smoke | |
| mpu-ubuntu: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install Clang 21 (C++26) | |
| run: | | |
| wget -O /tmp/llvm.sh https://apt.llvm.org/llvm.sh | |
| chmod +x /tmp/llvm.sh | |
| sudo /tmp/llvm.sh 21 | |
| - name: Build and test (MPU) | |
| env: | |
| CXX: clang++-21 | |
| CC: clang-21 | |
| run: make mpu | |
| mpu-asan-ubuntu: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install Clang 21 (C++26) | |
| run: | | |
| wget -O /tmp/llvm.sh https://apt.llvm.org/llvm.sh | |
| chmod +x /tmp/llvm.sh | |
| sudo /tmp/llvm.sh 21 | |
| - name: Build and test (MPU + ASan/UBSan) | |
| env: | |
| CXX: clang++-21 | |
| CC: clang-21 | |
| run: | | |
| make clean | |
| make mpu \ | |
| CXXFLAGS="-std=c++26 -Wall -Wextra -Wpedantic -Iinclude -DMEMKIT_MPU=1 -DEMBEDDED_LINUX=1 -DMEMKIT_ALLOW_HEAP=1 -DMEMKIT_ALLOW_MMAP=1 -fsanitize=address,undefined -fno-omit-frame-pointer" \ | |
| CFLAGS="-std=c23 -Wall -Wextra -Wpedantic -Iinclude -DMEMKIT_MPU=1 -DEMBEDDED_LINUX=1 -DMEMKIT_ALLOW_HEAP=1 -DMEMKIT_ALLOW_MMAP=1 -fsanitize=address,undefined -fno-omit-frame-pointer" \ | |
| LDFLAGS="-fsanitize=address,undefined" | |
| cmake-ubuntu: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install Clang 21 (C++26) | |
| run: | | |
| wget -O /tmp/llvm.sh https://apt.llvm.org/llvm.sh | |
| chmod +x /tmp/llvm.sh | |
| sudo /tmp/llvm.sh 21 | |
| - name: Configure | |
| run: cmake -B build -DMEMKIT_EMBEDDED_LINUX=ON -DCMAKE_CXX_COMPILER=clang++-21 -DCMAKE_C_COMPILER=clang-21 | |
| - name: Build | |
| run: cmake --build build | |
| - name: Test | |
| run: ctest --test-dir build --output-on-failure | |
| macos: | |
| runs-on: macos-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Build and test (MCU + MPU) | |
| run: | | |
| make all | |
| make test_c_api_smoke | |
| make mpu |