Skip to content

Remove utils since all iterators were upstreamed #122

Remove utils since all iterators were upstreamed

Remove utils since all iterators were upstreamed #122

Workflow file for this run

name: Lint
on: [push, pull_request]
env:
CARGO_TERM_COLOR: always
jobs:
format:
name: "Formatting Check"
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@v2
- name: Clang-Format Formatting
uses: jidicula/[email protected]
with:
check-path: llvm-plugin/cpp
- name: Rustfmt Formatting
run: |
cargo fmt --check --all
lint:
name: "Lint Check"
runs-on: ubuntu-latest
env:
LLVM_INSTALL_PATH: ~/llvm
LLVM_VERSION: "14"
steps:
- name: Checkout Repo
uses: actions/checkout@v2
- name: Setup LLVM Installation Path
run: |
mkdir ${{ env.LLVM_INSTALL_PATH }}
echo "$HOME/llvm/bin" >> $GITHUB_PATH
- name: Check LLVM Artifacts In Cache
id: cache-llvm
uses: actions/cache@v3
with:
path: |
${{ env.LLVM_INSTALL_PATH }}/bin/llvm-config
${{ env.LLVM_INSTALL_PATH }}/bin/opt
${{ env.LLVM_INSTALL_PATH }}/lib/libLLVM-${{ env.LLVM_VERSION }}.so
${{ env.LLVM_INSTALL_PATH }}/lib/libLLVM.so
${{ env.LLVM_INSTALL_PATH }}/include
key: ${{ runner.os }}-llvm-${{ env.LLVM_VERSION }}-opt
- name: LLVM Artifacts Missing
if: steps.cache-llvm.outputs.cache-hit != 'true'
run: false
- name: Clang-Tidy Lint
run: |
clang-tidy \
llvm-plugin/cpp/*.{cc,hh} \
--warnings-as-errors='*,-llvm-header-guard' \
-- -I"$HOME/llvm/include" -std=c++17 -DLLVM${{ env.LLVM_VERSION }}_0
- name: Clippy Lint
run: |
cargo clippy \
-p llvm-plugin \
--no-default-features \
--features target-x86,llvm${{ env.LLVM_VERSION }}-0 \
-- -D warnings