From d7051705d04686ca6887c54c84af0db02621398a Mon Sep 17 00:00:00 2001 From: Thomas Vigouroux Date: Wed, 16 Sep 2020 19:29:43 +0200 Subject: [PATCH 1/3] ci: setup GitHub actions for windows --- .github/workflows/ci_windows.yml | 39 ++++++++++++++++++++++++++++++++ ci/build.ps1 | 18 +++++++-------- 2 files changed, 48 insertions(+), 9 deletions(-) create mode 100644 .github/workflows/ci_windows.yml diff --git a/.github/workflows/ci_windows.yml b/.github/workflows/ci_windows.yml new file mode 100644 index 0000000000..45702087da --- /dev/null +++ b/.github/workflows/ci_windows.yml @@ -0,0 +1,39 @@ +name: Run Windows CI + +on: [push, pull_request] + +env: + DEPS_BUILD_DIR: "C:/projects/nvim-deps" + DEPS_PREFIX: "C:/projects/nvim-deps/usr" + # Silence/redirect errors due to missing locking support (via libgcov). + # GCOV_ERROR_FILE: "$(TEMP)/libgcov-errors.log" + +jobs: + test: + runs-on: windows-latest + strategy: + matrix: + config: [ MINGW_64-gcov, MINGW_32, MSVC_64, MSVC_32 ] + name: Build and test + steps: + - uses: actions/checkout@v2 + + - uses: actions/cache@v2 + with: + path: C:\projects\nvim-deps + key: ${{ matrix.config }}-${{ hashFiles('third-party\**') }} + + - name: Run CI + run: powershell ci\build.ps1 + env: + CONFIGURATION: ${{ matrix.config }} + + - name: Upload artifacts + uses: actions/upload-artifact@v2 + with: + name: builds + if-no-files-found: ignore + # These files will be zipped (making Neovim.zip double zipped) + path: | + build\Neovim.zip + build\bin\nvim.exe diff --git a/ci/build.ps1 b/ci/build.ps1 index dbc43aecf3..5209045e95 100644 --- a/ci/build.ps1 +++ b/ci/build.ps1 @@ -3,7 +3,6 @@ Set-StrictMode -Version Latest $ErrorActionPreference = 'Stop' $ProgressPreference = 'SilentlyContinue' -$isPullRequest = ($env:APPVEYOR_PULL_REQUEST_HEAD_COMMIT -ne $null) $env:CONFIGURATION -match '^(?\w+)_(?32|64)(?:-(?