Skip to content

chore(deps): bump https://github.com/neocmakelsp/neocmakelsp (#553) #1702

chore(deps): bump https://github.com/neocmakelsp/neocmakelsp (#553)

chore(deps): bump https://github.com/neocmakelsp/neocmakelsp (#553) #1702

Workflow file for this run

---
name: CI
"on":
push:
branches:
- main
tags:
- "v*"
pull_request:
branches:
- main
jobs:
git_hooks:
name: Git hooks
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v7
- name: Set up Go
uses: actions/setup-go@v6
with:
go-version-file: src/tailscale/wrapper/go.mod
cache-dependency-path: src/tailscale/wrapper/go.sum
- name: Set up uv
uses: astral-sh/setup-uv@v7
- name: Add Kitware repository
run: ./scripts/ci/apt-add-kitware-repo.sh
- name: Add KDE Neon repository
run: ./scripts/ci/apt-add-kde-neon-repo.sh
- name: Update apt cache
run: sudo apt-get update -yq
- name: Install dependencies
run: sudo ./scripts/neon-deps.sh
- name: Vendor Go dependencies
run: go mod vendor
working-directory: src/tailscale/wrapper
- name: Configure
run: |
cmake -B build -G Ninja \
-DCMAKE_BUILD_TYPE=Debug \
-DKTAILCTL_ENABLE_TESTS=OFF \
-DKTAILCTL_FLATPAK_BUILD=OFF
- name: Build
run: cmake --build build --parallel
- name: Run git hooks
uses: j178/prek-action@v2
env:
SKIP: qmlformat
flatpak_build:
name: Flatpak Build
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v7
- name: Set up Go
uses: actions/setup-go@v6
with:
go-version-file: src/tailscale/wrapper/go.mod
cache-dependency-path: src/tailscale/wrapper/go.sum
- name: Vendor Go dependencies.
run: go mod vendor
working-directory: src/tailscale/wrapper
- name: Update apt cache.
run: sudo apt-get update -yq
- name: Install flatpak-builder
run: sudo apt-get install -yq flatpak-builder flatpak appstream
- name: Show flatpak-builder version
run: flatpak-builder --version
- name: Install flatpak dependencies
run: ./scripts/flatpak-deps.sh
- name: Validate manifest
run: |
flatpak run --command=flatpak-builder-lint org.flatpak.Builder \
manifest org.fkoehler.KTailctl.yml
- name: Validate manifest
run: |
flatpak run org.flathub.flatpak-external-data-checker \
--check-outdated org.fkoehler.KTailctl.yml
- name: Build
run: |
flatpak-builder --user --force-clean \
build-dir org.fkoehler.KTailctl.yml
lint:
name: Lint (${{ matrix.linter }})
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
include:
- linter: clang-tidy
script: ./scripts/clang-tidy.sh
- linter: clazy
script: ./scripts/clazy.sh
- linter: cppcheck
script: ./scripts/cppcheck.sh
- linter: iwyu
script: ./scripts/iwyu.sh
env:
CC: clang
CXX: clang++
LLVM_VERSION: 22
CPPCHECK_VERSION: 2.20.0
steps:
- name: Checkout repository
uses: actions/checkout@v7
- name: Set up Go
uses: actions/setup-go@v6
with:
go-version-file: src/tailscale/wrapper/go.mod
cache-dependency-path: src/tailscale/wrapper/go.sum
- name: Vendor Go dependencies
run: go mod vendor
working-directory: src/tailscale/wrapper
- name: Add Kitware repository
run: ./scripts/ci/apt-add-kitware-repo.sh
- name: Add KDE Neon repository
run: ./scripts/ci/apt-add-kde-neon-repo.sh
- name: Update apt cache
run: sudo apt-get update -yq
- name: Install dependencies
run: sudo ./scripts/neon-deps.sh
- name: Add LLVM apt repository
if: matrix.linter == 'clang-tidy' || matrix.linter == 'iwyu'
run: |
sudo ./scripts/ci/apt-add-llvm-repo.sh
sudo apt-get update -yq
- name: Install clang-tidy
if: matrix.linter == 'clang-tidy'
run: sudo apt-get install -yq "clang-tidy-${LLVM_VERSION}"
- name: Install lint dependencies
run: sudo apt-get install -yq clang-tools clazy
- name: Build iwyu from source
if: matrix.linter == 'iwyu'
run: ./scripts/ci/build-iwyu.sh
- name: Build cppcheck from source
if: matrix.linter == 'cppcheck'
run: |
sudo apt-get install -yq libpcre3-dev
./scripts/ci/build-cppcheck.sh
- name: Configure
run: |
cmake -B build -G Ninja \
-DCMAKE_BUILD_TYPE=Debug \
-DKTAILCTL_ENABLE_TESTS=OFF \
-DKTAILCTL_FLATPAK_BUILD=OFF
- name: Build
run: cmake --build build --parallel
- name: Run ${{ matrix.linter }}
run: ${{ matrix.script }}
native_build:
name: Native Build (${{ matrix.compiler }})
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
include:
- compiler: gcc
cc: gcc
cxx: g++
- compiler: clang
cc: clang
cxx: clang++
- compiler: clang-sanitizers
cc: clang
cxx: clang++
cmake_flags: >-
-DKTAILCTL_ENABLE_ASAN=ON -DKTAILCTL_ENABLE_UBSAN=ON
env:
CC: ${{ matrix.cc }}
CXX: ${{ matrix.cxx }}
steps:
- name: Checkout repository
uses: actions/checkout@v7
- name: Set up Go
uses: actions/setup-go@v6
with:
go-version-file: src/tailscale/wrapper/go.mod
cache-dependency-path: src/tailscale/wrapper/go.sum
- name: Vendor Go dependencies
run: go mod vendor
working-directory: src/tailscale/wrapper
- name: Add Kitware repository
run: ./scripts/ci/apt-add-kitware-repo.sh
- name: Add KDE Neon repository
run: ./scripts/ci/apt-add-kde-neon-repo.sh
- name: Update apt cache
run: sudo apt-get update -yq
- name: Install dependencies
run: sudo ./scripts/neon-deps.sh
- name: Configure
run: |
cmake -B build -G Ninja \
-DCMAKE_BUILD_TYPE=Debug \
-DKTAILCTL_ENABLE_TESTS=ON \
-DKTAILCTL_FLATPAK_BUILD=OFF \
${{ matrix.cmake_flags }}
- name: Build
run: cmake --build build --parallel
- name: Test
run: ctest --test-dir build --output-on-failure
create_release:
name: Create Release
if: startsWith(github.ref, 'refs/tags/v')
runs-on: ubuntu-latest
needs:
- git_hooks
- flatpak_build
- lint
- native_build
permissions:
contents: write
steps:
- name: Checkout repository
uses: actions/checkout@v7
- name: Setup go.
uses: actions/setup-go@v6
with:
go-version-file: src/tailscale/wrapper/go.mod
cache-dependency-path: src/tailscale/wrapper/go.sum
- name: Create release
run: ./scripts/create-release.sh
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}