Skip to content

Commit 292c623

Browse files
upload and download example binaries
1 parent 1a1447d commit 292c623

File tree

1 file changed

+19
-1
lines changed

1 file changed

+19
-1
lines changed

.github/workflows/ci.yaml

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,10 @@ jobs:
8585
uses: actions/upload-artifact@v2
8686
with:
8787
name: linux-wheel-cmake
88-
path: ~/cmake_build/py_pkg/dist/*.whl
88+
path: |
89+
~/cmake_build/py_pkg/dist/*.whl
90+
~/example_unrolling_service/loop_unroller/loop_unroller
91+
~/loop_optimizations_service/opt_loops/opt_loops
8992
if-no-files-found: error
9093
retention-days: 7
9194

@@ -233,6 +236,12 @@ jobs:
233236
uses: actions/download-artifact@v2
234237
with:
235238
name: linux-wheel-cmake
239+
240+
- name: Move examples binaries
241+
run: |
242+
mv loop_unroller ~/example_unrolling_service/loop_unroller/loop_unroller
243+
mv opt_loops ~/loop_optimizations_service/opt_loops/opt_loops
244+
shell: bash
236245

237246
- name: Install wheel
238247
run: python -m pip install *.whl
@@ -245,6 +254,15 @@ jobs:
245254

246255
- name: Run the test suite
247256
run: make install-test PYTEST_ARGS="--ignore tests/mlir"
257+
258+
- name: Run environment examples
259+
run: |
260+
cd examples
261+
python example_compiler_gym_service/demo_without_bazel.py
262+
python example_unrolling_service/example_without_bazel.py
263+
python loop_optimizations_service/example_without_bazel.py
264+
cd -
265+
shell: bash
248266

249267
test-mlir-env-linux-cmake:
250268
needs: build-mlir-env-linux-cmake

0 commit comments

Comments
 (0)