ci: various cleanups

- add reviewers
- correct cache key
This commit is contained in:
dundargoc 2023-09-27 17:53:06 +02:00 committed by dundargoc
parent 6c0f900699
commit 9eb5d9f13f
3 changed files with 43 additions and 31 deletions

View File

@ -22,5 +22,5 @@ runs:
with: with:
path: .deps path: .deps
key: ${{ env.CACHE_KEY }}-${{ steps.image.outputs.version }}-${{ hashFiles('cmake**', key: ${{ env.CACHE_KEY }}-${{ steps.image.outputs.version }}-${{ hashFiles('cmake**',
'.github/workflows/test.yml', 'CMakeLists.txt', '.github/**', 'CMakeLists.txt',
'runtime/CMakeLists.txt', 'src/nvim/**/CMakeLists.txt') }} 'runtime/CMakeLists.txt', 'src/nvim/**/CMakeLists.txt') }}

View File

@ -64,6 +64,10 @@ module.exports = async ({ github, context }) => {
reviewers.add("mfussenegger"); reviewers.add("mfussenegger");
} }
if (labels.includes("options")) {
reviewers.add("famiu");
}
if (labels.includes("platform:nix")) { if (labels.includes("platform:nix")) {
reviewers.add("teto"); reviewers.add("teto");
} }

View File

@ -52,8 +52,7 @@ jobs:
cmake -S cmake.deps -B .deps -G Ninja cmake -S cmake.deps -B .deps -G Ninja
cmake --build .deps cmake --build .deps
- if: success() || failure() && steps.abort_job.outputs.status == 'success' - run: cmake -B build -G Ninja -D CI_LINT=ON
run: cmake -B build -G Ninja -D CI_LINT=ON
- if: "!cancelled()" - if: "!cancelled()"
name: Determine if run should be aborted name: Determine if run should be aborted
@ -77,6 +76,7 @@ jobs:
run: cmake --build build --target lintc-clint run: cmake --build build --target lintc-clint
- if: success() || failure() && steps.abort_job.outputs.status == 'success' - if: success() || failure() && steps.abort_job.outputs.status == 'success'
name: clang-tidy
run: cmake --build build --target clang-tidy run: cmake --build build --target clang-tidy
- if: success() || failure() && steps.abort_job.outputs.status == 'success' - if: success() || failure() && steps.abort_job.outputs.status == 'success'
@ -228,34 +228,6 @@ jobs:
name: Show logs name: Show logs
run: cat $(find "$LOG_DIR" -type f) run: cat $(find "$LOG_DIR" -type f)
build-types:
runs-on: ubuntu-22.04
timeout-minutes: 10
steps:
- uses: actions/checkout@v4
- name: Install dependencies
run: ./.github/scripts/install_deps.sh
- uses: ./.github/actions/cache
- name: Build third-party deps
run: |
cmake -S cmake.deps -B .deps -G "Ninja Multi-Config"
cmake --build .deps
- name: Configure
run: cmake -B build -G "Ninja Multi-Config" -D CMAKE_C_COMPILER=gcc -D CI_BUILD=ON
- name: Release
run: cmake --build build --config Release
- name: RelWithDebInfo
run: cmake --build build --config RelWithDebInfo
- name: MinSizeRel
run: cmake --build build --config MinSizeRel
windows: windows:
runs-on: windows-2022 runs-on: windows-2022
timeout-minutes: 45 timeout-minutes: 45
@ -321,6 +293,42 @@ jobs:
cd test/old/testdir cd test/old/testdir
mingw32-make VERBOSE=1 mingw32-make VERBOSE=1
# This job tests the following things:
# - Check if Release, MinSizeRel and RelWithDebInfo compiles correctly.
# - Test the above build types with the GCC compiler specifically.
# Empirically the difference in warning levels between GCC and other
# compilers is particularly big.
# - Test if the build works with multi-config generators. We mostly use
# single-config generators so it's nice to have a small sanity check for
# multi-config.
build-types:
runs-on: ubuntu-22.04
timeout-minutes: 10
steps:
- uses: actions/checkout@v4
- name: Install dependencies
run: ./.github/scripts/install_deps.sh
- uses: ./.github/actions/cache
- name: Build third-party deps
run: |
cmake -S cmake.deps -B .deps -G "Ninja Multi-Config"
cmake --build .deps
- name: Configure
run: cmake -B build -G "Ninja Multi-Config" -D CMAKE_C_COMPILER=gcc -D CI_BUILD=ON
- name: Release
run: cmake --build build --config Release
- name: RelWithDebInfo
run: cmake --build build --config RelWithDebInfo
- name: MinSizeRel
run: cmake --build build --config MinSizeRel
with-external-deps: with-external-deps:
runs-on: ubuntu-22.04 runs-on: ubuntu-22.04
timeout-minutes: 10 timeout-minutes: 10