diff --git a/.github/actions/docker-run/action.yml b/.github/actions/docker-run/action.yml index 59a26859289..2977136d126 100644 --- a/.github/actions/docker-run/action.yml +++ b/.github/actions/docker-run/action.yml @@ -80,7 +80,7 @@ runs: ${{ inputs.device }} -w ${{ github.workspace }} run: | - if [ ${{ inputs.install_wheel }} ]; then + if [ ${{ inputs.install_wheel }} = "true" ]; then WHEEL_FILENAME=$(ls -1 *.whl) pip3 install $WHEEL_FILENAME fi diff --git a/.github/workflows/build-artifact.yaml b/.github/workflows/build-artifact.yaml index 37e520edb51..4c651efc6fa 100644 --- a/.github/workflows/build-artifact.yaml +++ b/.github/workflows/build-artifact.yaml @@ -84,37 +84,16 @@ jobs: - name: Update submodules run: | git submodule update --init --recursive - - name: Generate docker tag - id: generate-docker-tag - uses: ./.github/actions/generate-docker-tag - with: - image: ${{ inputs.os }} - - name: Docker login - uses: docker/login-action@v3 - with: - registry: https://ghcr.io - username: ${{ github.actor }} - password: ${{ secrets.GITHUB_TOKEN }} - - name: Pull docker image - run: docker pull ${{ env.TT_METAL_DOCKER_IMAGE_TAG }} - name: Build tt-metal and libs - uses: addnab/docker-run-action@v3 + uses: ./.github/actions/docker-run with: - image: ${{ env.TT_METAL_DOCKER_IMAGE_TAG }} - options: | - --rm - -u ${{ env.RUNNER_UID }}:${{ env.RUNNER_GID }} - -v ${{ github.workspace }}:${{ github.workspace }} - -v /etc/passwd:/etc/passwd:ro - -v /etc/shadow:/etc/shadow:ro - -v /etc/bashrc:/etc/bashrc:ro + docker_password: ${{ secrets.GITHUB_TOKEN }} + docker_opts: | -e ARCH_NAME=${{ matrix.arch }} - -w ${{ github.workspace }} - run: | + run_args: | nice -n 19 cmake -B build -G Ninja -DCMAKE_BUILD_TYPE=${{ inputs.build-type }} -DENABLE_TRACY=${{ inputs.tracy }} nice -n 19 cmake --build build --target tests nice -n 19 cmake --build build --target install - - name: 'Tar files' run: tar -cvf ttm_${{ matrix.arch }}.tar build/lib ttnn/ttnn/*.so build/programming_examples build/test build/tools runtime - name: 'Upload Artifact' diff --git a/.github/workflows/ttnn-post-commit.yaml b/.github/workflows/ttnn-post-commit.yaml index 638d6e55261..5fdf49198d9 100644 --- a/.github/workflows/ttnn-post-commit.yaml +++ b/.github/workflows/ttnn-post-commit.yaml @@ -80,12 +80,9 @@ jobs: timeout-minutes: ${{ inputs.timeout }} uses: ./.github/actions/docker-run with: - docker_username: ${{ github.actor }} + install_wheel: true docker_password: ${{ secrets.GITHUB_TOKEN }} - docker_image_arch: ${{ inputs.arch }} run_args: | - WHEEL_FILENAME=$(ls -1 *.whl) - pip3 install --user $WHEEL_FILENAME ${{ matrix.test-group.cmd }} - uses: ./.github/actions/slack-report if: ${{ failure() }}