ci.yml (1097B)
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 # see: https://github.com/actions/setup-python/issues/577 31 brew update || true 32 brew install llvm || true 33 brew link --overwrite python@3.11 34 export PATH="/usr/local/opt/llvm/bin:$PATH" 35 export CFLAGS="$CFLAGS -Werror" 36 make clean 37 make 38 make clean 39 clang-tidy src/* -- -I/usr/include 40 ubuntu-patches: 41 runs-on: ubuntu-latest 42 steps: 43 - uses: actions/checkout@v2 44 - name: Compile patches with gcc 45 env: 46 CC: gcc 47 run: | 48 make checkpatches