.github,go/utils/{publishrelease,rpmbuild}: Add a basic RPM build to the published release artifacts for Dolt.

These RPMs include the statically linked Dolt binary, installed at
/usr/local/bin/dolt. They work on x86_64 and aarch64 RPM-based Linux
distributions. To install them, download the appropriate
`dolt-...-1.{x86_64,aarch64}.rpm` file from the GitHub release artifacts and
run `sudo rpm -i downloaded_file.rpm` on it.
This commit is contained in:
Aaron Son
2025-11-25 14:42:08 -08:00
parent bcd9fd9665
commit 26fca083fb
10 changed files with 100 additions and 12 deletions

View File

@@ -170,6 +170,26 @@ jobs:
asset_path: go/out/install.sh
asset_name: install.sh
asset_content_type: text/plain
- name: Upload Linux AMD64 RPM
id: upload-linux-amd64-rpm
uses: dolthub/upload-release-asset@v2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: go/out/dolt-${{ needs.format-version.outputs.version }}-1.x86_64.rpm
asset_name: dolt-${{ needs.format-version.outputs.version }}-1.x86_64.rpm
asset_content_type: application/zip
- name: Upload Linux ARM64 RPM
id: upload-linux-arm64-rpm
uses: dolthub/upload-release-asset@v2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: go/out/dolt-${{ needs.format-version.outputs.version }}-1.aarch64.rpm
asset_name: dolt-${{ needs.format-version.outputs.version }}-1.aarch64.rpm
asset_content_type: application/zip
create-windows-msi:
needs: [format-version, create-pgo-release]