GHA: integrate unix and windows settings

This commit is contained in:
erw7 2020-12-17 15:06:07 +09:00
parent abdb2b4d29
commit 934b8e172e
2 changed files with 24 additions and 53 deletions

View File

@ -6,7 +6,7 @@ on:
branches: 'master'
jobs:
build:
unixish:
name: ${{ matrix.os }} ${{ matrix.flavor }} (cc=${{ matrix.cc }})
strategy:
matrix:
@ -81,3 +81,26 @@ jobs:
- name: Cache dependencies
if: ${{ success() }}
run: ./ci/before_cache.sh
windows:
runs-on: windows-2016
env:
DEPS_BUILD_DIR: "C:/projects/nvim-deps"
DEPS_PREFIX: "C:/projects/nvim-deps/usr"
strategy:
matrix:
config: [ MINGW_64-gcov, MINGW_32, MSVC_64, MSVC_32 ]
name: windows (${{ matrix.config }})
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 }}

View File

@ -1,52 +0,0 @@
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-2016
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\**') }}
- uses: actions/setup-python@v2
with:
pyhon-version: '2.7'
- uses: actions/setup-python@v2
with:
pyhon-version: '3.5'
- uses: actions/setup-node@v1
with:
node-version: '12.x'
- 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