diff options
| author | dundargoc <33953936+dundargoc@users.noreply.github.com> | 2023-02-13 20:04:54 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-02-13 20:04:54 +0100 |
| commit | bb9c673d2cf022e75d1d34d2b2dd12a1e41dc6ac (patch) | |
| tree | d907afed5986ac45b39f6c6785a39d070def3563 /.github/workflows | |
| parent | 84cf6a0a7e58aace0e659f2c6bb61d7179164add (diff) | |
| download | rneovim-bb9c673d2cf022e75d1d34d2b2dd12a1e41dc6ac.tar.gz rneovim-bb9c673d2cf022e75d1d34d2b2dd12a1e41dc6ac.tar.bz2 rneovim-bb9c673d2cf022e75d1d34d2b2dd12a1e41dc6ac.zip | |
ci: automatically maximize MIN_LOG_LEVEL if CI detected (#22248)
Detect if on CI by checking that the CI environment variable is set to "true".
This is a common pattern among CI providers, including github actions and
cirrus.
Diffstat (limited to '.github/workflows')
| -rw-r--r-- | .github/workflows/ci.yml | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index da4bcc6ad4..4814e89a69 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -254,7 +254,7 @@ jobs: - name: Build run: | - cmake -B build -G Ninja -D CI_BUILD=ON -D CMAKE_INSTALL_PREFIX:PATH=$INSTALL_PREFIX -D MIN_LOG_LEVEL=3 ${{ matrix.flags }} + cmake -B build -G Ninja -D CI_BUILD=ON -D CMAKE_INSTALL_PREFIX:PATH=$INSTALL_PREFIX ${{ matrix.flags }} cmake --build build - if: "!cancelled()" @@ -383,7 +383,7 @@ jobs: run: make deps - name: Build - run: make CMAKE_FLAGS="-D CI_BUILD=ON -D CMAKE_INSTALL_PREFIX:PATH=$INSTALL_PREFIX -D MIN_LOG_LEVEL=3" + run: make CMAKE_FLAGS="-D CI_BUILD=ON -D CMAKE_INSTALL_PREFIX:PATH=$INSTALL_PREFIX" - name: Install run: make install |