This commit is contained in:
parent
3c92cfc5f7
commit
ffe97047e9
1 changed files with 21 additions and 0 deletions
21
.forgejo/workflows/ci-build.yml
Normal file
21
.forgejo/workflows/ci-build.yml
Normal 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue