From 44a7c35d31058415b9d9269ca35b353e35750ec1 Mon Sep 17 00:00:00 2001 From: Melroy van den Berg Date: Wed, 2 Oct 2024 19:48:54 +0200 Subject: [PATCH] Build binary releases with systemd support (#1107) - Add systemd support to the build artifact tarballs, so people can use it under systemd compatible distros. As discussed here: https://github.com/orgs/valkey-io/discussions/1103#discussioncomment-10815549. Adding `libsystemd-dev` to install and add `USE_SYSTEMD=yes` to the build. - Cleanup & bring the arm & x86 workflow files in-sync. It was a bit of a mess ;) (removing `jq wget awscli` from the 'Tarball' step) Signed-off-by: Melroy van den Berg --- .github/workflows/call-build-linux-arm-packages.yml | 8 ++++---- .github/workflows/call-build-linux-x86-packages.yml | 12 ++++++++---- 2 files changed, 12 insertions(+), 8 deletions(-) diff --git a/.github/workflows/call-build-linux-arm-packages.yml b/.github/workflows/call-build-linux-arm-packages.yml index 96b359fa4a..a4d608b563 100644 --- a/.github/workflows/call-build-linux-arm-packages.yml +++ b/.github/workflows/call-build-linux-arm-packages.yml @@ -36,7 +36,7 @@ jobs: build-valkey: # Capture source tarball and generate checksum for it name: Build package ${{ matrix.distro.target }} ${{ matrix.distro.arch }} - runs-on: 'ubuntu-latest' + runs-on: "ubuntu-latest" strategy: fail-fast: false matrix: ${{ fromJSON(inputs.build_matrix) }} @@ -51,9 +51,9 @@ jobs: with: arch: aarch64 distro: ${{matrix.distro.target}} - install: apt-get update && apt-get install -y build-essential libssl-dev - run: make -C src all BUILD_TLS=yes - + install: apt-get update && apt-get install -y build-essential libssl-dev libsystemd-dev + run: make -C src all BUILD_TLS=yes USE_SYSTEMD=yes + - name: Create Tarball and SHA256sums run: | TAR_FILE_NAME=valkey-${{inputs.version}}-${{matrix.distro.platform}}-${{ matrix.distro.arch}} diff --git a/.github/workflows/call-build-linux-x86-packages.yml b/.github/workflows/call-build-linux-x86-packages.yml index d256db6179..9e438fa61a 100644 --- a/.github/workflows/call-build-linux-x86-packages.yml +++ b/.github/workflows/call-build-linux-x86-packages.yml @@ -36,7 +36,7 @@ jobs: build-valkey: # Capture source tarball and generate checksum for it name: Build package ${{ matrix.distro.target }} ${{ matrix.distro.arch }} - runs-on: 'ubuntu-latest' + runs-on: "ubuntu-latest" strategy: fail-fast: false matrix: ${{ fromJSON(inputs.build_matrix) }} @@ -47,11 +47,11 @@ jobs: ref: ${{ inputs.version }} - name: Install dependencies - run: sudo apt-get update && sudo apt-get install -y build-essential libssl-dev jq wget awscli + run: sudo apt-get update && sudo apt-get install -y build-essential libssl-dev libsystemd-dev - name: Make Valkey - run: make -C src all BUILD_TLS=yes - + run: make -C src all BUILD_TLS=yes USE_SYSTEMD=yes + - name: Create Tarball and SHA256sums run: | TAR_FILE_NAME=valkey-${{inputs.version}}-${{matrix.distro.platform}}-${{ matrix.distro.arch}} @@ -63,6 +63,10 @@ jobs: mkdir -p packages-files cp -rfv $TAR_FILE_NAME.tar* packages-files/ + - name: Install AWS cli. + run: | + sudo apt-get install -y awscli + - name: Configure AWS credentials run: | aws configure set region us-west-2