aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows
diff options
context:
space:
mode:
authorJames McCoy <jamessan@jamessan.com>2020-11-24 22:42:40 -0500
committerGitHub <noreply@github.com>2020-11-24 22:42:40 -0500
commit11e64de511461999b95feaaa4880a820604a7138 (patch)
treef2a93092b54171a9e329461986633502e2eb8733 /.github/workflows
parent7caa622afcbbc1f789c24a3f29525759486208da (diff)
parent0bb565b13bcc7a199bf997a67b9a6039d584b84e (diff)
downloadrneovim-11e64de511461999b95feaaa4880a820604a7138.tar.gz
rneovim-11e64de511461999b95feaaa4880a820604a7138.tar.bz2
rneovim-11e64de511461999b95feaaa4880a820604a7138.zip
Merge pull request #13373 from jamessan/github-actions
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/ci.yml (renamed from .github/workflows/linux.yml)26
-rwxr-xr-x.github/workflows/env.sh3
2 files changed, 24 insertions, 5 deletions
diff --git a/.github/workflows/linux.yml b/.github/workflows/ci.yml
index b8a8c01137..70cdc3b4a2 100644
--- a/.github/workflows/linux.yml
+++ b/.github/workflows/ci.yml
@@ -1,21 +1,31 @@
-name: Linux CI
+name: CI
on: [push, pull_request]
jobs:
- linux:
- name: ${{ matrix.flavor }} (cc=${{ matrix.cc }})
- runs-on: ubuntu-20.04
+ build:
+ name: ${{ matrix.os }} ${{ matrix.flavor }} (cc=${{ matrix.cc }})
strategy:
matrix:
include:
- flavor: asan
cc: clang-11
+ runner: ubuntu-20.04
+ os: linux
- flavor: lint
cc: gcc
+ runner: ubuntu-20.04
+ os: linux
- flavor: tsan
cc: clang-11
+ runner: ubuntu-20.04
+ os: linux
+ - cc: clang
+ runner: macos-10.15
+ os: osx
+ runs-on: ${{ matrix.runner }}
env:
CC: ${{ matrix.cc }}
+ CI_OS_NAME: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
@@ -29,6 +39,7 @@ jobs:
sudo add-apt-repository 'deb http://apt.llvm.org/focal/ llvm-toolchain-focal-11 main'
- name: Install apt packages
+ if: matrix.os == 'linux'
run: |
sudo apt-get update
sudo apt-get install -y autoconf automake build-essential ccache cmake cpanminus cscope gcc-multilib gdb gettext gperf language-pack-tr libtool-bin locales ninja-build pkg-config python3 python3-pip python3-setuptools unzip valgrind xclip
@@ -37,6 +48,13 @@ jobs:
if: matrix.flavor == 'asan' || matrix.flavor == 'tsan'
run: sudo apt-get install -y clang-11
+ - name: Install brew packages
+ if: matrix.os == 'osx'
+ run: |
+ brew update >/dev/null
+ brew install automake ccache cpanminus ninja
+ brew upgrade
+
- name: Setup interpreter packages
run: |
./ci/before_install.sh
diff --git a/.github/workflows/env.sh b/.github/workflows/env.sh
index 84f26f949e..cc1cef5cc4 100755
--- a/.github/workflows/env.sh
+++ b/.github/workflows/env.sh
@@ -1,7 +1,7 @@
#!/bin/bash
set -e -u
-FLAVOR=$1
+FLAVOR=${1:-}
cat <<EOF >> "$GITHUB_PATH"
$HOME/.local/bin
@@ -24,6 +24,7 @@ DEPS_CMAKE_FLAGS=-DUSE_BUNDLED_GPERF=OFF
FUNCTIONALTEST=functionaltest
CCACHE_COMPRESS=1
CCACHE_SLOPPINESS=time_macros,file_macro
+CCACHE_DIR=$HOME/.ccache
EOF
BUILD_FLAGS="CMAKE_FLAGS=-DCI_BUILD=ON -DCMAKE_BUILD_TYPE=Debug -DCMAKE_INSTALL_PREFIX:PATH=$HOME/nvim-install -DBUSTED_OUTPUT_TYPE=nvim -DDEPS_PREFIX=$HOME/nvim-deps/usr -DMIN_LOG_LEVEL=3"