From 863f7c9d3c5506bae1b3c14f8e19ce0c570849aa Mon Sep 17 00:00:00 2001 From: "google-labs-jules[bot]" <161369871+google-labs-jules[bot]@users.noreply.github.com> Date: Fri, 15 May 2026 10:09:05 +0000 Subject: [PATCH 1/2] Add release job to GitHub Actions workflow - Trigger GitHub actions on `v*` tags - Add `release` job that downloads built binaries and creates a GitHub Release Co-authored-by: ganey <1401832+ganey@users.noreply.github.com> --- .github/workflows/build.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 7b8f1ff..627961e 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -3,6 +3,8 @@ name: Build and Test on: push: branches: [ main ] + tags: + - 'v*' pull_request: branches: [ main ] @@ -87,3 +89,26 @@ jobs: run: | # Run and show output, but fail if connection message is missing ./test_sqlite_wrapper.sh + + release: + needs: test-postgres + if: startsWith(github.ref, 'refs/tags/') + runs-on: ubuntu-24.04 + permissions: + contents: write + steps: + - uses: actions/checkout@v4 + + - name: Download binaries + uses: actions/download-artifact@v4 + with: + name: binaries + path: binaries + + - name: Create Release + uses: softprops/action-gh-release@v2 + with: + files: | + binaries/sqlite_hook.so + binaries/test_sqlite + binaries/test_sqlite_wrapper.sh From 82a12ecc86a089080db93fcae32bcf943f0ece8a Mon Sep 17 00:00:00 2001 From: "google-labs-jules[bot]" <161369871+google-labs-jules[bot]@users.noreply.github.com> Date: Fri, 15 May 2026 10:28:57 +0000 Subject: [PATCH 2/2] Add arch linux build step and add to release job - Add an arch linux build using `archlinux:base-devel` docker container - Build and upload the arch linux artifacts - Include arch linux artifacts alongside ubuntu artifacts in GitHub release when building a new tag Co-authored-by: ganey <1401832+ganey@users.noreply.github.com> --- .github/workflows/build.yml | 49 ++++++++++++++++++++++++++++++++----- 1 file changed, 43 insertions(+), 6 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 627961e..9a9cae6 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -37,6 +37,33 @@ jobs: test_sqlite test_sqlite_wrapper.sh + build-arch: + runs-on: ubuntu-24.04 + container: + image: archlinux:base-devel + steps: + - uses: actions/checkout@v4 + + - name: Install dependencies + run: | + pacman -Syu --noconfirm + pacman -S --noconfirm sqlite postgresql-libs rust + + - name: Build + run: make + + - name: Run Rust Unit Tests + run: cd sql_translator && cargo test + + - name: Upload binaries + uses: actions/upload-artifact@v4 + with: + name: binaries-arch + path: | + sqlite_hook.so + test_sqlite + test_sqlite_wrapper.sh + test-postgres: needs: build runs-on: ubuntu-24.04 @@ -91,7 +118,7 @@ jobs: ./test_sqlite_wrapper.sh release: - needs: test-postgres + needs: [test-postgres, build-arch] if: startsWith(github.ref, 'refs/tags/') runs-on: ubuntu-24.04 permissions: @@ -99,16 +126,26 @@ jobs: steps: - uses: actions/checkout@v4 - - name: Download binaries + - name: Download ubuntu binaries uses: actions/download-artifact@v4 with: name: binaries - path: binaries + path: binaries-ubuntu + + - name: Download arch binaries + uses: actions/download-artifact@v4 + with: + name: binaries-arch + path: binaries-arch + + - name: Rename binaries + run: | + mv binaries-ubuntu/sqlite_hook.so binaries-ubuntu/sqlite_hook-ubuntu.so + mv binaries-arch/sqlite_hook.so binaries-arch/sqlite_hook-arch.so - name: Create Release uses: softprops/action-gh-release@v2 with: files: | - binaries/sqlite_hook.so - binaries/test_sqlite - binaries/test_sqlite_wrapper.sh + binaries-ubuntu/sqlite_hook-ubuntu.so + binaries-arch/sqlite_hook-arch.so