diff --git a/.github/Dockerfile.ci b/.github/Dockerfile.ci index 4828a45..4449880 100644 --- a/.github/Dockerfile.ci +++ b/.github/Dockerfile.ci @@ -15,10 +15,8 @@ RUN echo "Building $PROJECT_NAME at $GIT_SHA" RUN mkdir -p $BUILD_DIR && \ mkdir -p $TTMLIR_TOOLCHAIN_DIR -# Clone the project and update submodules -RUN git clone git@github.com:tenstorrent/$PROJECT_NAME.git $BUILD_DIR/$PROJECT_NAME && \ - cd $BUILD_DIR/$PROJECT_NAME && \ - git checkout $GIT_SHA +# Copy the project from host, cloned in build-image.yml +COPY . $BUILD_DIR/$PROJECT_NAME # Build the toolchain WORKDIR $BUILD_DIR/$PROJECT_NAME diff --git a/.github/workflows/build-image.yml b/.github/workflows/build-image.yml index d194093..e0fc420 100644 --- a/.github/workflows/build-image.yml +++ b/.github/workflows/build-image.yml @@ -20,7 +20,10 @@ jobs: run: sudo chmod 777 -R $GITHUB_WORKSPACE - name: Checkout repository - uses: actions/checkout@v4 + - uses: actions/checkout@v4 + with: + submodules: recursive + lfs: true - name: Set up Docker Buildx uses: docker/setup-buildx-action@v3