-
Notifications
You must be signed in to change notification settings - Fork 21
58 lines (55 loc) · 1.67 KB
/
go.yml
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
name: Build Zeppelin
on:
push:
pull_request:
workflow_dispatch:
release:
types: [published]
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
go-version: ["1.22.x"]
os: [ubuntu-latest, macos-latest]
arch: [amd64, arm64]
steps:
- uses: actions/checkout@v4
- name: Setup Go
uses: actions/setup-go@v4
with:
go-version: ${{ matrix.go-version }}
- name: Install libdeflate
run: |
if [ ${{ runner.os }} == 'Linux' ]; then
sudo apt-get update
sudo apt-get install -y libdeflate-dev
elif [ ${{ runner.os }} == 'macOS' ]; then
brew install libdeflate
fi
- name: Build
run: go build -v
- name: Upload Go build results linux
uses: actions/upload-artifact@v3
if: ${{ runner.os == 'Linux' && matrix.arch == 'amd64' }}
with:
name: Zeppelin-AMD64-Linux.zip
path: zeppelin
- name: Upload Go build results arm64-linux
uses: actions/upload-artifact@v3
if: ${{ runner.os == 'Linux' && matrix.arch == 'arm64' }}
with:
name: Zeppelin-ARM64-Linux.zip
path: zeppelin
- name: Upload Go build results macos
uses: actions/upload-artifact@v3
if: ${{ runner.os == 'macOS' && matrix.arch == 'amd64' }}
with:
name: Zeppelin-AMD64-macOS.zip
path: zeppelin
- name: Upload Go build results arm64-macos
uses: actions/upload-artifact@v3
if: ${{ runner.os == 'macOS' && matrix.arch == 'arm64' }}
with:
name: Zeppelin-ARM64-macOS.zip
path: zeppelin