From d6c7e2dd5590b8c98dfb6b3ab129e652dfd2aa89 Mon Sep 17 00:00:00 2001 From: Cleverson Date: Thu, 12 Sep 2024 12:52:35 -0300 Subject: [PATCH] Update build.yml --- .github/workflows/build.yml | 41 +++++-------------------------------- 1 file changed, 5 insertions(+), 36 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 8cfa59c..9764a01 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -10,51 +10,20 @@ jobs: linux: name: Linux Build runs-on: ubuntu-latest + container: ubuntu:18.04 steps: - name: Setup Checkout uses: actions/checkout@v4 - name: Add i386 architecture - run: sudo dpkg --add-architecture i386 - + run: dpkg --add-architecture i386 + - name: Update repository - run: sudo apt-get update -qq + run: apt-get -qq update - name: Install build dependencies - run: sudo apt-get install -qq -y wget unzip libgcc1 libgcc1:i386 libc6-dev libc6-dev-i386 - - - name: Crete and open temporary directory - run: mkdir temp && cd temp - - - name: Downloand and install GCC 4.8 (amd64) - run: | - wget -q http://us.archive.ubuntu.com/ubuntu/pool/universe/g/gcc-4.8/g++-4.8_4.8.5-4ubuntu8_amd64.deb - wget -q http://us.archive.ubuntu.com/ubuntu/pool/universe/g/gcc-4.8/libstdc++-4.8-dev_4.8.5-4ubuntu8_amd64.deb - wget -q http://us.archive.ubuntu.com/ubuntu/pool/universe/g/gcc-4.8/gcc-4.8-base_4.8.5-4ubuntu8_amd64.deb - wget -q http://us.archive.ubuntu.com/ubuntu/pool/universe/g/gcc-4.8/gcc-4.8_4.8.5-4ubuntu8_amd64.deb - wget -q http://us.archive.ubuntu.com/ubuntu/pool/universe/g/gcc-4.8/libgcc-4.8-dev_4.8.5-4ubuntu8_amd64.deb - wget -q http://us.archive.ubuntu.com/ubuntu/pool/universe/g/gcc-4.8/cpp-4.8_4.8.5-4ubuntu8_amd64.deb - wget -q http://us.archive.ubuntu.com/ubuntu/pool/universe/g/gcc-4.8/libasan0_4.8.5-4ubuntu8_amd64.deb - sudo apt install -qq -y ./gcc-4.8_4.8.5-4ubuntu8_amd64.deb ./gcc-4.8-base_4.8.5-4ubuntu8_amd64.deb ./libstdc++-4.8-dev_4.8.5-4ubuntu8_amd64.deb ./cpp-4.8_4.8.5-4ubuntu8_amd64.deb ./libgcc-4.8-dev_4.8.5-4ubuntu8_amd64.deb ./libasan0_4.8.5-4ubuntu8_amd64.deb ./g++-4.8_4.8.5-4ubuntu8_amd64.deb - - - name: Downloand and install GCC 4.8 (i386) - run: | - wget -q http://us.archive.ubuntu.com/ubuntu/pool/universe/g/gcc-4.8/g++-4.8_4.8.5-4ubuntu8_i386.deb - wget -q http://us.archive.ubuntu.com/ubuntu/pool/universe/g/gcc-4.8/libstdc++-4.8-dev_4.8.5-4ubuntu8_i386.deb - wget -q http://us.archive.ubuntu.com/ubuntu/pool/universe/g/gcc-4.8/gcc-4.8-base_4.8.5-4ubuntu8_i386.deb - wget -q http://us.archive.ubuntu.com/ubuntu/pool/universe/g/gcc-4.8/gcc-4.8_4.8.5-4ubuntu8_i386.deb - wget -q http://us.archive.ubuntu.com/ubuntu/pool/universe/g/gcc-4.8/libgcc-4.8-dev_4.8.5-4ubuntu8_i386.deb - wget -q http://us.archive.ubuntu.com/ubuntu/pool/universe/g/gcc-4.8/cpp-4.8_4.8.5-4ubuntu8_i386.deb - wget -q http://us.archive.ubuntu.com/ubuntu/pool/universe/g/gcc-4.8/libasan0_4.8.5-4ubuntu8_i386.deb - sudo apt install -qq -y ./gcc-4.8_4.8.5-4ubuntu8_i386.deb ./gcc-4.8-base_4.8.5-4ubuntu8_i386.deb ./libstdc++-4.8-dev_4.8.5-4ubuntu8_i386.deb ./cpp-4.8_4.8.5-4ubuntu8_i386.deb ./libgcc-4.8-dev_4.8.5-4ubuntu8_i386.deb ./libasan0_4.8.5-4ubuntu8_i386.deb ./g++-4.8_4.8.5-4ubuntu8_i386.deb - - - name: Update GCC and G++ alternatives - run: | - sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.8 100 - sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-4.8 100 - sudo update-alternatives --config gcc - sudo update-alternatives --config g++ + run: apt-get install -qq -y wget unzip build-essential gcc-4.8-multilib g++-4.8-multilib libgcc1 libgcc1:i386 libc6-dev libc6-dev-i386 - name: Run build working-directory: ./MatchBot