From b34537834bd85a50d9144ac1ec9af08ff0e79718 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 | 6 +++--- .github/workflows/call-build-linux-x86-packages.yml | 10 +++++++--- 2 files changed, 10 insertions(+), 6 deletions(-) diff --git a/.github/workflows/call-build-linux-arm-packages.yml b/.github/workflows/call-build-linux-arm-packages.yml index 8862f1973..2a7bcc533 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,8 +51,8 @@ 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: | diff --git a/.github/workflows/call-build-linux-x86-packages.yml b/.github/workflows/call-build-linux-x86-packages.yml index 42b9146ea..9e438fa61 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,10 +47,10 @@ 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: | @@ -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