GCC Bootstrap Build #1577
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: GCC Bootstrap Build | |
on: | |
schedule: | |
- cron: '0 0 * * *' | |
jobs: | |
build: | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install Deps | |
run: | | |
sudo apt-get update; | |
sudo apt-get install -y \ | |
automake \ | |
autoconf \ | |
libtool \ | |
autogen \ | |
bison \ | |
flex \ | |
libgmp3-dev \ | |
libmpfr-dev \ | |
libmpc-dev \ | |
build-essential \ | |
gcc-multilib \ | |
g++-multilib \ | |
dejagnu | |
- name: Configure | |
run: | | |
mkdir -p gccrs-build; | |
cd gccrs-build; | |
../configure \ | |
--enable-languages=rust \ | |
--enable-multilib | |
- name: Build | |
run: | | |
cd gccrs-build; \ | |
make -j $(nproc) | |
- name: Run Tests | |
run: | | |
cd gccrs-build; \ | |
make check-rust | |
- name: Archive check-rust results | |
uses: actions/upload-artifact@v2 | |
with: | |
name: check-rust-logs | |
path: | | |
gccrs-build/gcc/testsuite/rust/ | |
- name: Check regressions | |
run: | | |
cd gccrs-build; \ | |
if grep "# of unexpected" gcc/testsuite/rust/rust.sum;\ | |
then \ | |
echo "some tests are not correct"; \ | |
exit 1; \ | |
else \ | |
exit 0; \ | |
fi |