mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
ci: setup GitHub actions for windows
This commit is contained in:
39
.github/workflows/ci_windows.yml
vendored
Normal file
39
.github/workflows/ci_windows.yml
vendored
Normal file
@@ -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
|
||||
Reference in New Issue
Block a user