ci.yml (766B)
1 name: ci 2 3 on: 4 push: 5 branches: [master] 6 pull_request: 7 branches: [master] 8 9 jobs: 10 macOS-gcc: 11 runs-on: macOS-latest 12 steps: 13 - uses: actions/checkout@v2 14 - name: Compile with gcc 15 env: 16 CC: gcc 17 run: | 18 export CFLAGS="$CFLAGS -Werror" 19 make clean 20 make 21 make clean 22 macOS-clang: 23 runs-on: macOS-latest 24 steps: 25 - uses: actions/checkout@v2 26 - name: Compile with clang 27 env: 28 CC: clang 29 run: | 30 brew update 31 brew install llvm 32 export PATH="/usr/local/opt/llvm/bin:$PATH" 33 export CFLAGS="$CFLAGS -Werror" 34 make clean 35 make 36 make clean 37 clang-tidy src/* -- -I/usr/include