Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
41 changes: 41 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: Build and archive Go Binary

on:
push:
tags:
- 'v*'
pull_request:
types: [opened, synchronize, reopened]
branches:
- main

jobs:
build:
name: Build
runs-on: ubuntu-24.04-ppc64le

steps:
- name: Checkout code
uses: actions/checkout@v5
with:
fetch-depth: 0

- name: Setup Go
run: |
GO_VERSION="1.24.1"
wget https://go.dev/dl/go${GO_VERSION}.linux-ppc64le.tar.gz
sudo tar -C /usr/local -xzf go${GO_VERSION}.linux-ppc64le.tar.gz
echo "/usr/local/go/bin" >> $GITHUB_PATH

- run: go version

- name: Build Go binary
run: |
cd ai-services
make build

- name: Archive binary
uses: actions/upload-artifact@v4
with:
name: ai-services-binary
path: ai-services/bin/ai-services
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@ nohup.out
.venv
env
venv
vendor