diff --git a/.github/workflows/build-and-test.yml b/.github/workflows/build-and-test.yml index 4ee12692f..52156b40c 100644 --- a/.github/workflows/build-and-test.yml +++ b/.github/workflows/build-and-test.yml @@ -122,52 +122,52 @@ jobs: name: build-artifacts path: build - #get-system-descs: - # strategy: - # fail-fast: false - # matrix: - # build: [ - # {runs-on: n150}, - # {runs-on: n300}, - # ] -# - # runs-on: - # - self-hosted - # - ${{ matrix.build.runs-on }} -# - # container: - # image: ghcr.io/${{ github.repository }}/tt-mlir-ubuntu-22-04:latest - # options: --user root --device /dev/tenstorrent/0 - # volumes: - # - /dev/hugepages:/dev/hugepages - # - /dev/hugepages-1G:/dev/hugepages-1G - # - /etc/udev/rules.d:/etc/udev/rules.d - # - /lib/modules:/lib/modules - # - /opt/tt_metal_infra/provisioning/provisioning_env:/opt/tt_metal_infra/provisioning/provisioning_env -# - # steps: - # - name: Download ttrt runtime whls - # uses: actions/download-artifact@v4 - # with: - # name: ttrt-whl-runtime.whl -# - # - name: Install ttrt runtime whls - # shell: bash - # run: | - # python3 -m venv whls_env - # source whls_env/bin/activate - # pip install *.whl --force-reinstall -# - # - name: Generate system descriptor - # run: | - # source whls_env/bin/activate - # ttrt query --save-artifacts - # - # - name: Upload system descriptor - # uses: actions/upload-artifact@v4 - # with: - # name: system-desc-${{ matrix.build.runs-on }}.ttsys - # path: ttrt-artifacts/system-desc.ttsys + get-system-descs: + strategy: + fail-fast: false + matrix: + build: [ + {runs-on: n150}, + {runs-on: n300}, + ] + + runs-on: + - self-hosted + - ${{ matrix.build.runs-on }} + + container: + image: ghcr.io/${{ github.repository }}/tt-mlir-ubuntu-22-04:latest + options: --user root --device /dev/tenstorrent/0 + volumes: + - /dev/hugepages:/dev/hugepages + - /dev/hugepages-1G:/dev/hugepages-1G + - /etc/udev/rules.d:/etc/udev/rules.d + - /lib/modules:/lib/modules + - /opt/tt_metal_infra/provisioning/provisioning_env:/opt/tt_metal_infra/provisioning/provisioning_env + + steps: + - name: Download ttrt runtime whls + uses: actions/download-artifact@v4 + with: + name: ttrt-whl-runtime.whl + + - name: Install ttrt runtime whls + shell: bash + run: | + python3 -m venv whls_env + source whls_env/bin/activate + pip install *.whl --force-reinstall + + - name: Generate system descriptor + run: | + source whls_env/bin/activate + ttrt query --save-artifacts + + - name: Upload system descriptor + uses: actions/upload-artifact@v4 + with: + name: system-desc-${{ matrix.build.runs-on }}.ttsys + path: ttrt-artifacts/system-desc.ttsys # #generate-tests: # strategy: