From e737b8ed84e994658362485251fa068715f509ce Mon Sep 17 00:00:00 2001
From: Julian Nguyen <109386615+juliannguyen4@users.noreply.github.com>
Date: Wed, 25 Sep 2024 08:50:52 -0700
Subject: [PATCH] Build server from source

---
 .github/workflows/build-wheels.yml | 14 ++++++++++++++
 1 file changed, 14 insertions(+)

diff --git a/.github/workflows/build-wheels.yml b/.github/workflows/build-wheels.yml
index be0f8f342..a19d73116 100644
--- a/.github/workflows/build-wheels.yml
+++ b/.github/workflows/build-wheels.yml
@@ -123,6 +123,20 @@ env:
   RUN_INTEGRATION_TESTS_IN_CIBW: ${{ inputs.run_tests && (startsWith(inputs.platform-tag, 'manylinux') || inputs.platform-tag == 'macosx_x86_64') }}
 
 jobs:
+  get-server-build-from-qe-registry:
+    runs-on: ubuntu-22.04
+    steps:
+    - uses: actions/checkout@v4
+      with:
+        repository: 'citrusleaf/aerospike-server'
+        ssh-key: ${{ secrets.CITRUSLEAF_SERVER_PRIVATE_KEY }}
+        submodules: recursive
+    - run: ./bin/install-dependencies.sh
+    - name: Build server
+      run: make -j4
+    - name: Build debian package
+      run: make deb
+
   # Maps don't exist in Github Actions, so we have to store the map using a script and fetch it in a job
   # This uses up more billing minutes (rounded up to 1 minute for each job run),
   # but this should be ok based on the minutes usage data for the aerospike organization