Compare commits

...

5 commits

Author SHA1 Message Date
10f3f33048 Download zig binary once
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
2022-12-18 05:01:55 -08:00
6900c77a32 Add zig fmt step
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
2022-12-18 04:54:25 -08:00
469df7bfcd Zig fmt 2022-12-18 04:51:23 -08:00
cac2b014c5 Update README.md
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
2022-12-18 04:46:55 -08:00
7e6110fbfe Setup unit test CI
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
2022-12-18 04:44:56 -08:00
3 changed files with 31 additions and 2 deletions

27
.woodpecker.yml Normal file
View file

@ -0,0 +1,27 @@
clone:
git:
image: woodpeckerci/plugin-git
settings:
depth: 1
lfs: false
pipeline:
zig-compiler:
image: alpine
- echo "Downloading dependencies..."
- apk add curl xz
- echo "Downloading zig binary..."
- curl https://ziglang.org/download/0.10.0/zig-linux-x86_64-0.10.0.tar.xz | xz -d | tar -x
format:
image: alpine
- echo "Checking formatting..."
- ./zig-linux-x86_64-0.10.0/zig fmt --check src/ tests/ build.zig
unit-tests:
image: alpine
commands:
- echo "Downloading dependencies..."
- apk add sqlite sqlite-dev libpq libpq-dev
- echo "Running unit tests..."
- ./zig-linux-x86_64-0.10.0/zig build unit

View file

@ -1,4 +1,6 @@
# Untitled Social Network server # fediglam
[![status-badge](https://ci.heartles.xyz/api/badges/heartles/fediglam/status.svg)](https://ci.heartles.xyz/heartles/fediglam)
A (soon to be federated) social networking server
## Building ## Building
### Requirements ### Requirements