File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 4040 mv swift-${SWIFT_VERSION}-RELEASE-ubuntu22.04 /opt/swift
4141 rm swift-${SWIFT_VERSION}-RELEASE-ubuntu22.04.tar.gz
4242 export PATH="/opt/swift/usr/bin:${PATH}"
43+
44+ - name : Start PostgreSQL and create database (Linux)
45+ if : runner.os == 'Linux'
46+ run : |
47+ sudo systemctl start postgresql
48+ # Find the active pg_hba.conf file
49+ HBA_CONF=$(sudo -u postgres psql -t -P format=unaligned -c 'SHOW hba_file;')
50+ # Add a line to allow all local users to connect without a password (trust auth)
51+ # This is safe in a CI environment
52+ echo "local all all trust" | sudo tee -a $HBA_CONF
53+ # Restart postgres to apply the new auth setting
54+ sudo systemctl restart postgresql
55+ # Wait for restart
56+ sleep 2
57+ # Create the 'fuzzilli' database. The 'runner' user can now connect.
58+ createdb fuzzilli
59+
60+ - name : Start PostgreSQL and create database (macOS)
61+ if : runner.os == 'macOS'
62+ run : |
63+ # Start the pre-installed postgresql service
64+ brew services start postgresql
65+ # Wait for it to be ready
66+ sleep 5
67+ # Create the 'fuzzilli' database.
68+ # On macOS/brew, this usually works without password auth by default for the current user.
69+ createdb fuzzilli
70+
4371 - uses : actions/checkout@v2
4472 - name : Build
4573 run : swift build -c ${{ matrix.kind }} -v
You can’t perform that action at this time.
0 commit comments