mirror of
https://github.com/osm-search/Nominatim.git
synced 2026-02-16 15:47:58 +00:00
actions: tweak database settings
Disabling fsync and friends should speed up the CI run significantly.
This commit is contained in:
23
.github/actions/setup-postgresql/action.yml
vendored
Normal file
23
.github/actions/setup-postgresql/action.yml
vendored
Normal file
@@ -0,0 +1,23 @@
|
||||
name: 'Setup Postgresql and Postgis'
|
||||
|
||||
runs:
|
||||
using: "composite"
|
||||
|
||||
steps:
|
||||
- name: Install postgis
|
||||
run: sudo apt-get install -y -qq postgresql-13-postgis-3 postgresql-13-postgis-3-scripts postgresql-server-dev-13
|
||||
shell: bash
|
||||
|
||||
- name: Adapt postgresql configuration
|
||||
run: |
|
||||
echo 'fsync = off' | sudo tee /etc/postgresql/13/main/conf.d/local.conf
|
||||
echo 'synchronous_commit = off' | sudo tee -a /etc/postgresql/13/main/conf.d/local.conf
|
||||
echo 'full_page_writes = off' | sudo tee -a /etc/postgresql/13/main/conf.d/local.conf
|
||||
shell: bash
|
||||
|
||||
- name: Setup database
|
||||
run: |
|
||||
sudo systemctl start postgresql
|
||||
sudo -u postgres createuser -S www-data
|
||||
sudo -u postgres createuser -s runner
|
||||
shell: bash
|
||||
Reference in New Issue
Block a user