Skip to content

Commit

Permalink
add workflows (fuck you git go die)
Browse files Browse the repository at this point in the history
  • Loading branch information
oq-x committed Jan 2, 2025
1 parent c31da99 commit ed75f63
Showing 1 changed file with 58 additions and 0 deletions.
58 changes: 58 additions & 0 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,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

0 comments on commit ed75f63

Please sign in to comment.