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: make self-hosted actions-cache steps access S3 from correct region #1407

Merged
merged 4 commits into from
Sep 20, 2023
Merged
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
19 changes: 18 additions & 1 deletion .github/actions/nodejs/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,15 @@ runs:
shell: bash
run: npm config set audit false

- name: Cache NPM build artifacts
- name: Configure AWS credentials and bucket region
uses: aws-actions/configure-aws-credentials@v4
if: contains(runner.name, 'ubuntu-platform')
with:
aws-region: eu-west-1

- name: Cache NPM build artifacts (S3 bucket cache)
uses: everpcpc/actions-cache@v1
if: contains(runner.name, 'ubuntu-platform')
with:
bucket: multi-runner-linux-x64-platform-cache-gy9micic
root: actions-cache
Expand All @@ -28,6 +35,16 @@ runs:
restore-keys: |
${{ runner.os }}-yarn-unplugged-

- name: Cache NPM build artifacts (GitHub Actions cache)
uses: actions/cache@v3
if: ${{ !contains(runner.name, 'ubuntu-platform') }}
with:
path: |
.yarn/unplugged
key: ${{ runner.os }}-yarn-unplugged-${{ hashFiles('yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-unplugged-

- name: Install dependencies
shell: bash
run: yarn install
21 changes: 20 additions & 1 deletion .github/actions/rust/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,15 @@ runs:
echo "PROTOC=${HOME}/.local/bin/protoc" >> $GITHUB_ENV
export PATH="${PATH}:${HOME}/.local/bin"

- name: Cache Rust build artifacts
- name: Configure AWS credentials and bucket region
uses: aws-actions/configure-aws-credentials@v4
if: contains(runner.name, 'ubuntu-platform')
with:
aws-region: eu-west-1

- name: Cache Rust build artifacts (S3 bucket cache)
uses: everpcpc/actions-cache@v1
if: contains(runner.name, 'ubuntu-platform')
with:
bucket: multi-runner-linux-x64-platform-cache-gy9micic
root: actions-cache
Expand All @@ -45,6 +52,18 @@ runs:
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
restore-keys: ${{ runner.os }}-cargo-

- name: Cache Rust build artifacts (GitHub Actions cache)
uses: actions/cache@v3
if: ${{ !contains(runner.name, 'ubuntu-platform') }}
with:
path: |
/home/ubuntu/.cargo/registry/index
/home/ubuntu/.cargo/registry/cache
/home/ubuntu/.cargo/git
target
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
restore-keys: ${{ runner.os }}-cargo-

- name: Install clang
id: deps-clang
shell: bash
Expand Down
Loading