aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows/release.yml
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2025-12-21 14:22:56 -0500
committerBruce Hill <bruce@bruce-hill.com>2025-12-21 14:22:56 -0500
commit60a9e99425b3cfe12cf9e4fdfd74430c638e16e0 (patch)
tree8ec81d463d3b6679a0adae644fa51bfd77236001 /.github/workflows/release.yml
parent9e8574f44c22615de09c133eeb9f60cccfc5aed3 (diff)
Add github workflow
Diffstat (limited to '.github/workflows/release.yml')
-rw-r--r--.github/workflows/release.yml105
1 files changed, 105 insertions, 0 deletions
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
+