diff options
author | dundargoc <33953936+dundargoc@users.noreply.github.com> | 2023-02-27 22:47:34 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-02-27 22:47:34 +0100 |
commit | 521034edef342f440f3e4bfc759159acc55d3cef (patch) | |
tree | a2b878fc13dd7cc6b1628bd368ef938ab25df865 | |
parent | f89e3497c88f59916e3bce2e902be9b0f8bf15ba (diff) | |
download | rneovim-521034edef342f440f3e4bfc759159acc55d3cef.tar.gz rneovim-521034edef342f440f3e4bfc759159acc55d3cef.tar.bz2 rneovim-521034edef342f440f3e4bfc759159acc55d3cef.zip |
ci: build all build types on each PR (#22441)
Building with Release and RelWithDebInfo build types only on build
system changes is too optimistic, as shown by
https://github.com/neovim/neovim/pull/22436 and
659234c95a23307486a4b7496f3f4391a4bdbe58.
-rw-r--r-- | .github/workflows/build.yml | 23 | ||||
-rw-r--r-- | .github/workflows/test.yml | 28 |
2 files changed, 28 insertions, 23 deletions
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index ef0a17ce1d..10e3e2bdeb 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -114,26 +114,3 @@ jobs: run: | cmake -B build -G Ninja cmake --build build - - multi-config: - runs-on: ubuntu-22.04 - timeout-minutes: 10 - steps: - - uses: actions/checkout@v3 - - - name: Install dependencies - run: ./.github/scripts/install_deps.sh - - - 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 - - - name: Release - run: cmake --build build --config Release - - - name: MinSizeRel - run: cmake --build build --config MinSizeRel diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 3bd982477a..c6b8291458 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -294,6 +294,34 @@ jobs: echo 'Core dumps found' exit 1 + build-types: + runs-on: ubuntu-22.04 + timeout-minutes: 10 + steps: + - uses: actions/checkout@v3 + + - 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_BUILD_DIR -G "Ninja Multi-Config" + cmake --build $DEPS_BUILD_DIR + + - name: Configure + run: cmake -B build -G "Ninja Multi-Config" -D CMAKE_C_COMPILER=gcc + + - 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: runs-on: windows-2019 timeout-minutes: 45 |