ci: move configuring cmake to the build part of the CI

If the configuration fails then lints shouldn't be run, as most lint
steps depends on a successful configuration.
This commit is contained in:
dundargoc 2023-03-04 17:55:42 +01:00 committed by GitHub
parent 59542504b4
commit 3683d6b7a8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -75,6 +75,10 @@ jobs:
cmake -S cmake.deps -B $DEPS_BUILD_DIR -G Ninja cmake -S cmake.deps -B $DEPS_BUILD_DIR -G Ninja
cmake --build $DEPS_BUILD_DIR cmake --build $DEPS_BUILD_DIR
- if: success() || failure() && steps.abort_job.outputs.status == 'success'
name: configure
run: cmake -B build -G Ninja -D CI_BUILD=OFF
- if: "!cancelled()" - if: "!cancelled()"
name: Determine if run should be aborted name: Determine if run should be aborted
id: abort_job id: abort_job
@ -88,10 +92,6 @@ jobs:
version: latest version: latest
args: --check runtime/ args: --check runtime/
- if: success() || failure() && steps.abort_job.outputs.status == 'success'
name: configure
run: cmake -B build -G Ninja -D CI_BUILD=OFF
- if: success() || failure() && steps.abort_job.outputs.status == 'success' - if: success() || failure() && steps.abort_job.outputs.status == 'success'
name: luacheck name: luacheck
run: cmake --build build --target lintlua-luacheck run: cmake --build build --target lintlua-luacheck