aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows/test.yml
diff options
context:
space:
mode:
authordundargoc <gocdundar@gmail.com>2023-10-22 13:30:32 +0200
committerdundargoc <33953936+dundargoc@users.noreply.github.com>2023-11-03 22:16:45 +0100
commit9ad239690fe6b151afe2f43c2858d68a2b877e1d (patch)
tree9c682b2397224a9dec6cdcc22b49c27fbcdd91c8 /.github/workflows/test.yml
parent310896f6aa1d1242d531c30d2cffa20ff8cb635f (diff)
downloadrneovim-9ad239690fe6b151afe2f43c2858d68a2b877e1d.tar.gz
rneovim-9ad239690fe6b151afe2f43c2858d68a2b877e1d.tar.bz2
rneovim-9ad239690fe6b151afe2f43c2858d68a2b877e1d.zip
ci: various fixes
- adjust reviewers - add workflow as cache key - install attr only when tesitng - fix s390x workflow by checking out the merge PR instead of master
Diffstat (limited to '.github/workflows/test.yml')
-rw-r--r--.github/workflows/test.yml27
1 files changed, 9 insertions, 18 deletions
diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml
index 1ff6b31a2d..a1133404e2 100644
--- a/.github/workflows/test.yml
+++ b/.github/workflows/test.yml
@@ -36,9 +36,8 @@ jobs:
CC: clang
steps:
- uses: actions/checkout@v4
-
- - name: Install dependencies
- run: ./.github/scripts/install_deps.sh
+ - run: ./.github/scripts/install_deps.sh
+ - uses: ./.github/actions/cache
- name: Install stylua
run: |
@@ -47,8 +46,6 @@ jobs:
(cd "$BIN_DIR"; unzip stylua*.zip)
echo "$BIN_DIR" >> $GITHUB_PATH
- - uses: ./.github/actions/cache
-
- name: Build third-party deps
run: |
cmake -S cmake.deps -B .deps -G Ninja
@@ -96,9 +93,9 @@ jobs:
- uses: ./.github/actions/cache
- name: Build third-party deps
run: |
- cmake -S cmake.deps -B .deps -G Ninja
+ cmake -S cmake.deps --preset ci
cmake --build .deps
- cmake -B build -G Ninja
+ cmake --preset ci
- run: cmake --build build --target clang-analyzer
posix:
@@ -128,6 +125,8 @@ jobs:
CC: ${{ matrix.build.cc }}
steps:
- uses: actions/checkout@v4
+ - run: ./.github/scripts/install_deps.sh --test
+ - uses: ./.github/actions/cache
- name: Set up environment
run: |
@@ -137,9 +136,6 @@ jobs:
- name: Create log dir
run: mkdir -p "$LOG_DIR"
- - name: Install dependencies
- run: ./.github/scripts/install_deps.sh --test
-
- if: ${{ matrix.test != 'unittest' }}
name: Set up interpreter packages
run: |
@@ -157,11 +153,9 @@ jobs:
sudo cpanm -n Neovim::Ext || cat "$HOME/.cpanm/build.log"
perl -W -e 'use Neovim::Ext; print $Neovim::Ext::VERSION'
- - uses: ./.github/actions/cache
-
- name: Build third-party deps
run: |
- cmake -S cmake.deps -B .deps -G Ninja ${{ matrix.build.deps_flags }}
+ cmake -S cmake.deps --preset ci ${{ matrix.build.deps_flags }}
cmake --build .deps
- name: Build
@@ -281,10 +275,7 @@ jobs:
CC: gcc
steps:
- uses: actions/checkout@v4
-
- - name: Install dependencies
- run: ./.github/scripts/install_deps.sh
-
+ - run: ./.github/scripts/install_deps.sh
- uses: ./.github/actions/cache
- name: Build third-party deps
@@ -293,7 +284,7 @@ jobs:
cmake --build .deps
- name: Configure
- run: cmake -B build -G "Ninja Multi-Config" -D CI_BUILD=ON
+ run: cmake --preset ci -G "Ninja Multi-Config"
- name: Release
run: cmake --build build --config Release