Skip to content

events

events #301

Workflow file for this run

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