Skip to content

Commit

Permalink
Revert to CentOS 7
Browse files Browse the repository at this point in the history
  • Loading branch information
SmileYzn authored Sep 30, 2024
1 parent 13dfa73 commit 8976367
Showing 1 changed file with 14 additions and 16 deletions.
30 changes: 14 additions & 16 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -20,22 +20,23 @@ jobs:
steps:
- name: Setup Checkout
uses: actions/checkout@v3

- name: Add i386 architecture
run: dpkg --add-architecture i386

- name: Update repository
run: apt-get 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-4.8-multilib g++-4.8-multilib libgcc1:i386 libcurl4-openssl-dev:i386 zlib1g-dev:i386 libssl-dev: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: 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: ./AccuracyFix
run: make
run: |
export CPATH=$CPATH:/usr/include/c++/4.8.5/i686-redhat-linux
make
- name: Make Accuracy Fix path
run: mkdir -p publish/addons/accuracyfix/dlls
Expand Down Expand Up @@ -91,6 +92,3 @@ jobs:
with:
name: win32
path: publish/*



0 comments on commit 8976367

Please sign in to comment.