Skip to content

Merge pull request #57 from MegaByte875/support_chunksize #56

Merge pull request #57 from MegaByte875/support_chunksize

Merge pull request #57 from MegaByte875/support_chunksize #56

Workflow file for this run

name: nightly build
on:
workflow_dispatch:
inputs:
mode:
required: true
description: 'which mode you want to build?'
type: choice
options:
- default
- analytics
default: default
sha:
required: false
description: "The commit id you want to build"
default: master
push:
branches: [ "master" ]
jobs:
build:
strategy:
matrix:
os:
- [centos7,nebula-arm,arm64]
- [centos7,nebula-fast,amd64]
runs-on:
- self-hosted
- ${{ matrix.os[1] }}
steps:
- uses: actions/checkout@v3
with:
ref: ${{ github.event.inputs.sha }}
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: '1.20'
- name: Build
if: ${{github.event.inputs.mode == 'default'}}
run: make build
- name: Build With mode ${{github.event.inputs.mode}}
if: ${{github.event.inputs.mode != 'default'}}
run: make build-${{github.event.inputs.mode}}
- name: pack all
run: |
mkdir -p ./build
cp -rf plugins ./build/
cp -rf etc ./build/
- uses: actions/upload-artifact@v2
with:
path: ./build/
name: agent-${{ matrix.os[2] }}