Files
Nexus-Guard-Suite/.gitea/workflows/build_server_core.yaml
T
datadunia c0f18a41a1
CI / server-core-test (push) Has been skipped
CI / device-agent-test (push) Has been skipped
CI / dashboard-test (push) Has been skipped
CI / build-server-core (push) Successful in 3m44s
CI / build-device-agent (push) Successful in 1m38s
CI / build-dashboard (push) Successful in 3m39s
CI / build-docs (push) Successful in 51s
CI / release (push) Successful in 46s
ci: fix submodule auth + replace matrix build for device-agent
- persist-credentials: false on all workflows (prevent Gitea overwriting insteadOf URL)
- Replace matrix strategy in build_device_agent.yaml with sequential builds (act_runner v0.6.1 ParallelExecutor crash)
- Build all 3 platforms (linux/amd64, linux/arm64, windows/amd64) in single step
2026-06-10 11:04:48 +07:00

43 lines
1.1 KiB
YAML

name: Build Server Core
on:
workflow_call:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Configure git auth for submodules
run: git config --global url."https://x-access-token:${{ secrets.BUILD_TOKEN }}@git.datadunia.com/".insteadOf "https://git.datadunia.com/"
- uses: actions/checkout@v4
with:
submodules: true
fetch-depth: 0
token: ${{ secrets.BUILD_TOKEN }}
persist-credentials: false
- uses: actions/setup-go@v5
with:
go-version: '1.26'
- name: Download Go modules
working-directory: apps/server-core
run: go mod download
- name: Generate Swagger docs
working-directory: apps/server-core
run: |
go install github.com/swaggo/swag/cmd/swag@v1.16.6
swag init -g main.go --parseDependency --parseInternal
- name: Build
working-directory: apps/server-core
run: go build -o bin/server-core .
- name: Upload artifact
uses: actions/upload-artifact@v3
with:
name: server-core-linux-amd64
path: apps/server-core/bin/server-core