|
31 | 31 | ensure-mixed-version-archive:
|
32 | 32 | name: Prepare Artifacts
|
33 | 33 | runs-on: ubuntu-20.04
|
34 |
| - env: |
35 |
| - # must be a version supported by builds on both this and the secondary umbrella branch |
36 |
| - otp_version_id: 25 |
37 | 34 | steps:
|
38 | 35 | - name: CHECKOUT REPOSITORY
|
39 | 36 | uses: actions/checkout@v3
|
|
59 | 56 | fi
|
60 | 57 | echo "exists=${exists}" | tee $GITHUB_ENV
|
61 | 58 |
|
| 59 | + OTP_VERSION_ID=${ARCHIVE_URL#*secondary-umbrellas/rbe-} |
| 60 | + OTP_VERSION_ID=${OTP_VERSION_ID%*/package-generic-unix-for-mixed-version-testing-v*.tar.xz} |
| 61 | + echo "otp_version_id=${OTP_VERSION_ID}" | tee -a $GITHUB_OUTPUT |
| 62 | +
|
62 | 63 | VERSION=${ARCHIVE_URL#*package-generic-unix-for-mixed-version-testing-v}
|
63 | 64 | VERSION=${VERSION%*.tar.xz}
|
64 |
| - echo "version=${VERSION}" | tee $GITHUB_OUTPUT |
| 65 | + echo "version=${VERSION}" | tee -a $GITHUB_OUTPUT |
65 | 66 | - name: CHECKOUT REPOSITORY (MIXED VERSION)
|
66 | 67 | if: env.exists != 'true'
|
67 | 68 | uses: actions/checkout@v3
|
@@ -96,15 +97,15 @@ jobs:
|
96 | 97 |
|
97 | 98 | sed -i"_orig" -E "/APP_VERSION/ s/3\.[0-9]+\.[0-9]+/${{ steps.check.outputs.version }}/" rabbitmq.bzl
|
98 | 99 | bazelisk build :package-generic-unix \
|
99 |
| - --config=rbe-${{ env.otp_version_id }} \ |
| 100 | + --config=rbe-${{ steps.check.outputs.otp_version_id }} \ |
100 | 101 | --test_build \
|
101 | 102 | --verbose_failures
|
102 | 103 |
|
103 | 104 | OUTPUT_DIR=${{ github.workspace }}/output
|
104 |
| - mkdir ${OUTPUT_DIR} |
| 105 | + mkdir -p ${OUTPUT_DIR}/rbe-${{ steps.check.outputs.otp_version_id }} |
105 | 106 | cp \
|
106 | 107 | bazel-bin/package-generic-unix.tar.xz \
|
107 |
| - ${OUTPUT_DIR}/package-generic-unix-for-mixed-version-testing-v${{ steps.check.outputs.version }}.tar.xz |
| 108 | + ${OUTPUT_DIR}/rbe-${{ steps.check.outputs.otp_version_id }}/package-generic-unix-for-mixed-version-testing-v${{ steps.check.outputs.version }}.tar.xz |
108 | 109 | - name: UPLOAD THE ARCHIVE TO S3
|
109 | 110 | if: env.exists != 'true'
|
110 | 111 | uses: jakejarvis/[email protected]
|
|
0 commit comments