From 8976367e687503498ca328ceb09f7ef3618d8719 Mon Sep 17 00:00:00 2001 From: Cleverson Date: Mon, 30 Sep 2024 10:19:32 -0300 Subject: [PATCH] Revert to CentOS 7 --- .github/workflows/build.yml | 30 ++++++++++++++---------------- 1 file changed, 14 insertions(+), 16 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index ac40d16..c42970a 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -10,7 +10,7 @@ jobs: linux: name: Linux Build runs-on: ubuntu-latest - container: ubuntu:18.04 + container: centos:7 env: ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION: true @@ -20,22 +20,23 @@ jobs: steps: - name: Setup Checkout uses: actions/checkout@v3 - - - name: Add i386 architecture - run: dpkg --add-architecture i386 - - - name: Update repository - run: apt-get update + + - name: Fix CentOS 7 EOL repositories + run: | + sed -i.bak 's/mirrorlist/#mirrorlist/g' /etc/yum.repos.d/CentOS-* + sed -i.bak 's|#baseurl=http://mirror.centos.org|baseurl=http://vault.centos.org|g' /etc/yum.repos.d/CentOS-* + + - name: Update cache + run: yes | yum -y --assumeyes makecache - name: Install build dependencies - run: apt-get install -qq -y wget unzip build-essential gcc-4.8-multilib g++-4.8-multilib libgcc1:i386 libcurl4-openssl-dev:i386 zlib1g-dev:i386 libssl-dev:i386 - - - name: Update alternatives - run: update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.8 100 --slave /usr/bin/g++ g++ /usr/bin/g++-4.8 - + run: yes | yum -y --assumeyes install @'Development Tools' glibc-devel.i686 libgcc.i686 libstdc++-devel.i686 libgcc.i686 libstdc++-static.i686 wget + - name: Run build working-directory: ./AccuracyFix - run: make + run: | + export CPATH=$CPATH:/usr/include/c++/4.8.5/i686-redhat-linux + make - name: Make Accuracy Fix path run: mkdir -p publish/addons/accuracyfix/dlls @@ -91,6 +92,3 @@ jobs: with: name: win32 path: publish/* - - -