Skip to content

Commit 0021ee5

Browse files
committed
[REVERT ME] run_test_suite.yml: Play with different versions of GCC
1 parent 58e4581 commit 0021ee5

File tree

1 file changed

+23
-3
lines changed

1 file changed

+23
-3
lines changed

.github/workflows/run_test_suite.yml

Lines changed: 23 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,14 @@ permissions:
3131
jobs:
3232
test_suite:
3333
name: Run the test suite
34-
runs-on: ubuntu-24.04
34+
runs-on: ${{ matrix.runs-on }}
35+
strategy:
36+
fail-fast: false
37+
matrix:
38+
- runs-on: ubuntu-22.04
39+
gcc: 10
40+
- runs-on: ubuntu-24.04
41+
gcc: 14
3542
steps:
3643
- uses: actions/checkout@v4
3744

@@ -63,6 +70,19 @@ jobs:
6370
sudo apt-get update
6471
sudo apt-get install --no-install-recommends --yes -V "${ubuntu_packages[@]}"
6572
73+
echo XXXXXXXXXXXXXXXXXX
74+
which gcc
75+
ls -l /usr/bin/gcc*
76+
which gcov
77+
ls -l /usr/bin/gcov*
78+
echo XXXXXXXXXXXXXXXXXX
79+
exit 1
80+
81+
sudo rm /usr/bin/gcc
82+
sudo ln -s "gcc${{ matrix.gcc }}" /usr/bin/gcc
83+
sudo rm /usr/bin/gcov
84+
sudo ln -s "gcov${{ matrix.gcc }}" /usr/bin/gcov
85+
6686
sudo perl -MCPAN -e 'install(Memory::Process)' # no package in Ubuntu
6787
6888
- name: make install
@@ -86,13 +106,13 @@ jobs:
86106
- name: Upload test log as an artifact
87107
uses: actions/upload-artifact@v4
88108
with:
89-
name: "lcov-${{ github.sha }}-${{ runner.os }}-test-log" # .zip
109+
name: "lcov-${{ github.sha }}-${{ runner.os }}-GCC-${{ runner.gcc }}-test-log" # .zip
90110
path: tests/test.log
91111
if-no-files-found: error
92112

93113
- name: Upload test directory shrapnel as an artifact
94114
uses: actions/upload-artifact@v4
95115
with:
96-
name: "lcov-${{ github.sha }}-${{ runner.os }}-shrapnel" # .zip
116+
name: "lcov-${{ github.sha }}-${{ runner.os }}-GCC-${{ runner.gcc }}-shrapnel" # .zip
97117
path: tests
98118
#if-no-files-found: error

0 commit comments

Comments
 (0)