Skip to content

Commit

Permalink
Update github-CI-Windows.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
rzhy1 authored Apr 9, 2024
1 parent aa1859f commit af83846
Showing 1 changed file with 16 additions and 18 deletions.
34 changes: 16 additions & 18 deletions .github/workflows/github-CI-Windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -125,21 +125,21 @@ jobs:
# gettext-0.20 issue: https://github.com/coreutils/gnulib/blob/master/build-aux/po/Makefile.in.in#L11
# gettext and gettext-devel v0.20 is not available on MSYS2
# wget => gnulib_po => gnulib/build-aux/po/Makefile.in.in, po/Makefile.in.in from MSYS2 gettext
# - name: Generate configure
# run: |
# loc_ver=$(gettext -V | sed -n "s/gettext[^0-9]\+\([0-9.]\+\).*/\1/p")
# req_ver=$(sed -n "s/^\gettext\s\+\([0-9.]\+\)$/\1/mp" bootstrap.conf)
# if [ -n "${req_ver}" ] && [ ${loc_ver} \< ${req_ver} ]; then
# echo "Reset gettext version: bootstrap.conf requires "${req_ver}", local is "${loc_ver}
# sed -i "s/^\(gettext\s\+\)[0-9.]\+$/\1${loc_ver}/gm" bootstrap.conf
# fi
# req_ver=$(sed -n "s/^AM_GNU_GETTEXT_VERSION(\[\([0-9.]\+\)\])$/\1/mp" configure.ac)
# if [ -n "${req_ver}" ] && [ ${loc_ver} \< ${req_ver} ]; then
# echo "Reset gettext version: configure.ac requires "${req_ver}", local is "${loc_ver}
# sed -i "s/^\(AM_GNU_GETTEXT_VERSION(\[\)[0-9.]\+\(\])\)$/\1${loc_ver}\2/gm" configure.ac
# fi
# ./bootstrap --skip-po
# sed -i "s/-dirty\b//p" configure
- name: Generate configure
run: |
loc_ver=$(gettext -V | sed -n "s/gettext[^0-9]\+\([0-9.]\+\).*/\1/p")
req_ver=$(sed -n "s/^\gettext\s\+\([0-9.]\+\)$/\1/mp" bootstrap.conf)
if [ -n "${req_ver}" ] && [ ${loc_ver} \< ${req_ver} ]; then
echo "Reset gettext version: bootstrap.conf requires "${req_ver}", local is "${loc_ver}
sed -i "s/^\(gettext\s\+\)[0-9.]\+$/\1${loc_ver}/gm" bootstrap.conf
fi
req_ver=$(sed -n "s/^AM_GNU_GETTEXT_VERSION(\[\([0-9.]\+\)\])$/\1/mp" configure.ac)
if [ -n "${req_ver}" ] && [ ${loc_ver} \< ${req_ver} ]; then
echo "Reset gettext version: configure.ac requires "${req_ver}", local is "${loc_ver}
sed -i "s/^\(AM_GNU_GETTEXT_VERSION(\[\)[0-9.]\+\(\])\)$/\1${loc_ver}\2/gm" configure.ac
fi
./bootstrap --skip-po
sed -i "s/-dirty\b//p" configure
# -->
- name: Install extra dependencies
Expand All @@ -162,9 +162,6 @@ jobs:
mkdir -p $BDir
mkdir -p $CDir
cd $CDir
wget -nc https://ftp.gnu.org/gnu/wget/wget-1.24.5.tar.gz
tar -xf wget-1.24.5.tar.gz
cd wget-1.24.5
pwd
export CFLAGS+=" -Wall -D_WIN32_WINNT=0x0600 -DGNULIB_defined_ESOCK"
if [ "${{matrix.ftype}}" = "static-full" ]; then
Expand All @@ -180,6 +177,7 @@ jobs:
echo $PKG_CONFIG_PATH
cd $CDir
echo -e "all:\n\n" > gnulib_po/Makefile
pkg-config --list-all
make
- name: Show compiled wget info
Expand Down

0 comments on commit af83846

Please sign in to comment.