-
Notifications
You must be signed in to change notification settings - Fork 40
41 lines (34 loc) · 887 Bytes
/
release.yml
File metadata and controls
41 lines (34 loc) · 887 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
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