Skip to content

Commit

Permalink
[SOL] CI: speed up PR runs
Browse files Browse the repository at this point in the history
Deploy new sccache with support for SCCACHE_S3_NO_CREDENTIALS
  • Loading branch information
alessandrod authored and LucasSte committed Aug 22, 2024
1 parent d05f5ec commit a7ca891
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/ci/docker/host-x86_64/sbf-solana-solana/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y

RUN PATH="${HOME}/.cargo/bin:${PATH}" \
cargo install --git https://github.com/solana-labs/cargo-run-bpf-tests.git \
--rev 4cae9c0 \
--rev 3d628c7 \
--bin cargo-run-bpf-tests --root /usr/local

COPY scripts/sccache.sh /scripts/
Expand Down
1 change: 1 addition & 0 deletions src/ci/docker/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,7 @@ args=
if [ "$SCCACHE_BUCKET" != "" ]; then
args="$args --env SCCACHE_BUCKET"
args="$args --env SCCACHE_REGION"
args="$args --env SCCACHE_S3_NO_CREDENTIALS"
args="$args --env AWS_ACCESS_KEY_ID"
args="$args --env AWS_SECRET_ACCESS_KEY"
args="$args --env AWS_REGION"
Expand Down
2 changes: 1 addition & 1 deletion src/ci/docker/scripts/sccache.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ set -ex

case "$(uname -m)" in
x86_64)
url="https://cached-ci-artifacts.s3.us-east-2.amazonaws.com/sccache-bc014e0-x86_64-unknown-linux-musl"
url="https://cached-ci-artifacts.s3.us-east-2.amazonaws.com/sccache-5d2a373-x86_64-unknown-linux-musl"
;;
aarch64)
url="https://ci-mirrors.rust-lang.org/rustc/2021-08-25-sccache-v0.2.15-aarch64-unknown-linux-musl"
Expand Down
1 change: 1 addition & 0 deletions src/ci/github-actions/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ x--expand-yaml-anchors--remove:
- &public-variables
SCCACHE_BUCKET: cached-ci-artifacts
SCCACHE_REGION: us-east-2
SCCACHE_S3_NO_CREDENTIALS: 1
TOOLSTATE_REPO: https://github.com/rust-lang-nursery/rust-toolstate
CACHE_DOMAIN: cached-ci-artifacts.s3.us-east-2.amazonaws.com

Expand Down

0 comments on commit a7ca891

Please sign in to comment.