aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordundargoc <33953936+dundargoc@users.noreply.github.com>2023-02-18 16:54:19 +0100
committerGitHub <noreply@github.com>2023-02-18 16:54:19 +0100
commit6ed5a9ab8c1908e49565acabe94121e79139a050 (patch)
tree0af11a2fd008eb1931e6654838a0618969388189
parente8540c31a96bfc72239806b84a0b7f3508e872ee (diff)
downloadrneovim-6ed5a9ab8c1908e49565acabe94121e79139a050.tar.gz
rneovim-6ed5a9ab8c1908e49565acabe94121e79139a050.tar.bz2
rneovim-6ed5a9ab8c1908e49565acabe94121e79139a050.zip
build: test multi-config generator (#22310)
Multi-config generators can be tricky so testing them would be good. Also test GCC release and MinSizeRel build types as they're prone to unusual warnings. Remove release testing from test.yml as this is a sufficient replacement.
-rw-r--r--.github/workflows/build.yml23
-rw-r--r--.github/workflows/test.yml6
2 files changed, 23 insertions, 6 deletions
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index 43e91d9ed4..6b9c63b2d8 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -15,7 +15,6 @@ concurrency:
group: ${{ github.workflow }}-${{ github.head_ref }}
cancel-in-progress: true
-
env:
BIN_DIR: ${{ github.workspace }}/bin
INSTALL_PREFIX: ${{ github.workspace }}/nvim-install
@@ -116,3 +115,25 @@ jobs:
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 -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 bfe6a22390..d9fdeaec9b 100644
--- a/.github/workflows/test.yml
+++ b/.github/workflows/test.yml
@@ -140,10 +140,6 @@ jobs:
cc: gcc
runner: ubuntu-22.04
flags: -D UNSIGNED_CHAR=ON
- - flavor: release
- cc: gcc
- runner: ubuntu-22.04
- flags: -D CMAKE_BUILD_TYPE=Release
- cc: clang
runner: macos-12
@@ -210,7 +206,7 @@ jobs:
id: abort_job
run: echo "status=${{ job.status }}" >> $GITHUB_OUTPUT
- - if: matrix.flavor != 'tsan' && matrix.flavor != 'release' && matrix.flavor != 'functionaltest-lua' && (success() || failure() && steps.abort_job.outputs.status == 'success')
+ - if: matrix.flavor != 'tsan' && matrix.flavor != 'functionaltest-lua' && (success() || failure() && steps.abort_job.outputs.status == 'success')
name: Unittest
timeout-minutes: 5
run: cmake --build build --target unittest