Skip to content

Commit c1cc931

Browse files
committed
ci: Add job for building gccrs with older gcc
As Thomas Schwinge pointed out, GCC 4.8 is the minimum version to be used for building current GCC, meaning that we should make an effort to support it before we consider upstreaming or backporting. The main differences are probably a less powerful standard template library or small compilation differences.
1 parent 90f938c commit c1cc931

File tree

1 file changed

+42
-0
lines changed

1 file changed

+42
-0
lines changed

.github/workflows/ccpp.yml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,3 +84,45 @@ jobs:
8484
else \
8585
exit 0; \
8686
fi
87+
88+
build-and-check-older-gcc:
89+
90+
runs-on: ubuntu-18.04
91+
steps:
92+
- uses: actions/checkout@v2
93+
94+
- name: Install Deps
95+
run: |
96+
sudo apt-get update;
97+
sudo apt-get install -y \
98+
automake \
99+
autoconf \
100+
libtool \
101+
autogen \
102+
bison \
103+
flex \
104+
libgmp3-dev \
105+
libmpfr-dev \
106+
libmpc-dev \
107+
build-essential \
108+
gcc-4.8 \
109+
g++-4.8 \
110+
gcc-4.8-multilib \
111+
g++-4.8-multilib \
112+
dejagnu
113+
114+
- name: Configure
115+
run: |
116+
mkdir -p gccrs-build;
117+
cd gccrs-build;
118+
../configure \
119+
CC='gcc-4.8' \
120+
CXX='g++-4.8' \
121+
--enable-languages=rust \
122+
--disable-bootstrap \
123+
--enable-multilib
124+
125+
- name: Build
126+
shell: bash
127+
run: |
128+
make -C gccrs-build -j $(nproc)

0 commit comments

Comments
 (0)