aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilip Herron <philip.herron@embecosm.com>2021-04-05 11:10:02 +0100
committerPhilip Herron <philip.herron@embecosm.com>2021-04-05 11:10:02 +0100
commit112495e257432746144c066f70085a1a20ee81a7 (patch)
tree5d2ca9312035bf0480cd0c92d792ded18f899042
parent6acea4037913bee66a0bcce97568ae07b6ac3887 (diff)
downloadgcc-112495e257432746144c066f70085a1a20ee81a7.zip
gcc-112495e257432746144c066f70085a1a20ee81a7.tar.gz
gcc-112495e257432746144c066f70085a1a20ee81a7.tar.bz2
Add bootstrap build based off our normal build which tests the status of bootstrap builds
-rw-r--r--.github/workflows/bootstrap.yml59
1 files changed, 59 insertions, 0 deletions
diff --git a/.github/workflows/bootstrap.yml b/.github/workflows/bootstrap.yml
new file mode 100644
index 0000000..c7b76a3
--- /dev/null
+++ b/.github/workflows/bootstrap.yml
@@ -0,0 +1,59 @@
+name: GCC Bootstrap Build
+
+on:
+ push:
+ branches: [ master ]
+
+jobs:
+ build:
+
+ runs-on: ubuntu-latest
+
+ steps:
+ - uses: actions/checkout@v2
+
+ - 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: 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