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 dmakarov committed Mar 18, 2023
1 parent f556d77 commit 7a63590
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ jobs:
CI_JOB_NAME: "${{ matrix.name }}"
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
if: "github.event_name == 'pull_request'"
Expand Down
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 @@ -167,6 +167,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"
else
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 @@ -35,6 +35,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 7a63590

Please sign in to comment.