Fixed github workflow #2
Workflow file for this run
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: test-clang-format | |
| on: [push, pull_request] | |
| jobs: | |
| c_style_check: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - uses: DoozyX/clang-format-lint-action@v0.14 | |
| with: | |
| source: '.' | |
| # exclude: './third_party ./external' | |
| extensions: 'c,h,cpp,hpp' | |
| clangFormatVersion: 14 | |
| style: llvm | |
| c_build_check: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - uses: DoozyX/clang-format-lint-action@v0.14 | |
| - uses: lukka/get-cmake@latest | |
| - name: Build pam module | |
| run: | | |
| sudo apt update && sudo apt install libpam0g-dev -y | |
| ./install_pam.sh | |
| ./pam/build/myprogram | |
| - name: Build usb_switch | |
| run: | | |
| cd mirte-master/usb_switch/ | |
| sudo apt install libgpiod-dev -y | |
| mkdir build | |
| cd build | |
| cmake .. | |
| make -j |