mirror of
https://github.com/jarun/nnn.git
synced 2024-08-25 16:51:55 +00:00
adds a script `check-patches.sh` to check for patch failures and also adds a make target `checkpatches` which will invoke the check-patches script.
47 lines
969 B
YAML
47 lines
969 B
YAML
name: ci
|
|
|
|
on:
|
|
push:
|
|
branches: [master]
|
|
pull_request:
|
|
branches: [master]
|
|
|
|
jobs:
|
|
macOS-gcc:
|
|
runs-on: macOS-latest
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- name: Compile with gcc
|
|
env:
|
|
CC: gcc
|
|
run: |
|
|
export CFLAGS="$CFLAGS -Werror"
|
|
make clean
|
|
make
|
|
make clean
|
|
macOS-clang:
|
|
runs-on: macOS-latest
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- name: Compile with clang
|
|
env:
|
|
CC: clang
|
|
run: |
|
|
brew update
|
|
brew install llvm
|
|
export PATH="/usr/local/opt/llvm/bin:$PATH"
|
|
export CFLAGS="$CFLAGS -Werror"
|
|
make clean
|
|
make
|
|
make clean
|
|
clang-tidy src/* -- -I/usr/include
|
|
ubuntu-patches:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- name: Compile patches with gcc
|
|
env:
|
|
CC: gcc
|
|
run: |
|
|
make checkpatches
|