Clear keys after reading plugin key #2459
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: GitHubCI | |
| 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: | | |
| # see: https://github.com/actions/setup-python/issues/577 | |
| brew update || true | |
| brew install llvm || true | |
| brew unlink [email protected] && brew link [email protected] | |
| export PATH="/usr/local/opt/llvm/bin:$PATH" | |
| export PATH="/opt/homebrew/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: | | |
| sudo apt install libreadline-dev | |
| make checkpatches | |
| ubuntu-cppcheck: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v2 | |
| - name: Static analysis with cppcheck | |
| run: | | |
| sudo apt install cppcheck libreadline-dev | |
| cppcheck --std="c11" --error-exitcode=1 --enable=performance,portability \ | |
| --force --inline-suppr --max-ctu-depth=8 -j"$(nproc)" \ | |
| $(pkg-config --cflags ncurses) src/nnn.c |