Skip to content

Commit ed75f63

Browse files
committed
add workflows (fuck you git go die)
1 parent c31da99 commit ed75f63

File tree

1 file changed

+58
-0
lines changed

1 file changed

+58
-0
lines changed

.github/workflows/go.yml

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
name: Build Zeppelin
2+
3+
on:
4+
push:
5+
pull_request:
6+
workflow_dispatch:
7+
release:
8+
types: [published]
9+
10+
jobs:
11+
build:
12+
runs-on: ${{ matrix.os }}
13+
strategy:
14+
matrix:
15+
go-version: ["1.22.x"]
16+
os: [ubuntu-latest, macos-latest]
17+
arch: [amd64, arm64]
18+
19+
steps:
20+
- uses: actions/checkout@v4
21+
- name: Setup Go
22+
uses: actions/setup-go@v4
23+
with:
24+
go-version: ${{ matrix.go-version }}
25+
- name: Install libdeflate
26+
run: |
27+
if [ ${{ runner.os }} == 'Linux' ]; then
28+
sudo apt-get update
29+
sudo apt-get install -y libdeflate-dev
30+
elif [ ${{ runner.os }} == 'macOS' ]; then
31+
brew install libdeflate
32+
fi
33+
- name: Build
34+
run: go build -v
35+
- name: Upload Go build results linux
36+
uses: actions/upload-artifact@v3
37+
if: ${{ runner.os == 'Linux' && matrix.arch == 'amd64' }}
38+
with:
39+
name: Zeppelin-AMD64-Linux.zip
40+
path: zeppelin
41+
- name: Upload Go build results arm64-linux
42+
uses: actions/upload-artifact@v3
43+
if: ${{ runner.os == 'Linux' && matrix.arch == 'arm64' }}
44+
with:
45+
name: Zeppelin-ARM64-Linux.zip
46+
path: zeppelin
47+
- name: Upload Go build results macos
48+
uses: actions/upload-artifact@v3
49+
if: ${{ runner.os == 'macOS' && matrix.arch == 'amd64' }}
50+
with:
51+
name: Zeppelin-AMD64-macOS.zip
52+
path: zeppelin
53+
- name: Upload Go build results arm64-macos
54+
uses: actions/upload-artifact@v3
55+
if: ${{ runner.os == 'macOS' && matrix.arch == 'arm64' }}
56+
with:
57+
name: Zeppelin-ARM64-macOS.zip
58+
path: zeppelin

0 commit comments

Comments
 (0)