const DEF = [
"os" => "Linux",
- "Linux" => "ubuntu-20.04",
+ "Linux" => "ubuntu-22.04",
"Windows" => "windows-2019",
"macOS" => "macos-10.15",
- "ubuntu-20.04" => "gnu",
+ "ubuntu-22.04" => "gnu",
"windows-2019" => "msvc",
"macos-10.15" => "clang",
"gnu" => [
];
const MAP = [
'env.OS_VER' => [
+ "ubuntu-22.04" => [
+ 'env.CC_VND' => [
+ "gnu" => [
+ 'env.CC_VER' => [
+ "new" => "-12",
+ "cur" => "-11",
+ "old" => "-10",
+ ]
+ ],
+ "clang" => [
+ 'env.CC_VER' => [
+ "new" => "-14",
+ "cur" => "-13",
+ "old" => "-12"
+ ]
+ ]
+ ]
+ ],
"ubuntu-20.04" => [
'env.CC_VND' => [
"gnu" => [
]
];
const ENV = [
+ "ubuntu-22.04" => [
+ "clang" => [
+ "new" => [
+ "CXXFLAGS" => "-stdlib=libc++",
+ "INSTALL_CXX" => "libc++-14-dev libc++abi-14-dev"
+ ],
+ "cur" => [
+ "CXXFLAGS" => "-stdlib=libc++",
+ "INSTALL_CXX" => "libc++-13-dev libc++abi-13-dev"
+ ],
+ "old" => [
+ "CXXFLAGS" => "-stdlib=libc++",
+ "INSTALL_CXX" => "libc++-12-dev libc++abi-12-dev"
+ ],
+ ]
+ ],
"ubuntu-20.04" => [
"clang" => [
"new" => [
ENABLE_HASH_HSIEH: "ON"
ENABLE_DTRACE: "OFF"
OS_VND: Linux #
- OS_VER: ubuntu-20.04 #
+ OS_VER: ubuntu-22.04 #
CC_VND: gnu #
CC_VER: cur #
# new memcached
dbg-new:
- name: dbg-new (ubuntu-20.04, gnu, cur)
- runs-on: ubuntu-20.04 #
+ name: dbg-new (ubuntu-22.04, gnu, cur)
+ runs-on: ubuntu-22.04 #
env:
CMAKE_BUILD_TYPE: "Debug"
BUILD_TESTING: "ON"
repository: memcached/memcached
path: memcached
ref: 1.6.7
- - name: Prepare environment (for cur gnu on ubuntu-20.04)
- if: (env.OS_VER=='ubuntu-20.04') && (env.CC_VND=='gnu') && (env.CC_VER=='cur')
+ - name: Prepare environment (for cur gnu on ubuntu-22.04)
+ if: (env.OS_VER=='ubuntu-22.04') && (env.CC_VND=='gnu') && (env.CC_VER=='cur')
run: |
- echo CC="gcc-9" >> ${GITHUB_ENV}
- echo CXX="g++-9" >> ${GITHUB_ENV}
+ echo CC="gcc-11" >> ${GITHUB_ENV}
+ echo CXX="g++-11" >> ${GITHUB_ENV}
- name: Install dependencies (Linux)
if: runner.os == 'Linux'
run: |
# sanitizer build
sanitizer:
- runs-on: ubuntu-20.04 #
+ runs-on: ubuntu-22.04 #
strategy:
matrix:
sanitizer: ['address;undefined', 'thread']
ENABLE_SANITIZERS: ${{ matrix.sanitizer }}
steps:
- uses: actions/checkout@v2
- - name: Prepare environment (for cur gnu on ubuntu-20.04)
- if: (env.OS_VER=='ubuntu-20.04') && (env.CC_VND=='gnu') && (env.CC_VER=='cur')
+ - name: Prepare environment (for cur gnu on ubuntu-22.04)
+ if: (env.OS_VER=='ubuntu-22.04') && (env.CC_VND=='gnu') && (env.CC_VER=='cur')
run: |
- echo CC="gcc-9" >> ${GITHUB_ENV}
- echo CXX="g++-9" >> ${GITHUB_ENV}
+ echo CC="gcc-11" >> ${GITHUB_ENV}
+ echo CXX="g++-11" >> ${GITHUB_ENV}
- name: Install dependencies (Linux)
if: runner.os == 'Linux'
run: |
- uses: actions/checkout@v2
with:
fetch-depth: 0
+ - name: Prepare environment (for new gnu on ubuntu-22.04)
+ if: (env.OS_VER=='ubuntu-22.04') && (env.CC_VND=='gnu') && (env.CC_VER=='new')
+ run: |
+ echo CC="gcc-12" >> ${GITHUB_ENV}
+ echo CXX="g++-12" >> ${GITHUB_ENV}
+ - name: Prepare environment (for cur gnu on ubuntu-22.04)
+ if: (env.OS_VER=='ubuntu-22.04') && (env.CC_VND=='gnu') && (env.CC_VER=='cur')
+ run: |
+ echo CC="gcc-11" >> ${GITHUB_ENV}
+ echo CXX="g++-11" >> ${GITHUB_ENV}
+ - name: Prepare environment (for old gnu on ubuntu-22.04)
+ if: (env.OS_VER=='ubuntu-22.04') && (env.CC_VND=='gnu') && (env.CC_VER=='old')
+ run: |
+ echo CC="gcc-10" >> ${GITHUB_ENV}
+ echo CXX="g++-10" >> ${GITHUB_ENV}
+ - name: Prepare environment (for new clang on ubuntu-22.04)
+ if: (env.OS_VER=='ubuntu-22.04') && (env.CC_VND=='clang') && (env.CC_VER=='new')
+ run: |
+ echo CC="clang-14" >> ${GITHUB_ENV}
+ echo CXX="clang++-14" >> ${GITHUB_ENV}
+ echo CXXFLAGS="-stdlib=libc++" >> ${GITHUB_ENV}
+ echo INSTALL_CXX="libc++-14-dev libc++abi-14-dev" >> ${GITHUB_ENV}
+ - name: Prepare environment (for cur clang on ubuntu-22.04)
+ if: (env.OS_VER=='ubuntu-22.04') && (env.CC_VND=='clang') && (env.CC_VER=='cur')
+ run: |
+ echo CC="clang-13" >> ${GITHUB_ENV}
+ echo CXX="clang++-13" >> ${GITHUB_ENV}
+ echo CXXFLAGS="-stdlib=libc++" >> ${GITHUB_ENV}
+ echo INSTALL_CXX="libc++-13-dev libc++abi-13-dev" >> ${GITHUB_ENV}
+ - name: Prepare environment (for old clang on ubuntu-22.04)
+ if: (env.OS_VER=='ubuntu-22.04') && (env.CC_VND=='clang') && (env.CC_VER=='old')
+ run: |
+ echo CC="clang-12" >> ${GITHUB_ENV}
+ echo CXX="clang++-12" >> ${GITHUB_ENV}
+ echo CXXFLAGS="-stdlib=libc++" >> ${GITHUB_ENV}
+ echo INSTALL_CXX="libc++-12-dev libc++abi-12-dev" >> ${GITHUB_ENV}
- name: Prepare environment (for new gnu on ubuntu-20.04)
if: (env.OS_VER=='ubuntu-20.04') && (env.CC_VND=='gnu') && (env.CC_VER=='new')
run: |