summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilip Kuryloski <kuryloskip@vmware.com>2021-11-16 09:45:29 +0100
committermergify-bot <noreply@mergify.io>2021-11-16 09:05:07 +0000
commit8407536aef2b86c7f23718cf5ade08185d748438 (patch)
treea6a26a0688d4f982aea0b8bb46dedc5050066f8b
parent2e6a47e0fab3fd12e2c9606737cdd0fd8d97dd10 (diff)
downloadrabbitmq-server-git-8407536aef2b86c7f23718cf5ade08185d748438.tar.gz
Use the GitHub Actions Cache in conjuction with buildbuddy
(cherry picked from commit 470c94692c3c6f0457d77b984b23ce9a441b97b0) # Conflicts: # .github/workflows/test-mixed-versions.yaml # .github/workflows/test.yaml (cherry picked from commit 13012c39817e669a7f92d3bbda68a1cc1581cc32) # Conflicts: # .github/workflows/test.yaml
-rw-r--r--.github/workflows/rabbitmq_peer_discovery_aws.yaml8
-rw-r--r--.github/workflows/test-erlang-git.yaml8
-rw-r--r--.github/workflows/test-mixed-versions.yaml20
-rw-r--r--.github/workflows/test.yaml24
4 files changed, 60 insertions, 0 deletions
diff --git a/.github/workflows/rabbitmq_peer_discovery_aws.yaml b/.github/workflows/rabbitmq_peer_discovery_aws.yaml
index 2c34701962..a2fa56e481 100644
--- a/.github/workflows/rabbitmq_peer_discovery_aws.yaml
+++ b/.github/workflows/rabbitmq_peer_discovery_aws.yaml
@@ -26,6 +26,11 @@ jobs:
check-name: build-publish-dev (${{ matrix.image_tag_suffix }})
repo-token: ${{ secrets.GITHUB_TOKEN }}
wait-interval: 30 # seconds
+ - name: MOUNT BAZEL CACHE
+ uses: actions/cache@v1
+ with:
+ path: "/home/runner/repo-cache/"
+ key: repo-cache
- name: CONFIGURE BAZEL
run: |
cat << EOF >> user.bazelrc
@@ -34,6 +39,9 @@ jobs:
build:buildbuddy --build_metadata=ROLE=CI
build:buildbuddy --build_metadata=VISIBILITY=PRIVATE
build:buildbuddy --remote_instance_name=buildbuddy-io/buildbuddy/ci-aws-${{ matrix.erlang_version }}
+ build:buildbuddy --repository_cache=/home/runner/repo-cache/
+ build:buildbuddy --color=yes
+ build:buildbuddy --disk_cache=
EOF
#! - name: Setup tmate session
#! uses: mxschmitt/action-tmate@v3
diff --git a/.github/workflows/test-erlang-git.yaml b/.github/workflows/test-erlang-git.yaml
index 4041315c33..1f31ca836c 100644
--- a/.github/workflows/test-erlang-git.yaml
+++ b/.github/workflows/test-erlang-git.yaml
@@ -24,6 +24,11 @@ jobs:
npx buildozer \
"dict_set exec_properties container-image:docker://${IMAGE}@${DIGEST}" \
//:erlang_git_platform
+ - name: MOUNT BAZEL CACHE
+ uses: actions/cache@v1
+ with:
+ path: "/home/runner/repo-cache/"
+ key: repo-cache
- name: CONFIGURE BAZEL
run: |
cat << EOF >> user.bazelrc
@@ -32,6 +37,9 @@ jobs:
build:buildbuddy --build_metadata=ROLE=CI
build:buildbuddy --build_metadata=VISIBILITY=PUBLIC
build:buildbuddy --remote_instance_name=buildbuddy-io/buildbuddy/ci-erlang-git
+ build:buildbuddy --repository_cache=/home/runner/repo-cache/
+ build:buildbuddy --color=yes
+ build:buildbuddy --disk_cache=
build:rbe-git --crosstool_top=@buildbuddy_toolchain//:toolchain
build:rbe-git --extra_toolchains=@buildbuddy_toolchain//:cc_toolchain
diff --git a/.github/workflows/test-mixed-versions.yaml b/.github/workflows/test-mixed-versions.yaml
index 6dd331f412..71df7a4b5b 100644
--- a/.github/workflows/test-mixed-versions.yaml
+++ b/.github/workflows/test-mixed-versions.yaml
@@ -29,7 +29,16 @@ jobs:
timeout-minutes: 120
steps:
- name: CHECKOUT REPOSITORY
+<<<<<<< HEAD
uses: actions/checkout@v2.3.4
+=======
+ uses: actions/checkout@v2.4.0
+ - name: MOUNT BAZEL CACHE
+ uses: actions/cache@v1
+ with:
+ path: "/home/runner/repo-cache/"
+ key: repo-cache
+>>>>>>> 470c94692c (Use the GitHub Actions Cache in conjuction with buildbuddy)
- name: CONFIGURE BAZEL
run: |
cat << EOF >> user.bazelrc
@@ -38,6 +47,9 @@ jobs:
build:buildbuddy --build_metadata=ROLE=CI
build:buildbuddy --build_metadata=VISIBILITY=PUBLIC
build:buildbuddy --remote_instance_name=buildbuddy-io/buildbuddy/ci-${{ matrix.erlang_version }}
+ build:buildbuddy --repository_cache=/home/runner/repo-cache/
+ build:buildbuddy --color=yes
+ build:buildbuddy --disk_cache=
EOF
#! - name: Setup tmate session
#! uses: mxschmitt/action-tmate@v3
@@ -64,6 +76,11 @@ jobs:
with:
otp-version: ${{ matrix.erlang_version }}
elixir-version: 1.11.4
+ - name: MOUNT BAZEL CACHE
+ uses: actions/cache@v1
+ with:
+ path: "/home/runner/repo-cache/"
+ key: repo-cache
- name: CONFIGURE BAZEL
run: |
ERLANG_HOME="$(dirname $(dirname $(which erl)))"
@@ -74,6 +91,9 @@ jobs:
build:buildbuddy --build_metadata=ROLE=CI
build:buildbuddy --build_metadata=VISIBILITY=PRIVATE
build:buildbuddy --remote_instance_name=buildbuddy-io/buildbuddy/ci-exclusive-${{ matrix.erlang_version }}
+ build:buildbuddy --repository_cache=/home/runner/repo-cache/
+ build:buildbuddy --color=yes
+ build:buildbuddy --disk_cache=
build --@bazel-erlang//:erlang_version=${{ matrix.erlang_version }}
build --@bazel-erlang//:erlang_home=${ERLANG_HOME}
diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml
index a3b57fc4fb..3498f2ea2b 100644
--- a/.github/workflows/test.yaml
+++ b/.github/workflows/test.yaml
@@ -26,7 +26,20 @@ jobs:
timeout-minutes: 120
steps:
- name: CHECKOUT REPOSITORY
+<<<<<<< HEAD
uses: actions/checkout@v2
+=======
+<<<<<<< HEAD
+ uses: actions/checkout@v2.3.4
+=======
+ uses: actions/checkout@v2.4.0
+ - name: MOUNT BAZEL CACHE
+ uses: actions/cache@v1
+ with:
+ path: "/home/runner/repo-cache/"
+ key: repo-cache
+>>>>>>> 470c94692c (Use the GitHub Actions Cache in conjuction with buildbuddy)
+>>>>>>> 13012c3981 (Use the GitHub Actions Cache in conjuction with buildbuddy)
- name: CONFIGURE BAZEL
run: |
cat << EOF >> user.bazelrc
@@ -35,6 +48,9 @@ jobs:
build:buildbuddy --build_metadata=ROLE=CI
build:buildbuddy --build_metadata=VISIBILITY=PUBLIC
build:buildbuddy --remote_instance_name=buildbuddy-io/buildbuddy/ci-${{ matrix.erlang_version }}
+ build:buildbuddy --repository_cache=/home/runner/repo-cache/
+ build:buildbuddy --color=yes
+ build:buildbuddy --disk_cache=
EOF
#! - name: Setup tmate session
#! uses: mxschmitt/action-tmate@v3
@@ -62,6 +78,11 @@ jobs:
with:
otp-version: ${{ matrix.erlang_version }}
elixir-version: 1.11.4
+ - name: MOUNT BAZEL CACHE
+ uses: actions/cache@v1
+ with:
+ path: "/home/runner/repo-cache/"
+ key: repo-cache
- name: CONFIGURE BAZEL
run: |
ERLANG_HOME="$(dirname $(dirname $(which erl)))"
@@ -72,6 +93,9 @@ jobs:
build:buildbuddy --build_metadata=ROLE=CI
build:buildbuddy --build_metadata=VISIBILITY=PRIVATE
build:buildbuddy --remote_instance_name=buildbuddy-io/buildbuddy/ci-exclusive-${{ matrix.erlang_version }}
+ build:buildbuddy --repository_cache=/home/runner/repo-cache/
+ build:buildbuddy --color=yes
+ build:buildbuddy --disk_cache=
build --@bazel-erlang//:erlang_version=${{ matrix.erlang_version }}
build --@bazel-erlang//:erlang_home=${ERLANG_HOME}