add ci-build workflow
Some checks are pending
CI Build / build (push) Waiting to run

This commit is contained in:
devadmin 2026-04-16 03:47:23 +00:00
parent 3c92cfc5f7
commit ffe97047e9

View file

@ -0,0 +1,21 @@
name: CI Build
on:
push:
branches: [main]
jobs:
build:
runs-on: [self-hosted]
steps:
- uses: actions/checkout@v4
- name: Build
run: |
if [ -f "go.mod" ]; then
echo "Detected Go project"
go build ./...
go test ./...
elif [ -f "Cargo.toml" ]; then
echo "Detected Rust project"
cargo build --release
else
echo "No build system found"
fi