From 5e405f07f337abcbdc7eba36adfd59cfac343dd8 Mon Sep 17 00:00:00 2001 From: Joshua Goins Date: Tue, 23 Apr 2024 17:31:26 -0400 Subject: [PATCH] Install libintl on Windows --- .github/workflows/cmake-multi-platform.yml | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/.github/workflows/cmake-multi-platform.yml b/.github/workflows/cmake-multi-platform.yml index 4706710..e905dae 100644 --- a/.github/workflows/cmake-multi-platform.yml +++ b/.github/workflows/cmake-multi-platform.yml @@ -50,11 +50,22 @@ jobs: sudo apt-get install \ gettext \ + - name: Setup Windows dependencies + if: runner.os == 'Windows' + shell: powershell + run: | + $ProgressPreference = 'SilentlyContinue' + + echo $Env:USERPROFILE\bin >> $Env:GITHUB_PATH + + Invoke-WebRequest https://github.com/restic/test-assets/raw/master/libintl-0.11.5-2-bin.zip -OutFile libintl.zip + unzip libintl.zip + - name: Build zlib if: runner.os == 'Windows' run: | git clone https://github.com/madler/zlib.git - cmake -B ${{ steps.strings.outputs.build-output-dir }}-zlib -DCMAKE_PREFIX_PATH=${{ steps.strings.outputs.prefix-dir }} -DCMAKE_CXX_COMPILER=${{ matrix.cpp_compiler }} -DCMAKE_C_COMPILER=${{ matrix.c_compiler }} -DCMAKE_BUILD_TYPE=${{ matrix.build_type }} -S zlib -DCMAKE_INSTALL_PREFIX=${{ steps.strings.outputs.prefix-dir }} -DBUILD_TESTING=OFF + cmake -B ${{ steps.strings.outputs.build-output-dir }}-zlib -DCMAKE_PREFIX_PATH=${{ steps.strings.outputs.prefix-dir }} -DCMAKE_CXX_COMPILER=${{ matrix.cpp_compiler }} -DCMAKE_C_COMPILER=${{ matrix.c_compiler }} -DCMAKE_BUILD_TYPE=${{ matrix.build_type }} -S zlib "H"-DCMAKE_INSTALL_PREFIX=${{ steps.strings.outputs.prefix-dir }} -DBUILD_TESTING=OFF cmake --build ${{ steps.strings.outputs.build-output-dir }}-zlib --target install - name: Build Extra CMake Modules