Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci(shorten papirus ci): use cargo cache when building docker images #3304

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .github/actions/install_rust/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ runs:
steps:
- uses: moonrepo/setup-rust@v1
with:
cache-base: main(-v[0-9].*)?
cache-base: 3304/merge
cache-target: release
inherit-toolchain: true
bins: [email protected], cargo-machete
# Install additional non-default toolchains (for rustfmt for example), NOP if input omitted.
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/papyrus_ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ jobs:
runs-on: starkware-ubuntu-latest-medium
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/bootstrap
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Build Papyrus utilites docker image
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/papyrus_docker-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v4

- uses: ./.github/actions/bootstrap

# Not required but recommended - enables build multi-platform images, export cache, etc
# Also workaround for: https://github.com/docker/build-push-action/issues/461
# https://github.com/docker/setup-buildx-action
Expand Down
Loading