@@ -29,24 +29,14 @@ runs:
2929 shell : sh
3030 - name : Install COBOL
3131 if : ${{ runner.os == 'Linux' && steps.info.outputs.COBOL_INSTALLED == 'false' }}
32- env :
33- CURL_VERSION : 7.81.0-1ubuntu1.6
34- TAR_VERSION : 1.34+dfsg-1build3
35- LIBNCURSES5_DEV_VERSION : 6.3-2
36- LIBGMP_DEV_VERSION : 2:6.2.1+dfsg-3ubuntu1
37- LIBDB_DEV_VERSION : 1:5.3.21~exp1ubuntu4
38- IPROUTE2_VERSION : 5.15.0-1ubuntu2
39- RANGER_VERSION : 1.9.3-3ubuntu1
40- AUTOCONF_VERSION : 2.71-2
41- BUILD_ESSENTIAL_VERSION : 12.9ubuntu3
4232 run : |
4333 sudo apt-get update
44- sudo apt-get -y install curl=$CURL_VERSION tar=$TAR_VERSION libncurses5-dev=$LIBNCURSES5_DEV_VERSION libgmp-dev=$LIBGMP_DEV_VERSION libdb-dev=$LIBDB_DEV_VERSION
34+ sudo apt-get -y install curl tar libncurses5-dev libgmp-dev libdb-dev
4535 sudo apt-get -y autoremove
46- sudo apt-get -y install iproute2=$IPROUTE2_VERSION
36+ sudo apt-get -y install iproute2
4737
48- # download and install open-cobol for depencies (libcob >= 4.0)
49- sudo apt-get -y install ranger=$RANGER_VERSION autoconf=$AUTOCONF_VERSION build-essential=$BUILD_ESSENTIAL_VERSION
38+ # download and install open-cobol for dependencies (libcob >= 4.0)
39+ sudo apt-get -y install ranger autoconf build-essential
5040 curl -sLk https://sourceforge.net/projects/open-cobol/files/gnu-cobol/"$(echo "${{ inputs.version }}" | cut -b1- | cut -b-3)"/gnucobol-"${{ inputs.version }}".tar.gz | tar xz
5141 cd gnucobol-"${{ inputs.version }}" && ./configure --prefix=/usr && sudo make && sudo make install && sudo ldconfig && cd /tmp/ && sudo rm -rf ./*
5242 sudo apt-get -y --purge autoremove
0 commit comments