summaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorSayed Adel <seiko@imavr.com>2022-08-18 20:48:56 +0200
committerSayed Adel <seiko@imavr.com>2022-08-19 00:45:32 +0200
commit2ad82de616ad1cb45fb82574d93ccc617b4038f6 (patch)
tree5a8dfc11af7f7847ee310ca18bcc4348877cfc58 /.github
parentc85634901cbdffab7b0c1ed174135a939eb5cf0e (diff)
downloadnumpy-2ad82de616ad1cb45fb82574d93ccc617b4038f6.tar.gz
CI: Test NumPy build against old versions of GCC(6, 7, 8)
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/build_test.yml44
1 files changed, 44 insertions, 0 deletions
diff --git a/.github/workflows/build_test.yml b/.github/workflows/build_test.yml
index 44cb27b72..67986ef63 100644
--- a/.github/workflows/build_test.yml
+++ b/.github/workflows/build_test.yml
@@ -75,6 +75,50 @@ jobs:
python-version: ${{ matrix.python-version }}
- uses: ./.github/actions
+ old_gcc:
+ needs: [smoke_test]
+ # provides GCC 6, 7, 8
+ runs-on: ubuntu-18.04
+ steps:
+ - uses: actions/checkout@v3
+ with:
+ submodules: recursive
+ fetch-depth: 0
+ # comes with python3.6
+ - name: Install Python3.8
+ run: |
+ sudo apt update
+ # for add-apt-repository
+ sudo apt install software-properties-common -y
+ sudo add-apt-repository ppa:deadsnakes/ppa -y
+ sudo apt install python3.8-dev -y
+ sudo ln -s /usr/bin/python3.8 /usr/bin/pythonx
+ pythonx -m pip install --upgrade pip setuptools wheel
+ pythonx -m pip install -r test_requirements.txt
+ - name: Install Compilers
+ run: sudo apt install g++-6 g++-7 g++-8 -y
+ - name: Build gcc-6
+ run: |
+ export CC=/usr/bin/gcc-6
+ export CXX=/usr/bin/g++-6
+ pythonx setup.py install --user
+ - name: Runtests gcc-6
+ run: pythonx runtests.py -n
+ - name: Build gcc-7
+ run: |
+ export CC=/usr/bin/gcc-7
+ export CXX=/usr/bin/g++-7
+ rm -rf build && pythonx setup.py install --user
+ - name: Runtests gcc-7
+ run: pythonx runtests.py -n
+ - name: Build gcc-8
+ run: |
+ export CC=/usr/bin/gcc-8
+ export CXX=/usr/bin/g++-8
+ rm -rf build && pythonx setup.py install --user
+ - name: Runtests gcc-8
+ run: pythonx runtests.py -n
+
without_optimizations:
needs: [smoke_test]
runs-on: ubuntu-latest