Skip to content

Fix tests

Fix tests #1

Workflow file for this run

build-ttmlir:
needs: build-image
timeout-minutes: 120
strategy:
fail-fast: false
matrix:
build: [
{runs-on: ubuntu-latest, enable_perf: OFF, enable_op_model: OFF, enable_emitc: OFF, enable_async: OFF, enable_runtime_debug: OFF, name: "run", ttrt_flags: ""},
{runs-on: ubuntu-latest, enable_perf: ON, enable_op_model: OFF, enable_emitc: OFF, enable_async: OFF, enable_runtime_debug: OFF, name: "perf", ttrt_flags: ""},
{runs-on: ubuntu-latest, enable_perf: OFF, enable_op_model: OFF, enable_emitc: ON, enable_async: OFF, enable_runtime_debug: OFF, name: "emitc", ttrt_flags: ""},
{runs-on: ubuntu-latest, enable_perf: OFF, enable_op_model: OFF, enable_emitc: OFF, enable_async: ON, enable_runtime_debug: OFF, name: "async", ttrt_flags: ""},
{runs-on: ubuntu-latest, enable_perf: OFF, enable_op_model: OFF, enable_emitc: OFF, enable_async: OFF, enable_runtime_debug: ON, name: "runtime_debug", ttrt_flags: ""},
]
name: Build and test tt-mlir (compute machine)
runs-on: ${{ matrix.build.runs-on }}
container:
image: ${{ needs.build-image.outputs.docker-image }}
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Fetch job id
id: fetch-job-id
uses: tenstorrent/tt-github-actions/.github/actions/job_id@main
with:
job_name: "Build and test tt-mlir (compute machine) (${{ matrix.build.runs-on }}, ${{ matrix.build.enable_perf }}, ${{ matrix.build.enable_op_model }}, ${{ matrix.build.enable_emitc }}, ${{ matrix.build.enable_async }}, ${{ matrix.build.enable_runtime_debug}}, ${{ matrix.build.name }})"
- name: Set reusable strings
id: strings
shell: bash
env:
JOB_ID: ${{ steps.fetch-job-id.outputs.job_id }}
run: |
echo "work-dir=$(pwd)" >> "$GITHUB_OUTPUT"
echo "build-output-dir=$(pwd)/build" >> "$GITHUB_OUTPUT"
echo "install-output-dir=$(pwd)/install" >> "$GITHUB_OUTPUT"
echo "test_report_path=report_$JOB_ID.xml" >> "$GITHUB_OUTPUT"
- name: Git safe dir
run: git config --global --add safe.directory ${{ steps.strings.outputs.work-dir }}
- name: ccache
uses: hendrikmuhs/[email protected]
with:
create-symlink: true
key: ${{ matrix.build.runs-on }}-run-ON-perf-${{ matrix.build.enable_perf }}-op_model-${{ matrix.build.enable_op_model }}-emitc-${{ matrix.build.enable_emitc }}-async-${{ matrix.build.enable_async }}-runtime_debug-${{ matrix.build.enable_runtime_debug}}-${{ env.SDK_VERSION }}
- name: Run build and test tt-mlir
uses: ./.github/actions/build-tt-mlir-action
with:
enable-perf: ${{ matrix.build.enable_perf }}
enable-op-model: ${{ matrix.build.enable_op_model }}
enable-emitc: ${{ matrix.build.enable_emitc }}
enable-async: ${{ matrix.build.enable_async }}
enable-runtime-debug: ${{ matrix.build.enable_runtime_debug }}
build-name: ${{ matrix.build.name }}
build-output-dir: ${{ steps.strings.outputs.build-output-dir }}
install-output-dir: ${{ steps.strings.outputs.install-output-dir }}
work-dir: ${{ steps.strings.outputs.work-dir }}
test_report_path: ${{ steps.strings.outputs.test_report_path }}