From ed75f63fe8f4f3e61628d29a5d79ffac32b23818 Mon Sep 17 00:00:00 2001 From: oq-x Date: Thu, 2 Jan 2025 21:15:59 +0200 Subject: [PATCH] add workflows (fuck you git go die) --- .github/workflows/go.yml | 58 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 58 insertions(+) create mode 100644 .github/workflows/go.yml diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml new file mode 100644 index 0000000..ee104ae --- /dev/null +++ b/.github/workflows/go.yml @@ -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 \ No newline at end of file