mirror of
https://github.com/minetest/minetest.git
synced 2024-11-27 01:53:45 +01:00
Test PostgreSQL in CI
This commit is contained in:
parent
aaa05f901a
commit
f8c781b46c
3
.github/workflows/build.yml
vendored
3
.github/workflows/build.yml
vendored
@ -29,6 +29,9 @@ on:
|
||||
- 'Dockerfile'
|
||||
- '.dockerignore'
|
||||
|
||||
env:
|
||||
MINETEST_POSTGRESQL_CONNECT_STRING: 'host=localhost user=minetest password=minetest dbname=minetest'
|
||||
|
||||
jobs:
|
||||
# Older gcc version (should be close to our minimum supported version)
|
||||
gcc_5:
|
||||
|
@ -3,7 +3,7 @@
|
||||
# Linux build only
|
||||
install_linux_deps() {
|
||||
local pkgs=(
|
||||
cmake gettext
|
||||
cmake gettext postgresql
|
||||
libpng-dev libjpeg-dev libxi-dev libgl1-mesa-dev
|
||||
libsqlite3-dev libhiredis-dev libogg-dev libgmp-dev libvorbis-dev
|
||||
libopenal-dev libpq-dev libleveldb-dev libcurl4-openssl-dev libzstd-dev
|
||||
@ -19,6 +19,12 @@ install_linux_deps() {
|
||||
|
||||
sudo apt-get update
|
||||
sudo apt-get install -y --no-install-recommends "${pkgs[@]}" "$@"
|
||||
|
||||
sudo systemctl start postgresql.service
|
||||
sudo -u postgres psql <<<"
|
||||
CREATE USER minetest WITH PASSWORD 'minetest';
|
||||
CREATE DATABASE minetest;
|
||||
"
|
||||
}
|
||||
|
||||
# macOS build only
|
||||
|
Loading…
Reference in New Issue
Block a user