3838 with :
3939 components : rustfmt
4040 - run : cargo fmt --all -- --check
41- - run : cargo fmt --manifest-path compiler/ori_llvm/Cargo.toml -- --check
4241
4342 clippy :
4443 name : Clippy
5352 - uses : Swatinem/rust-cache@v2
5453 with :
5554 key : clippy
56- - run : cargo clippy --workspace --all-targets -- -D warnings
55+ - run : cargo clippy --workspace --exclude ori_llvm -- all-targets -- -D warnings
5756
5857 # Main test suite
5958 test :
@@ -69,14 +68,14 @@ jobs:
6968 key : test
7069
7170 - name : Build
72- run : cargo build --workspace
71+ run : cargo build --workspace --exclude ori_llvm
7372
7473 - name : Rust unit tests
7574 id : rust-tests
7675 continue-on-error : true
7776 run : |
7877 set -o pipefail
79- cargo test --workspace 2>&1 | tee rust-test-output.txt
78+ cargo test --workspace --exclude ori_llvm 2>&1 | tee rust-test-output.txt
8079 # Sum all "X passed" counts from "test result:" lines
8180 RUST_TESTS=$(grep -oE '[0-9]+ passed' rust-test-output.txt | grep -oE '^[0-9]+' | awk '{sum+=$1} END {print sum+0}')
8281 RUST_FAILED=$(grep -oE '[0-9]+ failed' rust-test-output.txt | grep -oE '^[0-9]+' | awk '{sum+=$1} END {print sum+0}')
10099 continue-on-error : true
101100 run : |
102101 set -o pipefail
103- cargo test --manifest-path compiler/ ori_rt/Cargo.toml 2>&1 | tee rt-test-output.txt
102+ cargo test -p ori_rt 2>&1 | tee rt-test-output.txt
104103 RT_TESTS=$(grep -oE '[0-9]+ passed' rt-test-output.txt | grep -oE '^[0-9]+' | awk '{sum+=$1} END {print sum+0}')
105104 RT_FAILED=$(grep -oE '[0-9]+ failed' rt-test-output.txt | grep -oE '^[0-9]+' | awk '{sum+=$1} END {print sum+0}')
106105 RT_SKIPPED=$(grep -oE '[0-9]+ ignored' rt-test-output.txt | grep -oE '^[0-9]+' | awk '{sum+=$1} END {print sum+0}')
@@ -177,10 +176,10 @@ jobs:
177176 key : ${{ matrix.os }}
178177
179178 - name : Build
180- run : cargo build --workspace
179+ run : cargo build --workspace --exclude ori_llvm
181180
182181 - name : Rust unit tests
183- run : cargo test --workspace
182+ run : cargo test --workspace --exclude ori_llvm
184183
185184 - name : Ori language tests
186185 run : cargo run -p oric --bin ori -- test tests/
@@ -212,7 +211,7 @@ jobs:
212211 key : llvm
213212
214213 - name : LLVM clippy
215- run : cargo clippy --manifest-path compiler/ ori_llvm/Cargo.toml --all-targets -- -D warnings
214+ run : cargo clippy -p ori_llvm --all-targets -- -D warnings
216215 env :
217216 LLVM_SYS_170_PREFIX : /usr/lib/llvm-17
218217
@@ -222,8 +221,8 @@ jobs:
222221 run : |
223222 set -o pipefail
224223 cargo build -p oric -p ori_rt --features llvm -q
225- cargo test --manifest-path compiler/ ori_rt/Cargo.toml 2>&1 | tee rt-llvm-output.txt
226- cargo test --manifest-path compiler/ ori_llvm/Cargo.toml 2>&1 | tee llvm-test-output.txt
224+ cargo test -p ori_rt 2>&1 | tee rt-llvm-output.txt
225+ cargo test -p ori_llvm 2>&1 | tee llvm-test-output.txt
227226 # Sum all "X passed" counts from test output
228227 LLVM_TESTS=$(cat rt-llvm-output.txt llvm-test-output.txt | grep -oE '[0-9]+ passed' | grep -oE '^[0-9]+' | awk '{sum+=$1} END {print sum+0}')
229228 LLVM_FAILED=$(cat rt-llvm-output.txt llvm-test-output.txt | grep -oE '[0-9]+ failed' | grep -oE '^[0-9]+' | awk '{sum+=$1} END {print sum+0}')
0 commit comments