-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* [CI] initialize * [CI] initialize * [CI] initialize with MLIR * [CI] initialize with MLIR * [CI] add check
- Loading branch information
1 parent
6de7bca
commit 9115242
Showing
6 changed files
with
142 additions
and
175 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
BasedOnStyle: LLVM |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
name: Build | ||
on: [push, pull_request] | ||
jobs: | ||
build: | ||
strategy: | ||
matrix: | ||
version: [18, 19, 20] | ||
env: | ||
RUSTFLAGS: "-Dwarnings" | ||
MLIR_DIR: /usr/lib/llvm-${{matrix.version}}/lib/cmake/mlir/ | ||
LLVM_DIR: /usr/lib/llvm-${{matrix.version}}/ | ||
CXX: /usr/lib/llvm-${{matrix.version}}/bin/clang++ | ||
CC: /usr/lib/llvm-${{matrix.version}}/bin/clang | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Install LLVM | ||
run: | | ||
wget https://apt.llvm.org/llvm.sh | ||
chmod +x llvm.sh | ||
sudo ./llvm.sh ${{matrix.version}} all | ||
sudo apt-get install -y mlir-${{matrix.version}}-tools libmlir-${{matrix.version}}-dev ninja-build cmake | ||
- name: Install LLVM Lit | ||
run: | | ||
pip install lit | ||
- name: Setup Rust Toolchain | ||
uses: dtolnay/rust-toolchain@nightly | ||
with: | ||
components: clippy, rustfmt | ||
- name: ReuseIR Check | ||
run: | | ||
cmake -S reuse-mlir -B build -GNinja -DCMAKE_BUILD_TYPE=RelWithDebInfo | ||
cmake --build build --target check --parallel | ||
- name: Run Clippy | ||
run: cargo clippy | ||
- name: Run RustFmt | ||
run: cargo fmt --check | ||
- name: Run Rust Test | ||
run: cargo test | ||
|
||
|
||
|
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
name: clang-format Check | ||
on: [push, pull_request] | ||
jobs: | ||
formatting-check: | ||
name: Formatting Check | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Run clang-format style check for ReuseIR. | ||
uses: jidicula/[email protected] | ||
with: | ||
clang-format-version: '18' | ||
check-path: reuse-mlir |
Oops, something went wrong.