Skip to content

Commit

Permalink
Update build.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
SmileYzn authored Sep 5, 2024
1 parent 82abc95 commit 0538026
Showing 1 changed file with 7 additions and 18 deletions.
25 changes: 7 additions & 18 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 0538026

Please sign in to comment.