aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.github/workflows/ci.yml19
1 files changed, 15 insertions, 4 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index b8a8c01137..099f0b64d1 100644
--- a/.github/workflows/ci.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