mirror of
https://github.com/neovim/neovim.git
synced 2026-07-25 10:12:01 +00:00
Merge pull request #38546 from dchinmay2/push-pozrrzptmvnv
build(zig): add formatc and lintc steps
This commit is contained in:
46
.github/workflows/test.yml
vendored
46
.github/workflows/test.yml
vendored
@@ -30,6 +30,40 @@ env:
|
||||
# TEST_FILTER: foo
|
||||
|
||||
jobs:
|
||||
lintc:
|
||||
runs-on: ubuntu-24.04
|
||||
timeout-minutes: 20
|
||||
env:
|
||||
NVIM_LOG_FILE: ${{ github.workspace }}/zig-out/nvim.log
|
||||
OPTS: -Doptimize=ReleaseFast -Dci-build
|
||||
steps:
|
||||
- uses: actions/checkout@v6
|
||||
with:
|
||||
persist-credentials: false
|
||||
|
||||
- uses: ./.github/actions/setup
|
||||
|
||||
- uses: mlugg/setup-zig@d1434d08867e3ee9daa34448df10607b98908d29 # v2.2.1
|
||||
with:
|
||||
version: 0.16.0
|
||||
- run: sudo apt-get install -y inotify-tools
|
||||
|
||||
- name: nvim_bin
|
||||
id: nvim_bin
|
||||
run: zig build nvim_bin $OPTS
|
||||
|
||||
- if: success() || failure() && steps.nvim_bin.outcome == 'success'
|
||||
name: clint.lua
|
||||
run: zig build lintc-clint $OPTS
|
||||
|
||||
- if: success() || failure() && steps.nvim_bin.outcome == 'success'
|
||||
name: clang-tidy
|
||||
run: zig build lintc-clang-tidy $OPTS
|
||||
|
||||
- if: success() || failure() && steps.nvim_bin.outcome == 'success'
|
||||
name: uncrustify
|
||||
run: zig build lintc-uncrustify $OPTS
|
||||
|
||||
lint:
|
||||
runs-on: ubuntu-24.04-arm
|
||||
timeout-minutes: 10
|
||||
@@ -82,18 +116,6 @@ jobs:
|
||||
name: lintquery
|
||||
run: cmake --build build --target lintquery
|
||||
|
||||
- if: success() || failure() && steps.abort_job.outputs.status == 'success'
|
||||
name: clint.lua
|
||||
run: cmake --build build --target lintc-clint
|
||||
|
||||
- if: success() || failure() && steps.abort_job.outputs.status == 'success'
|
||||
name: clang-tidy
|
||||
run: cmake --build build --target lintc-clang-tidy
|
||||
|
||||
- if: success() || failure() && steps.abort_job.outputs.status == 'success'
|
||||
name: uncrustify
|
||||
run: cmake --build build --target lintc-uncrustify
|
||||
|
||||
clang-analyzer:
|
||||
runs-on: ubuntu-24.04-arm
|
||||
timeout-minutes: 20
|
||||
|
||||
Reference in New Issue
Block a user