Skip to content

Commit 6deb6bd

Browse files
authored
Merge pull request #695 from mostafaelhoushi/run-examples-cmake-in-ci
2 parents 13a0d34 + 75d0968 commit 6deb6bd

File tree

1 file changed

+61
-0
lines changed

1 file changed

+61
-0
lines changed

.github/workflows/ci.yaml

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,30 @@ jobs:
8989
if-no-files-found: error
9090
retention-days: 7
9191

92+
- name: Upload compute_programl binary
93+
uses: actions/upload-artifact@v2
94+
with:
95+
name: linux-compute-programl-cmake
96+
path: compiler_gym/third_party/programl/compute_programl
97+
if-no-files-found: error
98+
retention-days: 7
99+
100+
- name: Upload loop_unroller binary
101+
uses: actions/upload-artifact@v2
102+
with:
103+
name: linux-loop-unroller-cmake
104+
path: examples/example_unrolling_service/loop_unroller/loop_unroller
105+
if-no-files-found: error
106+
retention-days: 7
107+
108+
- name: Upload opt_loops binary
109+
uses: actions/upload-artifact@v2
110+
with:
111+
name: linux-opt-loops-cmake
112+
path: examples/loop_optimizations_service/opt_loops/opt_loops
113+
if-no-files-found: error
114+
retention-days: 7
115+
92116
build-mlir-env-linux-cmake:
93117
runs-on: ubuntu-latest
94118
steps:
@@ -234,6 +258,43 @@ jobs:
234258
- name: Install test dependencies
235259
run: python -m pip install -r tests/requirements.txt
236260

261+
- name: Download compute_programl
262+
uses: actions/download-artifact@v2
263+
with:
264+
name: linux-compute-programl-cmake
265+
266+
- name: Download loop_unroller
267+
uses: actions/download-artifact@v2
268+
with:
269+
name: linux-loop-unroller-cmake
270+
271+
- name: Download opt_loops
272+
uses: actions/download-artifact@v2
273+
with:
274+
name: linux-opt-loops-cmake
275+
276+
- name: Move examples and utility binaries
277+
run: |
278+
chmod +x compute_programl
279+
chmod +x loop_unroller
280+
chmod +x opt_loops
281+
mv compute_programl ./compiler_gym/third_party/programl/compute_programl
282+
mv loop_unroller ./examples/example_unrolling_service/loop_unroller/loop_unroller
283+
mv opt_loops ./examples/loop_optimizations_service/opt_loops/opt_loops
284+
test ./compiler_gym/third_party/programl/compute_programl
285+
test ./examples/example_unrolling_service/loop_unroller/loop_unroller
286+
test ./examples/loop_optimizations_service/opt_loops/opt_loops
287+
shell: bash
288+
289+
- name: Run environment examples
290+
run: |
291+
cd examples
292+
python example_compiler_gym_service/demo_without_bazel.py
293+
python example_unrolling_service/example_without_bazel.py
294+
python loop_optimizations_service/example_without_bazel.py
295+
cd -
296+
shell: bash
297+
237298
- name: Run the test suite
238299
run: make install-test PYTEST_ARGS="--ignore tests/mlir"
239300

0 commit comments

Comments
 (0)