fix: create log directory with proper permissions #322
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: Code Quality | |
| on: | |
| push: | |
| branches: | |
| - main | |
| - develop | |
| pull_request: | |
| branches: | |
| - main | |
| - develop | |
| jobs: | |
| format-check: | |
| name: Format Check (clang-format) | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| with: | |
| submodules: recursive | |
| - name: Install Dependencies | |
| uses: ./.github/actions/install-deps | |
| with: | |
| cache-version: '3' | |
| - name: Restore Build Cache | |
| uses: ./.github/actions/restore-build-cache | |
| with: | |
| arch: x86_64 | |
| cache-version: '3' | |
| - name: Configure CMake | |
| run: cmake -S plugin -B plugin/build -G Ninja --preset default | |
| - name: Format Check | |
| run: cmake --build plugin/build --target format-check | |
| - name: Save Build Cache | |
| if: always() | |
| uses: ./.github/actions/save-build-cache | |
| with: | |
| arch: x86_64 | |
| cache-version: '3' | |
| lint: | |
| name: Lint Check (clang-tidy) | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| with: | |
| submodules: recursive | |
| fetch-depth: 0 # Full history needed for clang-tidy-diff | |
| - name: Install clang-tools | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y clang-tools | |
| - name: Install Dependencies | |
| uses: ./.github/actions/install-deps | |
| with: | |
| cache-version: '3' | |
| - name: Restore Build Cache | |
| uses: ./.github/actions/restore-build-cache | |
| with: | |
| arch: x86_64 | |
| cache-version: '3' | |
| - name: Configure CMake (generates compile_commands.json) | |
| run: cmake -S plugin -B plugin/build -G Ninja --preset default | |
| - name: Lint Check (clang-tidy-diff for PRs - changed lines only) | |
| if: github.event_name == 'pull_request' | |
| env: | |
| TIDY_DIFF_BASE: origin/${{ github.base_ref }} | |
| run: | | |
| # Ensure we have the base branch to diff against | |
| git fetch origin ${{ github.base_ref }}:refs/remotes/origin/${{ github.base_ref }} --depth=1 || true | |
| cmake --build plugin/build --target tidy-diff | |
| - name: Lint Check (clang-tidy for push - all files) | |
| if: github.event_name == 'push' | |
| run: cmake --build plugin/build --target tidy-check | |
| - name: Save Build Cache | |
| if: always() | |
| uses: ./.github/actions/save-build-cache | |
| with: | |
| arch: x86_64 | |
| cache-version: '3' |