]
]
],
- "ubuntu-18.04" => [
- 'env.CC_VND' => [
- "gnu" => [
- 'env.CC_VER' => [
- "new" => "-10",
- "cur" => "-9",
- "old" => "-7"
- ]
- ],
- "clang" => [
- 'env.CC_VER' => [
- "cur" => "-9",
- ]
- ]
- ]
- ],
]
];
const ENV = [
],
]
],
- "ubuntu-18.04" => [
- "clang" => [
- "new" => [
- "CXXFLAGS" => "-stdlib=libc++"
- ],
- "cur" => [
- "CXXFLAGS" => "-stdlib=libc++"
- ],
- "old" => [
- "CXXFLAGS" => "-stdlib=libc++"
- ],
- ]
- ]
];
/**
strategy:
fail-fast: false
matrix:
- os_ver: [ubuntu-20.04, ubuntu-18.04]
+ os_ver: [ubuntu-22.04, ubuntu-20.04]
cc_vnd: [gnu, clang]
cc_ver: [new, cur, old]
runs-on: ${{ matrix.os_ver }}
strategy:
fail-fast: false
matrix:
- os_ver: [ubuntu-20.04, ubuntu-18.04]
+ os_ver: [ubuntu-22.04, ubuntu-20.04]
cc_vnd: [gnu, clang]
cc_ver: [new, cur, old]
runs-on: ${{ matrix.os_ver }}
echo CXX="clang++-10" >> ${GITHUB_ENV}
echo CXXFLAGS="-stdlib=libc++" >> ${GITHUB_ENV}
echo INSTALL_CXX="libc++-10-dev libc++abi-10-dev" >> ${GITHUB_ENV}
- - name: Prepare environment (for new gnu on ubuntu-18.04)
- if: (env.OS_VER=='ubuntu-18.04') && (env.CC_VND=='gnu') && (env.CC_VER=='new')
- run: |
- echo CC="gcc-10" >> ${GITHUB_ENV}
- echo CXX="g++-10" >> ${GITHUB_ENV}
- - name: Prepare environment (for cur gnu on ubuntu-18.04)
- if: (env.OS_VER=='ubuntu-18.04') && (env.CC_VND=='gnu') && (env.CC_VER=='cur')
- run: |
- echo CC="gcc-9" >> ${GITHUB_ENV}
- echo CXX="g++-9" >> ${GITHUB_ENV}
- - name: Prepare environment (for old gnu on ubuntu-18.04)
- if: (env.OS_VER=='ubuntu-18.04') && (env.CC_VND=='gnu') && (env.CC_VER=='old')
- run: |
- echo CC="gcc-7" >> ${GITHUB_ENV}
- echo CXX="g++-7" >> ${GITHUB_ENV}
- - name: Prepare environment (for cur clang on ubuntu-18.04)
- if: (env.OS_VER=='ubuntu-18.04') && (env.CC_VND=='clang') && (env.CC_VER=='cur')
- run: |
- echo CC="clang-9" >> ${GITHUB_ENV}
- echo CXX="clang++-9" >> ${GITHUB_ENV}
- echo CXXFLAGS="-stdlib=libc++" >> ${GITHUB_ENV}
- name: Install dependencies (Linux)
if: runner.os == 'Linux'
run: |