Skip to content

Update actions version (#242) #288

Update actions version (#242)

Update actions version (#242) #288

Workflow file for this run

name: package
on:
push:
branches:
- master
jobs:
package:
name: build package
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
os:
- linux
- darwin
- windows
arch:
- amd64
- arm64
- arm
exclude:
- os: darwin
arch: arm
- os: windows
arch: arm64
steps:
- uses: actions/checkout@v4
- name: setup-go
uses: actions/setup-go@v5
with:
go-version: 1.18
- name: set package name
id: name
run: |
output_name=nebula-console-${{ matrix.os }}-${{ matrix.arch }}-nightly
if [ "${{ matrix.os }}" = "windows" ]; then
output_name+='.exe'
fi
echo "package_name=$output_name" >> $GITHUB_OUTPUT
- name: generate box/blob.go for data/basketballplayer.ngql
run: make gen
env:
GOOS: linux
GOARCH: amd64
- name: build
run: make name=${{ steps.name.outputs.package_name }}
env:
GOOS: ${{ matrix.os }}
GOARCH: ${{ matrix.arch }}
- uses: actions/upload-artifact@v4
with:
name: ${{ steps.name.outputs.package_name }}
path: ./${{ steps.name.outputs.package_name }}