Files
Nexus-Guard-Suite/.gitea/workflows/build_server_core.yaml
T
datadunia c5364cf5ba
CI / server-core-test (push) Failing after 4s
CI / device-agent-test (push) Failing after 4s
CI / dashboard-test (push) Failing after 4s
CI / build-docs (push) Failing after 9s
CI / build-server-core (push) Has been skipped
CI / build-device-agent (push) Has been skipped
CI / build-dashboard (push) Has been skipped
CI / release (push) Has been skipped
ci: unify workflows - split build per component, single tag-triggered pipeline
2026-06-10 03:29:59 +07:00

38 lines
828 B
YAML

name: Build Server Core
on:
workflow_call:
jobs:
build:
runs-on: ubuntu-latest
defaults:
run:
working-directory: apps/server-core
steps:
- uses: actions/checkout@v4
with:
submodules: true
fetch-depth: 0
- uses: actions/setup-go@v5
with:
go-version: '1.26'
- name: Download Go modules
run: go mod download
- name: Generate Swagger docs
run: |
go install github.com/swaggo/swag/cmd/swag@v1.16.6
swag init -g main.go --parseDependency --parseInternal
- name: Build
run: go build -o bin/server-core .
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: server-core-linux-amd64
path: apps/server-core/bin/server-core