diff --git a/.github/workflows/papyrus_docker-publish.yml b/.github/workflows/papyrus_docker-publish.yml index 2035a801d0..fe495255b3 100644 --- a/.github/workflows/papyrus_docker-publish.yml +++ b/.github/workflows/papyrus_docker-publish.yml @@ -25,7 +25,7 @@ env: jobs: docker-build-push: - runs-on: starkware-ubuntu-latest-medium + runs-on: ubuntu-latest steps: - name: Checkout repository @@ -35,7 +35,13 @@ jobs: # Also workaround for: https://github.com/docker/build-push-action/issues/461 # https://github.com/docker/setup-buildx-action - name: Setup Docker buildx - uses: docker/setup-buildx-action@v2.2.1 + uses: docker/setup-buildx-action@v3.6.1 + + # Set Rustup and Cargo directories to avoid cross-device issues + - name: Set Rustup and Cargo directories + run: | + export RUSTUP_HOME=/usr/local/rustup + export CARGO_HOME=/usr/local/cargo # Login to a Docker registry except on PR # https://github.com/docker/login-action @@ -52,7 +58,7 @@ jobs: # https://github.com/docker/metadata-action - name: Extract Docker metadata id: meta - uses: docker/metadata-action@v4.1.1 + uses: docker/metadata-action@v5.5.1 with: images: ${{ env.REGISTRY }}/${{ env.REPO_NAME }}/papyrus tags: | @@ -67,7 +73,7 @@ jobs: # Build and push Docker image with Buildx # https://github.com/docker/build-push-action - name: Build and push Docker image - uses: docker/build-push-action@v3.2.0 + uses: docker/build-push-action@v6.7.0 with: context: . push: ${{ github.event_name != 'pull_request' }} diff --git a/Dockerfile b/Dockerfile index c362597fc2..f6cf846e3f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -14,11 +14,17 @@ RUN cargo install cargo-chef ENV PROTOC_VERSION=25.1 RUN curl -L "https://github.com/protocolbuffers/protobuf/releases/download/v$PROTOC_VERSION/protoc-$PROTOC_VERSION-linux-x86_64.zip" -o protoc.zip && unzip ./protoc.zip -d $HOME/.local && rm ./protoc.zip ENV PROTOC=/root/.local/bin/protoc + +RUN rustup toolchain uninstall stable-x86_64-unknown-linux-gnu + +RUN rustup toolchain install stable-x86_64-unknown-linux-gnu # Add the x86_64-unknown-linux-musl target to rustup for compiling statically linked binaries. # This enables the creation of fully self-contained binaries that do not depend on the system's dynamic libraries, # resulting in more portable executables that can run on any Linux distribution. RUN rustup target add x86_64-unknown-linux-musl + + ##################### # Stage 1 (planer): # #####################