diff options
| author | 2026-02-23 20:36:05 +0100 | |
|---|---|---|
| committer | 2026-02-23 20:36:05 +0100 | |
| commit | 052144cabb126efe925a96f8a0597a0f2005d206 (patch) | |
| tree | 4fd87244b9eef018b30e90fdff24c5b1a145a85e /test/external/metalang99/.github/workflows/c-cpp.yml | |
| parent | 4e9020dfb847d80475415f9f5914efaa50238767 (diff) | |
add metalang99 testsuite (preprocessor stress testing)
Diffstat (limited to 'test/external/metalang99/.github/workflows/c-cpp.yml')
| -rw-r--r-- | test/external/metalang99/.github/workflows/c-cpp.yml | 88 |
1 files changed, 88 insertions, 0 deletions
diff --git a/test/external/metalang99/.github/workflows/c-cpp.yml b/test/external/metalang99/.github/workflows/c-cpp.yml new file mode 100644 index 0000000..0c0aef1 --- /dev/null +++ b/test/external/metalang99/.github/workflows/c-cpp.yml @@ -0,0 +1,88 @@ +name: C/C++ CI + +on: + push: + branches: [master] + pull_request: + branches: [master] + +jobs: + test: + strategy: + matrix: + os: [ubuntu-latest, macos-latest, windows-latest] + include: + - os: ubuntu-latest + compiler: gcc + - os: macos-latest + compiler: clang + - os: windows-latest + compiler: msvc + + runs-on: ${{ matrix.os }} + env: + CC: ${{ matrix.compiler }} + + steps: + - uses: actions/checkout@v2 + + - name: Test + run: ./scripts/test-all.sh + + test-tcc: + runs-on: ubuntu-latest + env: + CC: tcc + + steps: + - uses: actions/checkout@v2 + + - name: Install TCC + run: sudo apt install tcc + + - name: Test + run: ./scripts/test-all.sh + + test-cxx-stmt: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + + - name: Test C++ statement chaining + run: | + g++ tests/stmt.c -o stmt -Iinclude -Wall -Wextra -pedantic -std=c++11 -ftrack-macro-expansion=0 + ./stmt + + bench: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + + - name: Bench + run: ./scripts/bench.sh + + check-arities: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + + - name: Install Doxygen + run: sudo apt install doxygen + + - name: Check arity specifiers + run: python3 scripts/check-arities.py + + check-fmt: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + + - name: Download run-clang-format + run: git submodule update --init run-clang-format + + - name: Check code formatting + run: ./scripts/check-fmt.sh |