From d77d6892a0134b0c6fd1bc785a6dae8105bbb3bb Mon Sep 17 00:00:00 2001 From: EnderIce2 Date: Sat, 4 Jan 2025 18:59:04 +0200 Subject: [PATCH] chore: Enhance makefile.yml to recheck and install specific versions of automake and autoconf Signed-off-by: EnderIce2 --- .github/workflows/makefile.yml | 20 +++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) diff --git a/.github/workflows/makefile.yml b/.github/workflows/makefile.yml index 28706676..1ce6ccb7 100644 --- a/.github/workflows/makefile.yml +++ b/.github/workflows/makefile.yml @@ -54,18 +54,28 @@ jobs: - name: Install GCC Dependencies if: steps.cache-cross.outputs.cache-hit != 'true' - run: sudo apt -y install build-essential bison flex libgmp3-dev libmpc-dev libmpfr-dev texinfo libzstd-dev libisl-dev m4 automake gettext gperf dejagnu guile-3.0 guile-3.0-dev expect tcl autogen tex-common sphinx-common git ssh diffutils patch autoconf2.69 libtool + run: sudo apt -y install build-essential bison flex libgmp3-dev libmpc-dev libmpfr-dev texinfo libzstd-dev libisl-dev m4 automake gettext gperf dejagnu guile-3.0 guile-3.0-dev expect tcl autogen tex-common sphinx-common git ssh diffutils patch autoconf2.69 libtool wget dpkg - - name: Recheck autoconf + - name: Check autoconf if: steps.cache-cross.outputs.cache-hit != 'true' run: | if [ "$(autoconf --version | head -n 1 | awk '{print $NF}')" != "2.69" ]; then echo "Autoconf version is not 2.69, performing additional steps..." - sudo apt -y install wget dpkg wget https://launchpad.net/ubuntu/+archive/primary/+files/autoconf_2.69-11.1_all.deb sudo dpkg --force-all -i ./autoconf_2.69-11.1_all.deb - wget https://launchpad.net/ubuntu/+archive/primary/+files/automake-1.15_1.15.1-5ubuntu2_all.deb - sudo dpkg --force-all -i ./automake-1.15_1.15.1-5ubuntu2_all.deb + fi + + - name: Check automake + if: steps.cache-cross.outputs.cache-hit != 'true' + run: | + if [ "$(automake --version | head -n 1 | awk '{print $NF}')" != "1.15.1" ]; then + echo "Automake version is not 1.15.1, performing additional steps..." + wget https://ftp.gnu.org/gnu/automake/automake-1.15.1.tar.gz + tar -xzf automake-1.15.1.tar.gz + cd automake-1.15.1 + ./configure + make + sudo make install fi - name: Clone All