Skip to content

Commit

Permalink
install postgres on runner
Browse files Browse the repository at this point in the history
  • Loading branch information
alpetric committed Oct 1, 2024
1 parent 2f80ba1 commit 1566c56
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/build_windows_worker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,16 @@ jobs:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- name: Install PostgreSQL using Chocolatey
run: |
choco install postgresql --params '/Password:changeme' -y
- name: Initialize PostgreSQL
run: |
# Initialize PostgreSQL, set the correct paths
$env:PGROOT = "${Env:ProgramFiles}\PostgreSQL\15\bin"
$env:PGDATA = "${Env:ProgramFiles}\PostgreSQL\15\data"
& $env:PGROOT\pg_ctl.exe initdb -D $env:PGDATA
& $env:PGROOT\pg_ctl.exe start -D $env:PGDATA -l logfile
- name: cargo build windows
timeout-minutes: 15
run: mkdir frontend/build && cd backend && New-Item -Path . -Name "windmill-api/openapi-deref.yaml" -ItemType "File" -Force && cargo build --release
Expand Down

0 comments on commit 1566c56

Please sign in to comment.