2023-09-23 08:21:20 +05:30
|
|
|
name: GitHubCI
|
2020-11-22 02:04:35 +05:30
|
|
|
|
|
|
|
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: |
|
2023-01-10 14:01:46 +06:00
|
|
|
# see: https://github.com/actions/setup-python/issues/577
|
|
|
|
brew update || true
|
|
|
|
brew install llvm || true
|
2024-04-28 20:27:24 +05:30
|
|
|
brew unlink python@3.11 && brew link python@3.11
|
2020-11-22 02:04:35 +05:30
|
|
|
export PATH="/usr/local/opt/llvm/bin:$PATH"
|
2024-04-28 20:27:24 +05:30
|
|
|
export PATH="/opt/homebrew/opt/llvm/bin:$PATH"
|
2020-11-22 02:04:35 +05:30
|
|
|
export CFLAGS="$CFLAGS -Werror"
|
|
|
|
make clean
|
|
|
|
make
|
|
|
|
make clean
|
|
|
|
clang-tidy src/* -- -I/usr/include
|
2022-05-30 19:45:28 +02:00
|
|
|
ubuntu-patches:
|
|
|
|
runs-on: ubuntu-latest
|
2022-05-30 01:01:46 +02:00
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- name: Compile patches with gcc
|
|
|
|
env:
|
|
|
|
CC: gcc
|
|
|
|
run: |
|
2022-06-30 01:23:32 +06:00
|
|
|
make checkpatches
|