2020-11-21 20:34:35 +00:00
|
|
|
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
|
2022-05-29 23:01:46 +00:00
|
|
|
macOS-patches:
|
|
|
|
runs-on: macOS-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- name: Compile patches with gcc
|
|
|
|
env:
|
|
|
|
CC: gcc
|
|
|
|
run: |
|
|
|
|
export CFLAGS="$CFLAGS -Werror"
|
|
|
|
make clean
|
|
|
|
echo "########## O_NAMEFIRST=1 ##########"
|
|
|
|
make O_NAMEFIRST=1
|
|
|
|
make clean
|
|
|
|
echo "########## O_GITSTATUS=1 ##########"
|
|
|
|
make O_GITSTATUS=1
|
|
|
|
make clean
|
|
|
|
echo "########## O_RESTOREPREVIEW=1 ##########"
|
|
|
|
make O_RESTOREPREVIEW=1
|
|
|
|
make clean
|
|
|
|
echo "########## O_NAMEFIRST=1 O_GITSTATUS=1 ##########"
|
|
|
|
make O_NAMEFIRST=1 O_GITSTATUS=1
|
|
|
|
make clean
|
|
|
|
echo "########## O_NAMEFIRST=1 O_RESTOREPREVIEW=1 ##########"
|
|
|
|
make O_NAMEFIRST=1 O_RESTOREPREVIEW=1
|
|
|
|
make clean
|
|
|
|
echo "########## O_GITSTATUS=1 O_RESTOREPREVIEW=1 ##########"
|
|
|
|
make O_GITSTATUS=1 O_RESTOREPREVIEW=1
|
|
|
|
make clean
|
|
|
|
echo "########## O_NAMEFIRST=1 O_GITSTATUS=1 O_RESTOREPREVIEW=1 ##########"
|
|
|
|
make O_NAMEFIRST=1 O_GITSTATUS=1 O_RESTOREPREVIEW=1
|
|
|
|
make clean
|