From 94973ff2bf95b8681faee5d65a9dcdad03844a4d Mon Sep 17 00:00:00 2001 From: Nikola Vukobrat Date: Thu, 15 Aug 2024 14:39:55 +0000 Subject: [PATCH] wipu --- .github/workflows/docs.yml | 53 +++++++++++++++++++------------------- 1 file changed, 26 insertions(+), 27 deletions(-) diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index 262085e0d..747994afc 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -5,18 +5,8 @@ on: # branches: ["main"] workflow_dispatch: -# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages -permissions: - contents: read - pages: write - id-token: write - packages: read - -concurrency: - group: "pages" - cancel-in-progress: false - jobs: + build: strategy: @@ -29,29 +19,38 @@ jobs: container: image: ghcr.io/${{ github.repository }}/tt-forge-ubuntu-22-04:latest - options: --user root + 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 - - env: - MDBOOK_VERSION: 0.4.36 - steps: - - uses: actions/checkout@v4 - with: + - uses: actions/checkout@v4 + with: submodules: recursive fetch-depth: 0 # Fetch all history and tags - - name: Set reusable strings - id: strings - shell: bash - run: | - echo "work-dir=$(pwd)" >> "$GITHUB_OUTPUT" - echo "build-output-dir=$(pwd)/build" >> "$GITHUB_OUTPUT" - - - name: Git safe dir - run: git config --global --add safe.directory ${{ steps.strings.outputs.work-dir }} \ No newline at end of file + - name: Set reusable strings + id: strings + shell: bash + run: | + echo "work-dir=$(pwd)" >> "$GITHUB_OUTPUT" + echo "build-output-dir=$(pwd)/build" >> "$GITHUB_OUTPUT" + + - name: Git safe dir + run: git config --global --add safe.directory ${{ steps.strings.outputs.work-dir }} + + - name: ccache + uses: hendrikmuhs/ccache-action@v1.2 + with: + create-symlink: true + key: ${{ matrix.build.runs-on }}-runtime-${{ matrix.build.enable_runtime }}-${{ env.SDK_VERSION }} + + - name: Build + shell: bash + run: | + source env/activate + cmake -G Ninja -B build . + cmake --build build \ No newline at end of file