diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 9311c63..3badafd 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -56,12 +56,6 @@ jobs: token: ${{ secrets.GITHUB_TOKEN }} args: --target riscv32imc-unknown-none-elf --all-features - - name: clang-format check - uses: jidicula/clang-format-check@v4.14.0 - with: - clang-format-version: 14 - check-path: . - rust-build-programs: name: Build Programs runs-on: ubuntu-22.04 @@ -107,6 +101,26 @@ jobs: name: vexriscv-test-binaries path: clash-vexriscv-sim/vexriscv-test-binaries.tar + c-checks: + name: C checks + runs-on: ubuntu-22.04 + container: + image: ubuntu:22.04 + + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Install dependencies + run: | + apt-get update + apt-get install -y clang clang-format + + - name: clang-format check + uses: jidicula/clang-format-check@v4.14.0 + with: + clang-format-version: 14 + check-path: 'clash-vexriscv' vex-riscv: name: VexRiscv integration