Skip to content

Commit

Permalink
[#61287] WIP: workflows: Fix caching last build
Browse files Browse the repository at this point in the history
Signed-off-by: Illia Vysochyn <[email protected]>
  • Loading branch information
ivysochyn committed Jul 2, 2024
1 parent 04ddec2 commit d1a753c
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 17 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/github-actions-publish-docker-images.yml
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,8 @@ jobs:
- name: Export ORFS image
run: |
docker buildx build \
--build-context: |
${{ env.IMAGE }}:latest=docker-image://${{ env.IMAGE }}:latest
--build-arg fromImage=${{ env.IMAGE_DEPS }}:latest \
--build-arg numThreads=$(nproc) \
--cache-from type=registry,ref=${{ env.IMAGE }}:buildcache \
Expand Down
34 changes: 17 additions & 17 deletions docker/Dockerfile.builder
Original file line number Diff line number Diff line change
Expand Up @@ -8,20 +8,20 @@ FROM $fromImage AS openroad-builder-base

ARG numThreads=$(nproc)

COPY . /OpenROAD-flow-scripts
WORKDIR /OpenROAD-flow-scripts
RUN ./build_openroad.sh --no_init --local --threads ${numThreads}

FROM $fromImage AS openroad-flow-scripts-base

COPY . /OpenROAD-flow-scripts

RUN rm -rf /OpenROAD-flow-scripts/tools

COPY --from=openroad-builder-base /OpenROAD-flow-scripts/tools/install /OpenROAD-flow-scripts/tools/install

FROM $fromImage

COPY --from=openroad-flow-scripts-base /OpenROAD-flow-scripts /OpenROAD-flow-scripts
WORKDIR /OpenROAD-flow-scripts
# COPY . /OpenROAD-flow-scripts
# WORKDIR /OpenROAD-flow-scripts
#
# RUN ./build_openroad.sh --no_init --local --threads ${numThreads}
#
# FROM $fromImage AS openroad-flow-scripts-base
#
# COPY . /OpenROAD-flow-scripts
#
# RUN rm -rf /OpenROAD-flow-scripts/tools
#
# COPY --from=openroad-builder-base /OpenROAD-flow-scripts/tools/install /OpenROAD-flow-scripts/tools/install
#
# FROM $fromImage
#
# COPY --from=openroad-flow-scripts-base /OpenROAD-flow-scripts /OpenROAD-flow-scripts
# WORKDIR /OpenROAD-flow-scripts

0 comments on commit d1a753c

Please sign in to comment.