diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 4f7a4c1..51a23c5 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -17,17 +17,17 @@ jobs: - name: Add i386 architecture run: | - dpkg --add-architecture i386 + sudo dpkg --add-architecture i386 sudo su -c "echo 'deb http://archive.ubuntu.com/ubuntu/bionic main restricted universe multiverse' >> /etc/apt/sources.list" - name: Update repository - run: apt-get update + run: sudo apt-get update - name: Install build dependencies - run: apt-get install -qq -y wget unzip build-essential gcc-4.8-multilib g++-4.8-multilib libgcc1:i386 + run: sudo 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 + run: sudo 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