Skip to content

Commit c822dc5

Browse files
Add compile-examples job
1 parent fe7de7a commit c822dc5

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

.github/workflows/ci.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -224,3 +224,34 @@ jobs:
224224
issue-number: ${{ github.event.pull_request.number }}
225225
body-path: bench.md
226226
edit-mode: replace
227+
228+
compile-examples:
229+
name: Compile Examples
230+
runs-on: macos-14
231+
env:
232+
CARGO_TERM_COLOR: always
233+
LIBRARY_PATH: /opt/homebrew/lib
234+
MLIR_SYS_190_PREFIX: /opt/homebrew/opt/llvm@19
235+
LLVM_SYS_191_PREFIX: /opt/homebrew/opt/llvm@19
236+
TABLEGEN_190_PREFIX: /opt/homebrew/opt/llvm@19
237+
238+
steps:
239+
- uses: actions/checkout@v4
240+
- name: Rustup toolchain install
241+
uses: dtolnay/[email protected]
242+
- uses: homebrew/actions/setup-homebrew@master
243+
- name: Install llvm
244+
run: brew install llvm@19
245+
- name: Compile Examples
246+
run: |
247+
> failing-examples.txt
248+
for example in examples/*.con ; do
249+
cargo run -- run "$example" && {
250+
echo "- $example" >> failing-examples.txt
251+
}
252+
done
253+
254+
echo "Failing Examples:"
255+
cat failing-examples.txt
256+
257+
[ ! -s failing-examples.txt ]

0 commit comments

Comments
 (0)