Skip to content

Commit 28c9dbc

Browse files
committed
.github: build vs-build with NO_GETTEXT
Signed-off-by: Dennis Ameling <[email protected]>
1 parent ca911fc commit 28c9dbc

File tree

1 file changed

+8
-17
lines changed

1 file changed

+8
-17
lines changed

.github/workflows/main.yml

Lines changed: 8 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -174,22 +174,13 @@ jobs:
174174
matrix:
175175
arch: [x64, arm64]
176176
steps:
177-
- uses: actions/checkout@v1
178-
- name: download git-sdk-64-minimal
179-
shell: bash
180-
run: |
181-
## Get artifact
182-
urlbase=https://dev.azure.com/git-for-windows/git/_apis/build/builds
183-
id=$(curl "$urlbase?definitions=22&statusFilter=completed&resultFilter=succeeded&\$top=1" |
184-
jq -r ".value[] | .id")
185-
download_url="$(curl "$urlbase/$id/artifacts" |
186-
jq -r '.value[] | select(.name == "git-sdk-64-minimal").resource.downloadUrl')"
187-
curl --connect-timeout 10 --retry 5 --retry-delay 0 --retry-max-time 240 \
188-
-o artifacts.zip "$download_url"
189-
190-
## Unzip and remove the artifact
191-
unzip artifacts.zip
192-
rm artifacts.zip
177+
- uses: actions/checkout@v2
178+
- name: Setup Git for Windows' minimal SDK
179+
uses: git-for-windows/setup-git-for-windows-sdk@v0
180+
with:
181+
flavor: minimal
182+
path: ./git-sdk-64-minimal
183+
cache: true
193184
- name: initialize vcpkg
194185
uses: actions/checkout@v2
195186
with:
@@ -215,7 +206,7 @@ jobs:
215206
shell: bash
216207
run: |
217208
cmake `pwd`/contrib/buildsystems/ -DCMAKE_PREFIX_PATH=`pwd`/compat/vcbuild/vcpkg/installed/${{ matrix.arch }}-windows \
218-
-DMSGFMT_EXE=`pwd`/git-sdk-64-minimal/mingw64/bin/msgfmt.exe -DPERL_TESTS=OFF -DPYTHON_TESTS=OFF -DCURL_NO_CURL_CMAKE=ON -DCMAKE_GENERATOR_PLATFORM=${{ matrix.arch }} -DVCPKG_ARCH=${{ matrix.arch }}-windows
209+
-DNO_GETTEXT=YesPlease -DPERL_TESTS=OFF -DPYTHON_TESTS=OFF -DCURL_NO_CURL_CMAKE=ON -DCMAKE_GENERATOR_PLATFORM=${{ matrix.arch }} -DVCPKG_ARCH=${{ matrix.arch }}-windows
219210
- name: MSBuild
220211
run: msbuild git.sln -property:Configuration=Release -property:Platform=${{ matrix.arch }} -maxCpuCount:4 -property:PlatformToolset=v142
221212
- name: bundle artifact tar

0 commit comments

Comments
 (0)