From 2a45b7aa3f9fa3415d8b39941c7c832a447e3df2 Mon Sep 17 00:00:00 2001 From: Donald Filimon Date: Mon, 28 Jul 2025 16:13:52 -0400 Subject: [PATCH] Use zig build in CI --- .github/workflows/ci.yml | 22 +++++++++------------- 1 file changed, 9 insertions(+), 13 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 934a06c..688077a 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -13,6 +13,13 @@ jobs: - run: | sudo apt-get update && sudo apt-get install -y clang-format find src include tests -iname '*.cc' | xargs clang-format --dry-run --Werror + - name: Check Zig formatting + run: | + if command -v zig >/dev/null 2>&1; then + zig fmt --check $(git ls-files '*.zig') + else + echo "zig not installed, skipping zig fmt" + fi static-analysis: runs-on: ubuntu-latest @@ -23,27 +30,16 @@ jobs: find src include -iname '*.cc' | xargs clang-tidy -quiet build-test: - runs-on: ubuntu-latest - services: - docker: - image: my_compiler/ci:latest - steps: - - uses: actions/checkout@v4 - - run: | - mkdir build && cd build - cmake -DCMAKE_TOOLCHAIN_FILE=../cmake/toolchain.cmake .. - cmake --build . -- -j$(nproc) - ctest --output-on-failure - - zig-mod-test: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - uses: goto-bus-stop/setup-zig@v2 with: version: 0.14.1 + - run: zig build - run: zig build mod-test + fuzz: runs-on: ubuntu-latest steps: