ci: add Forgejo Actions workflow
NIP CI / Build (push) Failing after 11s Details
NIP CI / Security Scan (push) Successful in 3s Details

This commit is contained in:
Markus Maiwald 2026-02-15 20:04:42 +01:00
parent d26bbd939c
commit 3483b42b74
Signed by: markus
GPG Key ID: 07DDBEA3CBDC090A
1 changed files with 55 additions and 0 deletions

55
.forgejo/workflows/ci.yml Normal file
View File

@ -0,0 +1,55 @@
# NIP Package Manager CI
name: NIP CI
on:
push:
branches: [unstable, main, stable, testing]
pull_request:
branches: [unstable, main]
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Verify toolchain
run: nim --version | head -1
- name: Install dependencies
run: |
nimble refresh 2>/dev/null || true
nimble install -y xxhash 2>/dev/null || echo "WARN: xxhash install failed"
- name: Build (release)
run: nim c -d:release --opt:speed --hints:off -o:nip nip.nim
- name: Verify binary
run: |
ls -lh nip
file nip
security-scan:
name: Security Scan
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Check for sensitive content
run: |
FAIL=0
for dir in .agent .vscode .kiro competitors; do
if [ -d "$dir" ]; then
echo "FAIL: Sensitive directory '$dir' found"
FAIL=1
fi
done
MATCHES=$(git grep -l '/home/markus' -- ':!.forgejo/' 2>/dev/null || true)
if [ -n "$MATCHES" ]; then
echo "FAIL: Internal paths found in:"
echo "$MATCHES"
FAIL=1
fi
if [ $FAIL -eq 1 ]; then exit 1; fi
echo "Security scan PASSED"