mirror of
https://github.com/microsoft/mimalloc.git
synced 2025-08-24 08:14:48 +03:00
CI: Migrate to GCC-7 for Ubuntu Linux
The GNU toolchain shipped with Ubuntu Linux 16.04-LTS is quite old, and various enhancements of mimalloc might not be facilitated. This patch bumps CI configurations to specify gcc-7 for Linux targets.
This commit is contained in:
parent
60e9d3f69d
commit
b0cb27624e
1 changed files with 15 additions and 6 deletions
|
@ -31,14 +31,14 @@ jobs:
|
||||||
ubuntu-16.04
|
ubuntu-16.04
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
Debug:
|
GCC-7 Debug:
|
||||||
CC: gcc
|
CC: gcc-7
|
||||||
CXX: g++
|
CXX: g++-7
|
||||||
BuildType: debug
|
BuildType: debug
|
||||||
cmakeExtraArgs: -DCMAKE_BUILD_TYPE=Debug -DMI_CHECK_FULL=ON
|
cmakeExtraArgs: -DCMAKE_BUILD_TYPE=Debug -DMI_CHECK_FULL=ON
|
||||||
Release:
|
GCC-7 Release:
|
||||||
CC: gcc
|
CC: gcc-7
|
||||||
CXX: g++
|
CXX: g++-7
|
||||||
BuildType: release
|
BuildType: release
|
||||||
cmakeExtraArgs: -DCMAKE_BUILD_TYPE=Release
|
cmakeExtraArgs: -DCMAKE_BUILD_TYPE=Release
|
||||||
Debug Clang:
|
Debug Clang:
|
||||||
|
@ -53,6 +53,15 @@ jobs:
|
||||||
cmakeExtraArgs: -DCMAKE_BUILD_TYPE=Release
|
cmakeExtraArgs: -DCMAKE_BUILD_TYPE=Release
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
- script: |
|
||||||
|
sudo add-apt-repository ppa:ubuntu-toolchain-r/test
|
||||||
|
sudo apt-get update
|
||||||
|
sudo apt-get install -y libc++-dev libc++abi-dev libc++abi1 libstdc++-7-dev gcc-7 g++-7
|
||||||
|
sudo update-alternatives --install /usr/bin/cc cc /usr/bin/$(CC) 100
|
||||||
|
sudo update-alternatives --set cc /usr/bin/$(CC)
|
||||||
|
sudo update-alternatives --install /usr/bin/c++ c++ /usr/bin/$(CXX) 100
|
||||||
|
sudo update-alternatives --set c++ /usr/bin/$(CXX)
|
||||||
|
|
||||||
- task: CMake@1
|
- task: CMake@1
|
||||||
inputs:
|
inputs:
|
||||||
workingDirectory: $(BuildType)
|
workingDirectory: $(BuildType)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue