44 push :
55 branches :
66 - main
7+ paths :
8+ - ' .github/workflows/enzyme-ci.yml'
9+ - ' enzyme/Enzyme/**'
10+ - ' enzyme/includes/**'
11+ - ' enzyme/test/**'
12+ - ' enzyme/tools/**'
13+ - ' enzyme/benchmarks/**'
14+ - ' enzyme/cmake/**'
15+ - ' enzyme/CMakeLists.txt'
16+ - ' enzyme/CMakePresets.json'
717 pull_request :
18+ branches :
19+ - main
20+ paths :
21+ - ' .github/workflows/enzyme-ci.yml'
22+ - ' enzyme/Enzyme/**'
23+ - ' enzyme/includes/**'
24+ - ' enzyme/test/**'
25+ - ' enzyme/tools/**'
26+ - ' enzyme/benchmarks/**'
27+ - ' enzyme/cmake/**'
28+ - ' enzyme/CMakeLists.txt'
29+ - ' enzyme/CMakePresets.json'
830 merge_group :
931
1032jobs :
@@ -24,28 +46,28 @@ jobs:
2446 steps :
2547 - name : add llvm
2648 run : |
27- wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key| sudo apt-key add -
28- sudo apt-add-repository "deb http://apt.llvm.org/`lsb_release -c | cut -f2`/ llvm-toolchain-`lsb_release -c | cut -f2`-${{ matrix.llvm }} main" || true
29- sudo apt-get install -y cmake gcc g++ llvm-${{ matrix.llvm }}-dev libzstd -dev
49+ wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key | sudo apt-key add -
50+ sudo apt-add-repository "deb http://apt.llvm.org/`lsb_release -c | cut -f2`/ llvm-toolchain-`lsb_release -c | cut -f2`-${{ matrix.llvm }} main"
51+ sudo apt-get install -y cmake ninja-build llvm-${{ matrix.llvm }}-dev
3052 sudo python3 -m pip install --upgrade pip lit
3153 - uses : actions/checkout@v4
3254 - name : mkdir
33- run : rm -rf build && mkdir build
55+ run : mkdir build
3456 - name : cmake
3557 working-directory : build
36- run : cmake ../enzyme -DCMAKE_BUILD_TYPE=${{ matrix.build }} -DLLVM_EXTERNAL_LIT=`which lit` -DLLVM_DIR=/usr/lib/llvm-${{ matrix.llvm }}/lib/cmake/llvm
37- - name : make
58+ run : cmake -G Ninja ../enzyme -DCMAKE_BUILD_TYPE=${{ matrix.build }} -DLLVM_EXTERNAL_LIT=`which lit` -DLLVM_DIR=/usr/lib/llvm-${{ matrix.llvm }}/lib/cmake/llvm
59+ - name : build
3860 working-directory : build
39- run : make -j `nproc`
40- - name : make check-typeanalysis
61+ run : ninja
62+ - name : check-typeanalysis
4163 working-directory : build
42- run : make -j `nproc` check-typeanalysis
43- - name : make check-activityanalysis
64+ run : ninja check-typeanalysis
65+ - name : ninja check-activityanalysis
4466 working-directory : build
45- run : make -j `nproc` check-activityanalysis
46- - name : make check-enzyme
67+ run : ninja check-activityanalysis
68+ - name : check-enzyme
4769 working-directory : build
48- run : make -j `nproc` check-enzyme-bench
70+ run : ninja check-enzyme-bench
4971
5072 build-macos :
5173 name : Enzyme CI LLVM ${{ matrix.llvm }} ${{ matrix.build }} macOS
@@ -60,28 +82,25 @@ jobs:
6082 timeout-minutes : 30
6183 steps :
6284 - name : add llvm
63- run : |
64- brew update
65- brew install llvm@${{ matrix.llvm }} make cmake
66- sudo python3 -m pip install --upgrade --break-system-packages --user pip lit requests
85+ run : brew install llvm@${{ matrix.llvm }} ninja-build cmake lit
6786 - uses : actions/checkout@v4
6887 - name : mkdir
69- run : rm -rf build && mkdir build
88+ run : mkdir build
7089 - name : cmake
7190 working-directory : build
72- run : cmake ../enzyme -DCMAKE_BUILD_TYPE=${{ matrix.build }} -DLLVM_EXTERNAL_LIT=`find /Users/runner/Library/Python/ -iname lit` -DLLVM_DIR=`brew --prefix llvm@${{ matrix.llvm }}`/lib/cmake/llvm
73- - name : make
91+ run : cmake -G Ninja ../enzyme -DCMAKE_BUILD_TYPE=${{ matrix.build }} -DLLVM_EXTERNAL_LIT=`which lit` -DLLVM_DIR=`brew --prefix llvm@${{ matrix.llvm }}`/lib/cmake/llvm
92+ - name : build
7493 working-directory : build
75- run : make -j 3
76- - name : make check-typeanalysis
94+ run : ninja
95+ - name : check-typeanalysis
7796 working-directory : build
78- run : make -j 3 check-typeanalysis
79- - name : make check-activityanalysis
97+ run : ninja check-typeanalysis
98+ - name : check-activityanalysis
8099 working-directory : build
81- run : make -j 3 check-activityanalysis
82- - name : make check-enzyme
100+ run : ninja check-activityanalysis
101+ - name : check-enzyme
83102 working-directory : build
84- run : make -j3 check-enzyme-bench
103+ run : ninja check-enzyme-bench
85104
86105 build-xcode :
87106 name : Enzyme CI LLVM ${{ matrix.llvm }} ${{ matrix.build }} macOS XCode
@@ -96,12 +115,10 @@ jobs:
96115 timeout-minutes : 30
97116 steps :
98117 - name : add llvm
99- run : |
100- brew install llvm@${{ matrix.llvm }} make cmake gcc
101- sudo python3 -m pip install --upgrade --break-system-packages --user pip lit
118+ run : brew install llvm@${{ matrix.llvm }} make cmake lit
102119 - uses : actions/checkout@v4
103120 - name : mkdir
104- run : rm -rf build && mkdir build
121+ run : mkdir build
105122 - name : cmake
106123 working-directory : build
107124 run : |
0 commit comments