|
89 | 89 | if-no-files-found: error |
90 | 90 | retention-days: 7 |
91 | 91 |
|
| 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 | + |
92 | 116 | build-mlir-env-linux-cmake: |
93 | 117 | runs-on: ubuntu-latest |
94 | 118 | steps: |
@@ -234,6 +258,43 @@ jobs: |
234 | 258 | - name: Install test dependencies |
235 | 259 | run: python -m pip install -r tests/requirements.txt |
236 | 260 |
|
| 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 | + |
237 | 298 | - name: Run the test suite |
238 | 299 | run: make install-test PYTEST_ARGS="--ignore tests/mlir" |
239 | 300 |
|
|
0 commit comments