Workflow changes to fix old release binaries (#1461)
- Moves `build-config.json` to workflow dir to build old versions with new configs. - Enables contributors to test release Wf on private repo by adding `github.event_name == 'workflow_dispatch' ||` --------- Signed-off-by: Roshan Khatri <rvkhatri@amazon.com>
This commit is contained in:
parent
14fb6d3487
commit
fe2ef2616c
@ -24,11 +24,11 @@ runs:
|
|||||||
|
|
||||||
- name: Get targets
|
- name: Get targets
|
||||||
run: |
|
run: |
|
||||||
x86_arch=$(jq -c '[.linux_targets[] | select(.arch=="x86_64")]' utils/releasetools/build-config.json)
|
x86_arch=$(jq -c '[.linux_targets[] | select(.arch=="x86_64")]' .github/actions/generate-package-build-matrix/build-config.json)
|
||||||
x86_matrix=$(echo "{ \"distro\" : $x86_arch }" | jq -c .)
|
x86_matrix=$(echo "{ \"distro\" : $x86_arch }" | jq -c .)
|
||||||
echo "X86_MATRIX=$x86_matrix" >> $GITHUB_ENV
|
echo "X86_MATRIX=$x86_matrix" >> $GITHUB_ENV
|
||||||
|
|
||||||
arm_arch=$(jq -c '[.linux_targets[] | select(.arch=="arm64")]' utils/releasetools/build-config.json)
|
arm_arch=$(jq -c '[.linux_targets[] | select(.arch=="arm64")]' .github/actions/generate-package-build-matrix/build-config.json)
|
||||||
arm_matrix=$(echo "{ \"distro\" : $arm_arch }" | jq -c .)
|
arm_matrix=$(echo "{ \"distro\" : $arm_arch }" | jq -c .)
|
||||||
echo "ARM_MATRIX=$arm_matrix" >> $GITHUB_ENV
|
echo "ARM_MATRIX=$arm_matrix" >> $GITHUB_ENV
|
||||||
shell: bash
|
shell: bash
|
||||||
|
6
.github/workflows/build-release-packages.yml
vendored
6
.github/workflows/build-release-packages.yml
vendored
@ -8,7 +8,7 @@ on:
|
|||||||
- '.github/workflows/build-release-packages.yml'
|
- '.github/workflows/build-release-packages.yml'
|
||||||
- '.github/workflows/call-build-linux-arm-packages.yml'
|
- '.github/workflows/call-build-linux-arm-packages.yml'
|
||||||
- '.github/workflows/call-build-linux-x86-packages.yml'
|
- '.github/workflows/call-build-linux-x86-packages.yml'
|
||||||
- 'utils/releasetools/build-config.json'
|
- '.github/actions/generate-package-build-matrix/build-config.json'
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
inputs:
|
inputs:
|
||||||
version:
|
version:
|
||||||
@ -23,7 +23,7 @@ jobs:
|
|||||||
# This job provides the version metadata from the tag for the other jobs to use.
|
# This job provides the version metadata from the tag for the other jobs to use.
|
||||||
release-build-get-meta:
|
release-build-get-meta:
|
||||||
name: Get metadata to build
|
name: Get metadata to build
|
||||||
if: github.repository == 'valkey-io/valkey'
|
if: github.event_name == 'workflow_dispatch' || github.repository == 'valkey-io/valkey'
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
outputs:
|
outputs:
|
||||||
version: ${{ steps.get_version.outputs.VERSION }}
|
version: ${{ steps.get_version.outputs.VERSION }}
|
||||||
@ -69,7 +69,7 @@ jobs:
|
|||||||
|
|
||||||
generate-build-matrix:
|
generate-build-matrix:
|
||||||
name: Generating build matrix
|
name: Generating build matrix
|
||||||
if: github.repository == 'valkey-io/valkey'
|
if: github.event_name == 'workflow_dispatch' || github.repository == 'valkey-io/valkey'
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
outputs:
|
outputs:
|
||||||
x86_64-build-matrix: ${{ steps.set-matrix.outputs.x86_64-build-matrix }}
|
x86_64-build-matrix: ${{ steps.set-matrix.outputs.x86_64-build-matrix }}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user