From 6a507507c96fd2480ca11236426f05b4186de769 Mon Sep 17 00:00:00 2001 From: WhiredPlanck Date: Tue, 3 Oct 2023 13:36:10 +0800 Subject: [PATCH] ci(windows-build.yml): improve msys2 setup use UCRT64 as msystem, which is recommended by msys2. --- .github/workflows/windows-build.yml | 33 +++++++++++++++++------------ 1 file changed, 19 insertions(+), 14 deletions(-) diff --git a/.github/workflows/windows-build.yml b/.github/workflows/windows-build.yml index a23ceb94cc..412ee0e327 100644 --- a/.github/workflows/windows-build.yml +++ b/.github/workflows/windows-build.yml @@ -138,26 +138,31 @@ jobs: shell: msys2 {0} steps: - - name: Setup MSYS2 + - name: Setup msys2 and install dependencies uses: msys2/setup-msys2@v2 + with: + update: true + msystem: UCRT64 + install: >- + git + base-devel + mingw-w64-x86_64-boost + mingw-w64-x86_64-glog + mingw-w64-x86_64-gtest + mingw-w64-x86_64-yaml-cpp + mingw-w64-x86_64-leveldb + mingw-w64-x86_64-marisa + mingw-w64-x86_64-opencc + pacboy: >- + toolchain:p + cmake:p + ninja:p - name: Checkout last commit uses: actions/checkout@v4 with: repository: ${{ inputs.repository }} - - - name: Install dependencies - run: | - pacman -S --noconfirm git base-devel mingw-w64-x86_64-toolchain ninja \ - mingw64/mingw-w64-x86_64-cmake \ - mingw-w64-x86_64-boost \ - mingw-w64-x86_64-glog \ - mingw-w64-x86_64-gtest \ - mingw-w64-x86_64-yaml-cpp \ - mingw-w64-x86_64-leveldb \ - mingw-w64-x86_64-marisa \ - mingw-w64-x86_64-opencc - + - name: Configure build environment run: | echo git_ref_name="$(git describe --always)" >> $GITHUB_ENV