Skip to content

Commit

Permalink
[compiler] update GCC to version 12 (#82)
Browse files Browse the repository at this point in the history
  • Loading branch information
FrancoisCarouge authored Jul 30, 2022
1 parent fcbaa80 commit 4926007
Show file tree
Hide file tree
Showing 6 changed files with 25 additions and 25 deletions.
30 changes: 15 additions & 15 deletions .github/workflows/deploy_test_coverage_coveralls.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
run: sudo apt update
- name: Install
run: |
sudo apt install gcc-11 g++-11 lcov
sudo apt install gcc-12 g++-12 lcov
( cd /tmp ;
git clone --depth 1 https://gitlab.com/libeigen/eigen.git ;
( cd eigen ;
Expand All @@ -34,30 +34,30 @@ jobs:
sudo make install ; ) ) )
- name: Build
run: |
gcc-11 \
gcc-12 \
sample/*.cpp source/*.cpp test/*.cpp \
-Iinclude -I/usr/local/include/eigen3 -Isupport/include/fcarouge \
-O0 -g -std=c++23 -fmodules-ts --coverage -fno-inline -lstdc++ -lm -lfmt
- name: "Coverage: Base"
run: |
lcov --rc lcov_branch_coverage=1 --gcov-tool gcov-11 --capture --initial --directory . --output-file base.info
lcov --rc lcov_branch_coverage=1 --gcov-tool gcov-11 --remove base.info '/usr/*' --output-file base.info
lcov --rc lcov_branch_coverage=1 --gcov-tool gcov-11 --remove base.info '10' --output-file base.info
lcov --rc lcov_branch_coverage=1 --gcov-tool gcov-11 --remove base.info '*/test/*' --output-file base.info
lcov --rc lcov_branch_coverage=1 --gcov-tool gcov-11 --remove base.info '*/source/*' --output-file base.info
lcov --rc lcov_branch_coverage=1 --gcov-tool gcov-11 --remove base.info '*/sample/*' --output-file base.info
lcov --rc lcov_branch_coverage=1 --gcov-tool gcov-12 --capture --initial --directory . --output-file base.info
lcov --rc lcov_branch_coverage=1 --gcov-tool gcov-12 --remove base.info '/usr/*' --output-file base.info
lcov --rc lcov_branch_coverage=1 --gcov-tool gcov-12 --remove base.info '10' --output-file base.info
lcov --rc lcov_branch_coverage=1 --gcov-tool gcov-12 --remove base.info '*/test/*' --output-file base.info
lcov --rc lcov_branch_coverage=1 --gcov-tool gcov-12 --remove base.info '*/source/*' --output-file base.info
lcov --rc lcov_branch_coverage=1 --gcov-tool gcov-12 --remove base.info '*/sample/*' --output-file base.info
- name: run
run: ./a.out
- name: "Coverage: Test"
run: |
lcov --rc lcov_branch_coverage=1 --gcov-tool gcov-11 --capture --directory . --output-file test.info
lcov --rc lcov_branch_coverage=1 --gcov-tool gcov-11 --remove test.info '/usr/*' --output-file test.info
lcov --rc lcov_branch_coverage=1 --gcov-tool gcov-11 --remove test.info '10' --output-file test.info
lcov --rc lcov_branch_coverage=1 --gcov-tool gcov-11 --remove test.info '*/test/*' --output-file test.info
lcov --rc lcov_branch_coverage=1 --gcov-tool gcov-11 --remove test.info '*/source/*' --output-file test.info
lcov --rc lcov_branch_coverage=1 --gcov-tool gcov-11 --remove test.info '*/sample/*' --output-file test.info
lcov --rc lcov_branch_coverage=1 --gcov-tool gcov-12 --capture --directory . --output-file test.info
lcov --rc lcov_branch_coverage=1 --gcov-tool gcov-12 --remove test.info '/usr/*' --output-file test.info
lcov --rc lcov_branch_coverage=1 --gcov-tool gcov-12 --remove test.info '10' --output-file test.info
lcov --rc lcov_branch_coverage=1 --gcov-tool gcov-12 --remove test.info '*/test/*' --output-file test.info
lcov --rc lcov_branch_coverage=1 --gcov-tool gcov-12 --remove test.info '*/source/*' --output-file test.info
lcov --rc lcov_branch_coverage=1 --gcov-tool gcov-12 --remove test.info '*/sample/*' --output-file test.info
- name: "Coverage: Results"
run: lcov --rc lcov_branch_coverage=1 --gcov-tool gcov-11 --rc lcov_branch_coverage=1 --add-tracefile base.info --add-tracefile test.info --output-file coverage.info
run: lcov --rc lcov_branch_coverage=1 --gcov-tool gcov-12 --rc lcov_branch_coverage=1 --add-tracefile base.info --add-tracefile test.info --output-file coverage.info
- name: Coveralls
uses: coverallsapp/github-action@1.1.3
with:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/verify_test_memory_valgrind.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
run: sudo apt update
- name: Install
run: |
sudo apt install gcc-11 g++-11 valgrind
sudo apt install gcc-12 g++-12 valgrind
( cd /tmp ;
git clone --depth 1 https://gitlab.com/libeigen/eigen.git ;
( cd eigen ;
Expand All @@ -34,7 +34,7 @@ jobs:
sudo make install ; ) ) )
- name: Build
run: |
gcc-11 \
gcc-12 \
sample/*.cpp test/*.cpp source/*.cpp \
-Iinclude -I/usr/local/include/eigen3 -Isupport/include/fcarouge \
-g -O0 -std=c++23 -lstdc++ -lm -lfmt
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/verify_test_sanitizer_address.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
run: sudo apt update
- name: Install
run: |
sudo apt install gcc-11 g++-11
sudo apt install gcc-12 g++-12
( cd /tmp ;
git clone --depth 1 https://gitlab.com/libeigen/eigen.git ;
( cd eigen ;
Expand All @@ -34,7 +34,7 @@ jobs:
sudo make install ; ) ) )
- name: Build
run: |
gcc-11 \
gcc-12 \
sample/*.cpp test/*.cpp source/*.cpp \
-Iinclude -I/usr/local/include/eigen3 -Isupport/include/fcarouge \
-std=c++23 -g -fsanitize=address -fsanitize-address-use-after-scope -fno-omit-frame-pointer -lstdc++ -lm -lfmt
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/verify_test_sanitizer_leak.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
run: sudo apt update
- name: Install
run: |
sudo apt install gcc-11 g++-11
sudo apt install gcc-12 g++-12
( cd /tmp ;
git clone --depth 1 https://gitlab.com/libeigen/eigen.git ;
( cd eigen ;
Expand All @@ -34,7 +34,7 @@ jobs:
sudo make install ; ) ) )
- name: Build
run: |
gcc-11 \
gcc-12 \
sample/*.cpp test/*.cpp source/*.cpp \
-Iinclude -I/usr/local/include/eigen3 -Isupport/include/fcarouge \
-std=c++23 -g -fsanitize=leak -lstdc++ -lm -lfmt
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/verify_test_sanitizer_thread.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
run: sudo apt update
- name: Install
run: |
sudo apt install gcc-11 g++-11
sudo apt install gcc-12 g++-12
( cd /tmp ;
git clone --depth 1 https://gitlab.com/libeigen/eigen.git ;
( cd eigen ;
Expand All @@ -34,7 +34,7 @@ jobs:
sudo make install ; ) ) )
- name: Build
run: |
gcc-11 \
gcc-12 \
sample/*.cpp test/*.cpp source/*.cpp \
-Iinclude -I/usr/local/include/eigen3 -Isupport/include/fcarouge \
-std=c++23 -g -fsanitize=thread -lstdc++ -lm -lfmt
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
run: sudo apt update
- name: Install
run: |
sudo apt install gcc-11 g++-11
sudo apt install gcc-12 g++-12
( cd /tmp ;
git clone --depth 1 https://gitlab.com/libeigen/eigen.git ;
( cd eigen ;
Expand All @@ -34,7 +34,7 @@ jobs:
sudo make install ; ) ) )
- name: Build
run: |
gcc-11 \
gcc-12 \
sample/*.cpp test/*.cpp source/*.cpp \
-Iinclude -I/usr/local/include/eigen3 -Isupport/include/fcarouge \
-std=c++23 -g -fsanitize=undefined -lstdc++ -lm -lfmt
Expand Down

0 comments on commit 4926007

Please sign in to comment.