26 lines
654 B
YAML
26 lines
654 B
YAML
image: alpine/3.17
|
|
packages:
|
|
- rust
|
|
- cargo
|
|
- openssl-dev
|
|
- postgresql
|
|
- sudo
|
|
sources:
|
|
- https://git.e3t.cc/~core/trifid
|
|
tasks:
|
|
- setup: |
|
|
sudo -u postgres mkdir /var/lib/postgresql/data
|
|
sudo -u postgres chmod 0700 /var/lib/postgresql/data
|
|
sudo -u postgres initdb -D /var/lib/postgresql/data
|
|
sudo -u postgres pg_ctl start -D /var/lib/postgresql/data
|
|
cd /home/build/trifid
|
|
cargo install sqlx-cli
|
|
sqlx database create
|
|
sqlx mig run
|
|
- check: |
|
|
cd /home/build/trifid
|
|
cargo check --locked
|
|
cargo clippy --locked
|
|
- build: |
|
|
cd /home/build/trifid
|
|
cargo build --locked |