Update toolchain to v3 (#189)

* Make memgraph buildable with new toolchain

* Use toolchain v3 in workflows
This commit is contained in:
antonio2368
2021-07-08 14:20:48 +02:00
committed by GitHub
parent 7776160836
commit e51954fc94
13 changed files with 94 additions and 79 deletions

View File

@@ -26,7 +26,7 @@ jobs:
- name: Build community binaries
run: |
# Activate toolchain.
source /opt/toolchain-v2/activate
source /opt/toolchain-v3/activate
# Initialize dependencies.
./init
@@ -39,7 +39,7 @@ jobs:
- name: Run unit tests
run: |
# Activate toolchain.
source /opt/toolchain-v2/activate
source /opt/toolchain-v3/activate
# Run unit tests.
cd build
@@ -53,7 +53,7 @@ jobs:
- name: Create community DEB package
run: |
# Activate toolchain.
source /opt/toolchain-v2/activate
source /opt/toolchain-v3/activate
cd build
@@ -88,7 +88,7 @@ jobs:
- name: Build combined ASAN, UBSAN and coverage binaries
run: |
# Activate toolchain.
source /opt/toolchain-v2/activate
source /opt/toolchain-v3/activate
# Initialize dependencies.
./init
@@ -100,7 +100,7 @@ jobs:
- name: Run unit tests
run: |
# Activate toolchain.
source /opt/toolchain-v2/activate
source /opt/toolchain-v3/activate
# Run unit tests. It is restricted to 2 threads intentionally, because higher concurrency makes the timing related tests unstable.
cd build
@@ -109,7 +109,7 @@ jobs:
- name: Compute code coverage
run: |
# Activate toolchain.
source /opt/toolchain-v2/activate
source /opt/toolchain-v3/activate
# Compute code coverage.
cd tools/github
@@ -127,7 +127,7 @@ jobs:
- name: Run clang-tidy
run: |
source /opt/toolchain-v2/activate
source /opt/toolchain-v3/activate
# Restrict clang-tidy results only to the modified parts
git diff -U0 master... -- src ':!*.hpp' | ./tools/github/clang-tidy/clang-tidy-diff.py -p 1 -j $THREADS -path build | tee ./build/clang_tidy_output.txt
@@ -152,7 +152,7 @@ jobs:
- name: Build debug binaries
run: |
# Activate toolchain.
source /opt/toolchain-v2/activate
source /opt/toolchain-v3/activate
# Initialize dependencies.
./init
@@ -165,7 +165,7 @@ jobs:
- name: Run leftover CTest tests
run: |
# Activate toolchain.
source /opt/toolchain-v2/activate
source /opt/toolchain-v3/activate
# Run leftover CTest tests (all except unit and benchmark tests).
cd build
@@ -197,7 +197,7 @@ jobs:
- name: Run cppcheck and clang-format
run: |
# Activate toolchain.
source /opt/toolchain-v2/activate
source /opt/toolchain-v3/activate
# Run cppcheck and clang-format.
cd tools/github
@@ -226,7 +226,7 @@ jobs:
- name: Build release binaries
run: |
# Activate toolchain.
source /opt/toolchain-v2/activate
source /opt/toolchain-v3/activate
# Initialize dependencies.
./init
@@ -277,7 +277,7 @@ jobs:
- name: Create enterprise DEB package
run: |
# Activate toolchain.
source /opt/toolchain-v2/activate
source /opt/toolchain-v3/activate
cd build
@@ -322,7 +322,7 @@ jobs:
- name: Build release binaries
run: |
# Activate toolchain.
source /opt/toolchain-v2/activate
source /opt/toolchain-v3/activate
# Initialize dependencies.
./init
@@ -361,7 +361,7 @@ jobs:
- name: Build release binaries
run: |
# Activate toolchain.
source /opt/toolchain-v2/activate
source /opt/toolchain-v3/activate
# Initialize dependencies.
./init