diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ea735ca..56d8b9f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -24,6 +24,7 @@ on: jobs: build: + timeout-minutes: 5 strategy: matrix: os: [ubuntu-latest, windows-latest, macos-latest] @@ -31,28 +32,12 @@ jobs: runs-on: ${{ matrix.os }} - steps: - - name: Checkout repository - uses: actions/checkout@v4 - - - name: Configure CMake - run: cmake -B build -DCMAKE_BUILD_TYPE=Release - - - name: Build - run: cmake --build build --config Release - - - name: Run tests - working-directory: build - run: ctest -C Release --output-on-failure - - lint: - runs-on: ubuntu-latest - steps: - name: Checkout repository uses: actions/checkout@v4 - name: Check file sizes + if: runner.os == 'Linux' run: | MAX_LINES=1500 FAILED=0 @@ -70,8 +55,19 @@ jobs: echo "All source files are within the $MAX_LINES line limit." - name: Check formatting with clang-format + if: runner.os == 'Linux' continue-on-error: true run: | sudo apt-get install -y clang-format-17 > /dev/null 2>&1 echo "Checking formatting of source files..." find src/ include/ -name "*.cpp" -o -name "*.h" | xargs clang-format-17 --dry-run --Werror 2>&1 || echo "::warning::Code formatting issues found. Run clang-format to fix." + + - name: Configure CMake + run: cmake -B build -DCMAKE_BUILD_TYPE=Release + + - name: Build + run: cmake --build build --config Release + + - name: Run tests + working-directory: build + run: ctest -C Release --output-on-failure diff --git a/CLAUDE.md b/CLAUDE.md new file mode 100644 index 0000000..32b3450 --- /dev/null +++ b/CLAUDE.md @@ -0,0 +1,7 @@ +Issue to solve: https://github.com/netkeep80/avm/issues/10 +Your prepared branch: issue-10-544a3e00bc6f +Your prepared working directory: /tmp/gh-issue-solver-1770062911063 +Your forked repository: konard/netkeep80-avm +Original repository (upstream): netkeep80/avm + +Proceed.