From 53f7605bd3042c013420dbb15744567785972d40 Mon Sep 17 00:00:00 2001 From: Cleverson Date: Tue, 17 Sep 2024 23:35:08 -0300 Subject: [PATCH] CentOS 7 Build CentOS 7 Build --- .github/workflows/build.yml | 22 +++++++++++++--------- 1 file changed, 13 insertions(+), 9 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 4d33f76..808efca 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 @@ -21,18 +21,22 @@ jobs: - name: Setup Checkout uses: actions/checkout@v3 - - name: Add i386 architecture - run: dpkg --add-architecture i386 - - - name: Update repository - run: apt-get -qq 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-multilib g++-multilib libgcc1 libgcc1:i386 libc6-dev libc6-dev-i386 + 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: ./MatchBot - run: make + working-directory: ./AccuracyFix + run: | + export CPATH=$CPATH:/usr/include/c++/4.8.5/i686-redhat-linux + make - name: Make Match BOT path run: mkdir -p publish/addons/matchbot/dlls