@@ -46,49 +46,17 @@ jobs:
4646 if : startsWith(matrix.runner, 'ubuntu')
4747 run : |
4848 sudo apt-get update
49- sudo apt-get install -y libpq-dev protobuf-compiler musl-tools libssl-dev
49+ sudo apt-get install -y protobuf-compiler musl-tools
5050
5151 - name : Install dependencies (macOS)
5252 if : startsWith(matrix.runner, 'macos')
5353 run : |
54- brew install postgresql protobuf
54+ brew install protobuf
5555
5656 - name : Install protobuf (Windows)
5757 if : startsWith(matrix.runner, 'windows')
5858 run : choco install protoc
5959
60- - name : Cache vcpkg
61- uses : actions/cache@v4
62- if : startsWith(matrix.runner, 'windows')
63- id : vcpkg-cache
64- with :
65- path : |
66- ${{ github.workspace }}/vcpkg
67- C:/vcpkg/installed
68- C:/vcpkg/packages
69- key : ${{ runner.os }}-vcpkg-${{ hashFiles('**/Cargo.lock') }}
70- restore-keys : |
71- ${{ runner.os }}-vcpkg-
72-
73- - name : Install vcpkg and dependencies (Windows)
74- if : startsWith(matrix.runner, 'windows') && steps.vcpkg-cache.outputs.cache-hit != 'true'
75- run : |
76- # Install vcpkg
77- git clone https://github.com/microsoft/vcpkg.git
78- cd vcpkg
79- .\bootstrap-vcpkg.bat
80-
81- # Install libpq using vcpkg
82- .\vcpkg.exe install libpq:x64-windows
83- shell : pwsh
84-
85- - name : Set Windows environment variables
86- if : startsWith(matrix.runner, 'windows')
87- run : |
88- echo "VCPKG_ROOT=${{ github.workspace }}/vcpkg" | Out-File -FilePath $env:GITHUB_ENV -Append
89- echo "LIBPQ_DIR=${{ github.workspace }}/vcpkg/installed/x64-windows" | Out-File -FilePath $env:GITHUB_ENV -Append
90- echo "RUSTFLAGS=-L ${{ github.workspace }}/vcpkg/installed/x64-windows/lib" | Out-File -FilePath $env:GITHUB_ENV -Append
91- shell : pwsh
9260
9361 - name : Build gnd binary (Unix/Mac)
9462 if : ${{ !startsWith(matrix.runner, 'windows') }}
9765 - name : Build gnd binary (Windows)
9866 if : startsWith(matrix.runner, 'windows')
9967 run : cargo build --bin gnd --release --target ${{ matrix.target }}
100- env :
101- LIBPQ_DIR : ${{ format('{0}/vcpkg/installed/x64-windows', github.workspace) }}
102- VCPKGRS_DYNAMIC : 1
10368
10469 - name : Sign macOS binary
10570 if : startsWith(matrix.runner, 'macos')
0 commit comments