-
Notifications
You must be signed in to change notification settings - Fork 12
41 lines (33 loc) · 1.2 KB
/
examples.yml
File metadata and controls
41 lines (33 loc) · 1.2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
name: Lighthouse Examples
on:
workflow_dispatch:
push:
branches:
- 'main'
pull_request:
jobs:
Examples:
strategy:
matrix:
arch: [x86_64, AArch64]
runs-on: ${{ matrix.arch == 'AArch64' && 'ubuntu-24.04-arm' || 'ubuntu-24.04' }}
steps:
- uses: actions/checkout@v5
- name: Obtain third_party dependencies
run: |
git submodule update --init --recursive
- name: Install uv
uses: astral-sh/setup-uv@v6
- name: Install the project and its dependencies
run: |
sudo apt-get install -y llvm-dev # Obtain FileCheck, used in testing.
uv sync --extra ingress-torch-cpu
- name: Run lit-enabled examples as tests
run: |
export FILECHECK=FileCheck-18 # Ubuntu's llvm-dev appends a version number.
uv run lit examples --verbose # Makes sure to substitute FileCheck for $FILECHECK
- name: Run lit-enabled examples which use mpi as tests
run: |
export FILECHECK=FileCheck-18 # Ubuntu's llvm-dev appends a version number.
uv sync --extra runtime_mpich
uv run lit examples/mlp-mpi --verbose # Makes sure to substitute FileCheck for $FILECHECK