From 5f11abf230ae75c1f31533fb394bb063b84371f4 Mon Sep 17 00:00:00 2001 From: scarf Date: Tue, 5 Mar 2024 01:48:21 +0900 Subject: [PATCH] ci: fix lang file compilation in windows msvc (#4298) ci: fix lang file compilation in windows explicitly compile gettext on msys2. Co-authored-by: Andrew Krieger --- .github/workflows/release.yml | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index fce44910febf..b86f62e94eaf 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -190,6 +190,16 @@ jobs: commit url: https://github.com/${{ github.repository }}/commit/${{ github.sha }} EOL + - name: Setup msys2 (windows msvc) + if: runner.os == 'Windows' + uses: msys2/setup-msys2@v2 + with: { msystem: mingw64, install: gettext } + + - name: Compile translations (windows msvc) + if: runner.os == 'Windows' + shell: msys2 {0} + run: lang/compile_mo.sh all + - name: Install MSBuild (windows msvc) if: runner.os == 'Windows' uses: microsoft/setup-msbuild@v1.3.1 @@ -241,12 +251,6 @@ jobs: HOMEBREW_NO_AUTO_UPDATE=yes HOMEBREW_NO_INSTALL_CLEANUP=yes brew install sdl2 sdl2_image sdl2_ttf sdl2_mixer gettext ccache parallel pip3 install mac_alias==2.2.0 dmgbuild==1.6.1 biplist - - name: Compile translations (windows) - if: runner.os == 'Windows' - shell: bash - run: | - lang/compile_mo.sh all - - name: Build CBN (linux) if: runner.os == 'Linux' && matrix.mxe == 'none' && matrix.android == 'none' run: |