From 60a9e99425b3cfe12cf9e4fdfd74430c638e16e0 Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Sun, 21 Dec 2025 14:22:56 -0500 Subject: Add github workflow --- .github/workflows/release.yml | 105 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 105 insertions(+) create mode 100644 .github/workflows/release.yml (limited to '.github/workflows') diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 00000000..234d0685 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,105 @@ +name: Release binaries + +on: + [push] + +jobs: + linux-x86_64: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - name: Install deps + run: | + sudo apt-get update + sudo apt-get install -y \ + build-essential \ + libgmp-dev \ + libunistring-dev \ + libgc-dev \ + xxd \ + binutils + + - name: Build + run: | + make clean + make + + - name: Package + run: | + mkdir -p tomo + cp tomo tomo/tomo + tar -czf tomo-linux-x86_64.tar.gz tomo + sha256sum tomo-linux-x86_64.tar.gz > tomo-linux-x86_64.tar.gz.sha256 + + - name: Upload + uses: softprops/action-gh-release@v2 + with: + files: | + tomo-linux-x86_64.tar.gz + tomo-linux-x86_64.tar.gz.sha256 + + linux-aarch64: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - name: Install deps + run: | + sudo apt-get update + sudo apt-get install -y \ + build-essential \ + libgmp-dev \ + libunistring-dev \ + libgc-dev \ + xxd \ + binutils + + - name: Build + run: | + make clean + make + + - name: Package + run: | + mkdir -p tomo + cp tomo tomo/tomo + tar -czf tomo-linux-aarch64.tar.gz tomo + sha256sum tomo-linux-aarch64.tar.gz > tomo-linux-aarch64.tar.gz.sha256 + + - name: Upload + uses: softprops/action-gh-release@v2 + with: + files: | + tomo-linux-aarch64.tar.gz + tomo-linux-aarch64.tar.gz.sha256 + + macos: + runs-on: macos-latest + steps: + - uses: actions/checkout@v4 + + - name: Install deps + run: | + brew update + brew install gmp libunistring bdw-gc xxd llvm binutils + + - name: Build + run: | + make clean + make + + - name: Package + run: | + mkdir -p tomo + cp tomo tomo/tomo + tar -czf tomo-macos-universal.tar.gz tomo + shasum -a 256 tomo-macos-universal.tar.gz > tomo-macos-universal.tar.gz.sha256 + + - name: Upload + uses: softprops/action-gh-release@v2 + with: + files: | + tomo-macos-universal.tar.gz + tomo-macos-universal.tar.gz.sha256 + -- cgit v1.2.3