@@ -46,49 +46,17 @@ jobs:
46
46
if : startsWith(matrix.runner, 'ubuntu')
47
47
run : |
48
48
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
50
50
51
51
- name : Install dependencies (macOS)
52
52
if : startsWith(matrix.runner, 'macos')
53
53
run : |
54
- brew install postgresql protobuf
54
+ brew install protobuf
55
55
56
56
- name : Install protobuf (Windows)
57
57
if : startsWith(matrix.runner, 'windows')
58
58
run : choco install protoc
59
59
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
92
60
93
61
- name : Build gnd binary (Unix/Mac)
94
62
if : ${{ !startsWith(matrix.runner, 'windows') }}
97
65
- name : Build gnd binary (Windows)
98
66
if : startsWith(matrix.runner, 'windows')
99
67
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
103
68
104
69
- name : Sign macOS binary
105
70
if : startsWith(matrix.runner, 'macos')
0 commit comments