-
Notifications
You must be signed in to change notification settings - Fork 3.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #11500 from rabbitmq/mergify/bp/v3.12.x/pr-11488
- Loading branch information
Showing
9 changed files
with
81 additions
and
213 deletions.
There are no files selected for viewing
111 changes: 0 additions & 111 deletions
111
.github/workflows/perform-bazel-execution-comparison.yaml
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -76,9 +76,9 @@ jobs: | |
fi | ||
echo "exists=${exists}" | tee $GITHUB_ENV | ||
OTP_VERSION_ID=${ARCHIVE_URL#*secondary-umbrellas/rbe-} | ||
OTP_VERSION_ID=${OTP_VERSION_ID%*/package-generic-unix-for-mixed-version-testing-v*.tar.xz} | ||
echo "otp_version_id=${OTP_VERSION_ID}" | tee -a $GITHUB_OUTPUT | ||
OTP_VERSION=${ARCHIVE_URL#*secondary-umbrellas/} | ||
OTP_VERSION=${OTP_VERSION%*/package-generic-unix-for-mixed-version-testing-v*.tar.xz} | ||
echo "otp_version=${OTP_VERSION}" | tee -a $GITHUB_OUTPUT | ||
VERSION=${ARCHIVE_URL#*package-generic-unix-for-mixed-version-testing-v} | ||
VERSION=${VERSION%*.tar.xz} | ||
|
@@ -89,35 +89,42 @@ jobs: | |
with: | ||
ref: v${{ steps.check.outputs.version }} | ||
path: secondary-umbrella | ||
- name: CONFIGURE OTP & ELIXIR | ||
if: env.exists != 'true' | ||
uses: erlef/[email protected] | ||
with: | ||
otp-version: ${{ steps.check.outputs.otp_version }} | ||
elixir-version: 1.14 | ||
hexpm-mirrors: | | ||
https://builds.hex.pm | ||
https://cdn.jsdelivr.net/hex | ||
- name: AUTHENTICATE TO GOOGLE CLOUD | ||
uses: google-github-actions/[email protected] | ||
with: | ||
credentials_json: ${{ secrets.REMOTE_CACHE_CREDENTIALS_JSON }} | ||
- name: BUILD SECONDARY UMBRELLA ARCHIVE | ||
if: env.exists != 'true' | ||
working-directory: secondary-umbrella | ||
run: | | ||
if [ -n "${{ secrets.BUILDBUDDY_API_KEY }}" ]; then | ||
if [ -n "${{ secrets.REMOTE_CACHE_BUCKET_NAME }}" ]; then | ||
cat << EOF >> user.bazelrc | ||
build:buildbuddy --remote_header=x-buildbuddy-api-key=${{ secrets.BUILDBUDDY_API_KEY }} | ||
EOF | ||
fi | ||
cat << EOF >> user.bazelrc | ||
build:buildbuddy --build_metadata=ROLE=CI | ||
build:buildbuddy --build_metadata=VISIBILITY=PRIVATE | ||
build:buildbuddy --remote_instance_name=buildbuddy-io/buildbuddy/ci-secondary-umbrella | ||
build:buildbuddy --color=yes | ||
build --remote_cache=https://storage.googleapis.com/${{ secrets.REMOTE_CACHE_BUCKET_NAME }} | ||
build --google_default_credentials | ||
build:buildbuddy --remote_download_toplevel | ||
build --remote_download_toplevel | ||
EOF | ||
fi | ||
sed -i"_orig" -E "/APP_VERSION/ s/3\.[0-9]+\.[0-9]+/${{ steps.check.outputs.version }}/" rabbitmq.bzl | ||
bazelisk build :package-generic-unix \ | ||
--config=rbe-${{ steps.check.outputs.otp_version_id }} \ | ||
--test_build \ | ||
--verbose_failures | ||
OUTPUT_DIR=${{ github.workspace }}/output | ||
mkdir -p ${OUTPUT_DIR}/rbe-${{ steps.check.outputs.otp_version_id }} | ||
mkdir -p ${OUTPUT_DIR}/${{ steps.check.outputs.otp_version }} | ||
cp \ | ||
bazel-bin/package-generic-unix.tar.xz \ | ||
${OUTPUT_DIR}/rbe-${{ steps.check.outputs.otp_version_id }}/package-generic-unix-for-mixed-version-testing-v${{ steps.check.outputs.version }}.tar.xz | ||
${OUTPUT_DIR}/${{ steps.check.outputs.otp_version }}/package-generic-unix-for-mixed-version-testing-v${{ steps.check.outputs.version }}.tar.xz | ||
- name: UPLOAD THE ARCHIVE TO S3 | ||
if: env.exists != 'true' | ||
uses: jakejarvis/[email protected] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -52,24 +52,32 @@ jobs: | |
with: | ||
otp-version: ${{ matrix.erlang_version }} | ||
elixir-version: ${{ matrix.elixir_version }} | ||
hexpm-mirrors: | | ||
https://builds.hex.pm | ||
https://cdn.jsdelivr.net/hex | ||
- name: Authenticate To Google Cloud | ||
uses: google-github-actions/[email protected] | ||
with: | ||
credentials_json: ${{ secrets.REMOTE_CACHE_CREDENTIALS_JSON }} | ||
|
||
- name: Configure Bazel | ||
run: | | ||
if [ -n "${{ secrets.BUILDBUDDY_API_KEY }}" ]; then | ||
if [ -n "${{ secrets.REMOTE_CACHE_BUCKET_NAME }}" ]; then | ||
cat << EOF >> user.bazelrc | ||
build:buildbuddy --remote_header=x-buildbuddy-api-key=${{ secrets.BUILDBUDDY_API_KEY }} | ||
build --remote_cache=https://storage.googleapis.com/${{ secrets.REMOTE_CACHE_BUCKET_NAME }} | ||
build --google_default_credentials | ||
build --remote_download_toplevel | ||
EOF | ||
fi | ||
cat << EOF >> user.bazelrc | ||
build:buildbuddy --build_metadata=ROLE=CI | ||
build:buildbuddy --build_metadata=VISIBILITY=PRIVATE | ||
build:buildbuddy --color=yes | ||
build --color=yes | ||
EOF | ||
- name: Build & Load RabbitMQ OCI | ||
run: | | ||
bazelisk run packaging/docker-image:rabbitmq-amd64 \ | ||
--config=buildbuddy | ||
bazelisk run packaging/docker-image:rabbitmq-amd64 | ||
- name: Configure Docker Network | ||
run: | | ||
|
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -54,9 +54,9 @@ jobs: | |
fi | ||
echo "exists=${exists}" | tee $GITHUB_ENV | ||
OTP_VERSION_ID=${ARCHIVE_URL#*secondary-umbrellas/rbe-} | ||
OTP_VERSION_ID=${OTP_VERSION_ID%*/package-generic-unix-for-mixed-version-testing-v*.tar.xz} | ||
echo "otp_version_id=${OTP_VERSION_ID}" | tee -a $GITHUB_OUTPUT | ||
OTP_VERSION=${ARCHIVE_URL#*secondary-umbrellas/} | ||
OTP_VERSION=${OTP_VERSION%*/package-generic-unix-for-mixed-version-testing-v*.tar.xz} | ||
echo "otp_version=${OTP_VERSION}" | tee -a $GITHUB_OUTPUT | ||
VERSION=${ARCHIVE_URL#*package-generic-unix-for-mixed-version-testing-v} | ||
VERSION=${VERSION%*.tar.xz} | ||
|
@@ -67,35 +67,42 @@ jobs: | |
with: | ||
ref: v${{ steps.check.outputs.version }} | ||
path: secondary-umbrella | ||
- name: CONFIGURE OTP & ELIXIR | ||
if: env.exists != 'true' | ||
uses: erlef/[email protected] | ||
with: | ||
otp-version: ${{ steps.check.outputs.otp_version }} | ||
elixir-version: 1.14 | ||
hexpm-mirrors: | | ||
https://builds.hex.pm | ||
https://cdn.jsdelivr.net/hex | ||
- name: AUTHENTICATE TO GOOGLE CLOUD | ||
uses: google-github-actions/[email protected] | ||
with: | ||
credentials_json: ${{ secrets.REMOTE_CACHE_CREDENTIALS_JSON }} | ||
- name: BUILD SECONDARY UMBRELLA ARCHIVE | ||
if: env.exists != 'true' | ||
working-directory: secondary-umbrella | ||
run: | | ||
if [ -n "${{ secrets.BUILDBUDDY_API_KEY }}" ]; then | ||
if [ -n "${{ secrets.REMOTE_CACHE_BUCKET_NAME }}" ]; then | ||
cat << EOF >> user.bazelrc | ||
build:buildbuddy --remote_header=x-buildbuddy-api-key=${{ secrets.BUILDBUDDY_API_KEY }} | ||
EOF | ||
fi | ||
cat << EOF >> user.bazelrc | ||
build:buildbuddy --build_metadata=ROLE=CI | ||
build:buildbuddy --build_metadata=VISIBILITY=PRIVATE | ||
build:buildbuddy --remote_instance_name=buildbuddy-io/buildbuddy/ci-secondary-umbrella | ||
build:buildbuddy --color=yes | ||
build --remote_cache=https://storage.googleapis.com/${{ secrets.REMOTE_CACHE_BUCKET_NAME }} | ||
build --google_default_credentials | ||
build:buildbuddy --remote_download_toplevel | ||
build --remote_download_toplevel | ||
EOF | ||
fi | ||
sed -i"_orig" -E "/APP_VERSION/ s/3\.[0-9]+\.[0-9]+/${{ steps.check.outputs.version }}/" rabbitmq.bzl | ||
bazelisk build :package-generic-unix \ | ||
--config=rbe-${{ steps.check.outputs.otp_version_id }} \ | ||
--test_build \ | ||
--verbose_failures | ||
OUTPUT_DIR=${{ github.workspace }}/output | ||
mkdir -p ${OUTPUT_DIR}/rbe-${{ steps.check.outputs.otp_version_id }} | ||
mkdir -p ${OUTPUT_DIR}/${{ steps.check.outputs.otp_version }} | ||
cp \ | ||
bazel-bin/package-generic-unix.tar.xz \ | ||
${OUTPUT_DIR}/rbe-${{ steps.check.outputs.otp_version_id }}/package-generic-unix-for-mixed-version-testing-v${{ steps.check.outputs.version }}.tar.xz | ||
${OUTPUT_DIR}/${{ steps.check.outputs.otp_version }}/package-generic-unix-for-mixed-version-testing-v${{ steps.check.outputs.version }}.tar.xz | ||
- name: UPLOAD THE ARCHIVE TO S3 | ||
if: env.exists != 'true' | ||
uses: jakejarvis/[email protected] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -49,24 +49,32 @@ jobs: | |
with: | ||
otp-version: ${{ matrix.erlang_version }} | ||
elixir-version: ${{ matrix.elixir_version }} | ||
hexpm-mirrors: | | ||
https://builds.hex.pm | ||
https://cdn.jsdelivr.net/hex | ||
- name: Authenticate To Google Cloud | ||
uses: google-github-actions/[email protected] | ||
with: | ||
credentials_json: ${{ secrets.REMOTE_CACHE_CREDENTIALS_JSON }} | ||
|
||
- name: Configure Bazel | ||
run: | | ||
if [ -n "${{ secrets.BUILDBUDDY_API_KEY }}" ]; then | ||
if [ -n "${{ secrets.REMOTE_CACHE_BUCKET_NAME }}" ]; then | ||
cat << EOF >> user.bazelrc | ||
build:buildbuddy --remote_header=x-buildbuddy-api-key=${{ secrets.BUILDBUDDY_API_KEY }} | ||
build --remote_cache=https://storage.googleapis.com/${{ secrets.REMOTE_CACHE_BUCKET_NAME }} | ||
build --google_default_credentials | ||
build --remote_download_toplevel | ||
EOF | ||
fi | ||
cat << EOF >> user.bazelrc | ||
build:buildbuddy --build_metadata=ROLE=CI | ||
build:buildbuddy --build_metadata=VISIBILITY=PRIVATE | ||
build:buildbuddy --color=yes | ||
build --color=yes | ||
EOF | ||
- name: Build & Load RabbitMQ OCI | ||
run: | | ||
bazelisk run packaging/docker-image:rabbitmq-amd64 \ | ||
--config=buildbuddy | ||
bazelisk run packaging/docker-image:rabbitmq-amd64 | ||
- name: Configure Docker Network | ||
run: | | ||
|
Oops, something went wrong.