Browse Source

Set default compiler to gcc-9 on ubuntu-latest (#224)

* Set default compiler to gcc-9 on ubuntu-latest

* Update linux.yml

* Update linux.yml
yamashi 4 years ago
parent
commit
91e21d3b7f
1 changed files with 6 additions and 0 deletions
  1. 6 0
      .github/workflows/linux.yml

+ 6 - 0
.github/workflows/linux.yml

@@ -23,6 +23,12 @@ jobs:
         run: |
         run: |
           # TODO we will remove it later
           # TODO we will remove it later
           sudo apt-get install -y libgl1-mesa-dev libglu1-mesa-dev
           sudo apt-get install -y libgl1-mesa-dev libglu1-mesa-dev
+          sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-9 60
+          sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-9 60
+          sudo update-alternatives --install /usr/bin/cpp cpp /usr/bin/cpp-9 60
+          sudo update-alternatives --set g++ /usr/bin/g++-9
+          sudo update-alternatives --set gcc /usr/bin/gcc-9
+          sudo update-alternatives --set cpp /usr/bin/cpp-9
 
 
       - name: Tests
       - name: Tests
         run: |
         run: |