Skip to content

Fixed github workflow #2

Fixed github workflow

Fixed github workflow #2

Workflow file for this run

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