aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows
diff options
context:
space:
mode:
authorkylo252 <59826753+kylo252@users.noreply.github.com>2022-07-18 00:07:35 +0200
committerGitHub <noreply@github.com>2022-07-17 15:07:35 -0700
commit9f4b19b6d029263d40b099669a57abbd807fd86e (patch)
treeef692c0b0a0253f58f79674b4c91284474fcb40f /.github/workflows
parent13abe20b5f855779456c84b9583ed614223a69c8 (diff)
downloadrneovim-9f4b19b6d029263d40b099669a57abbd807fd86e.tar.gz
rneovim-9f4b19b6d029263d40b099669a57abbd807fd86e.tar.bz2
rneovim-9f4b19b6d029263d40b099669a57abbd807fd86e.zip
ci: refactor build.ps1 #19336
Refactor `build.ps1` into a more modular design https://github.com/neovim/neovim/blob/9728f3b558c8cf9bd2bc331de8a5cc80ba0d3797/.github/workflows/ci.yml#L283-L296 - Separate CI steps. - Remove unneeded code related to setting up CMake. - Use parallel/incremental builds. - Fix github's cache. - Clear the way for the possibility of replacing this file with a cmake-preset: https://github.com/neovim/neovim/pull/19128
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/ci.yml22
-rw-r--r--.github/workflows/release.yml2
2 files changed, 19 insertions, 5 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index d4c102bb04..1393b987d9 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -269,6 +269,7 @@ jobs:
env:
DEPS_BUILD_DIR: ${{ format('{0}/nvim-deps', github.workspace) }}
DEPS_PREFIX: ${{ format('{0}/nvim-deps/usr', github.workspace) }}
+ CMAKE_BUILD_TYPE: "RelWithDebInfo"
name: windows (MSVC_64)
steps:
- uses: actions/checkout@v3
@@ -278,7 +279,20 @@ jobs:
path: ${{ env.DEPS_BUILD_DIR }}
key: ${{ hashFiles('cmake.deps\**') }}
- - name: Run CI
- run: powershell ci\build.ps1
- env:
- CONFIGURATION: MSVC_64
+ - name: Build deps
+ run: .\ci\build.ps1 -BuildDeps
+
+ - name: Build nvim
+ run: .\ci\build.ps1 -Build
+
+ - name: Install test deps
+ continue-on-error: false
+ run: .\ci\build.ps1 -EnsureTestDeps
+
+ - if: "!cancelled()"
+ name: Run tests
+ run: .\ci\build.ps1 -Test
+
+ - if: "!cancelled()"
+ name: Run old tests
+ run: .\ci\build.ps1 -TestOld
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index b58488ef93..11cc1ab03d 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -138,7 +138,7 @@ jobs:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- - run: powershell ci\build.ps1 -NoTests
+ - run: powershell ci\build.ps1 -Package
- uses: actions/upload-artifact@v3
with:
name: ${{ matrix.archive }}