diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 6d2434c..1ef0204 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -10,33 +10,22 @@ jobs: linux: name: Linux Build runs-on: ubuntu-latest + container: ubuntu:18.04 steps: - 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-key adv --recv-keys --keyserver keyserver.ubuntu.com 40976EAF437D05B5 - sudo apt-key adv --recv-keys --keyserver keyserver.ubuntu.com 3B4FE6ACC0B21F32 - sudo su -c "echo 'deb http://archive.ubuntu.com/ubuntu/ bionic main restricted universe multiverse' >> /etc/apt/sources.list" - sudo apt-get update + run: apt-get update - name: Install build dependencies - run: sudo apt-get install -qq -y wget unzip - - - name: Instal GCC 4.7 (multilib) - run: | - sudo apt-get install gcc-4.7 - - - name: Update GCC and G++ alternatives - run: | - sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.7 50 - sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-4.7 50 - 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: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 - name: Run build working-directory: ./MatchBot