Skip to content

Commit

Permalink
Fix CI
Browse files Browse the repository at this point in the history
  • Loading branch information
DarthSim committed Jul 11, 2024
1 parent 902a708 commit 0097760
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/ci-docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ RUN curl https://sh.rustup.rs -sSf | sh -s -- -y \
&& cd /root \
&& git clone --depth 1 https://github.com/DarthSim/quantizr.git \
&& cd quantizr \
&& cargo cinstall --release --library-type=cdylib \
&& cargo cinstall --release --library-type=cdylib --prefix=/usr/local --libdir=/usr/local/lib \
&& rm -rf /root/.rustup /root/.cargo

ENV PATH="/root/.python/bin:$PATH"
Expand Down
18 changes: 14 additions & 4 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,19 @@ jobs:
env:
LD_LIBRARY_PATH: "/usr/local/lib:/root/vips/${{ matrix.vips-version }}/lib"
PKG_CONFIG_PATH: "/usr/local/lib/pkgconfig:/root/vips/${{ matrix.vips-version }}/lib/pkgconfig"
- name: Clang lint
uses: cpp-linter/cpp-linter-action@v2

c-lint:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
- uses: cpp-linter/cpp-linter-action@v2
id: linter
with:
style: file
version: 18
tidy-checks: '-*'
version: 18 # Ubuntu 24.04 provides clang-format-18
tidy-checks: '-*' # disable clang-tidy

- name: Fail fast
continue-on-error: true # TODO: remove this line in the future
if: steps.linter.outputs.checks-failed > 0
run: exit 1

0 comments on commit 0097760

Please sign in to comment.