Merge pull request #1814 from nghttp2/workflow-bump-compilers
Workflow bump compilers
This commit is contained in:
commit
8e120de5bd
|
@ -36,8 +36,8 @@ jobs:
|
|||
if: runner.os == 'Linux'
|
||||
run: |
|
||||
sudo apt-get install \
|
||||
g++-11 \
|
||||
clang-12 \
|
||||
g++-12 \
|
||||
clang-14 \
|
||||
autoconf \
|
||||
automake \
|
||||
autotools-dev \
|
||||
|
@ -74,8 +74,8 @@ jobs:
|
|||
- name: Setup clang (Linux)
|
||||
if: runner.os == 'Linux' && matrix.compiler == 'clang'
|
||||
run: |
|
||||
echo 'CC=clang-12' >> $GITHUB_ENV
|
||||
echo 'CXX=clang++-12' >> $GITHUB_ENV
|
||||
echo 'CC=clang-14' >> $GITHUB_ENV
|
||||
echo 'CXX=clang++-14' >> $GITHUB_ENV
|
||||
- name: Setup clang (MacOS)
|
||||
if: runner.os == 'macOS' && matrix.compiler == 'clang'
|
||||
run: |
|
||||
|
@ -84,8 +84,8 @@ jobs:
|
|||
- name: Setup gcc (Linux)
|
||||
if: runner.os == 'Linux' && matrix.compiler == 'gcc'
|
||||
run: |
|
||||
echo 'CC=gcc-11' >> $GITHUB_ENV
|
||||
echo 'CXX=g++-11' >> $GITHUB_ENV
|
||||
echo 'CC=gcc-12' >> $GITHUB_ENV
|
||||
echo 'CXX=g++-12' >> $GITHUB_ENV
|
||||
- name: Setup gcc (MacOS)
|
||||
if: runner.os == 'macOS' && matrix.compiler == 'gcc'
|
||||
run: |
|
||||
|
|
|
@ -151,9 +151,9 @@ void test_memchunks_riovec(void) {
|
|||
MemchunkPool16 pool;
|
||||
Memchunks16 chunks(&pool);
|
||||
|
||||
char buf[3 * 16];
|
||||
std::array<char, 3 * 16> buf{};
|
||||
|
||||
chunks.append(buf, sizeof(buf));
|
||||
chunks.append(buf.data(), buf.size());
|
||||
|
||||
std::array<struct iovec, 2> iov;
|
||||
auto iovcnt = chunks.riovec(iov.data(), iov.size());
|
||||
|
@ -184,8 +184,8 @@ void test_memchunks_recycle(void) {
|
|||
MemchunkPool16 pool;
|
||||
{
|
||||
Memchunks16 chunks(&pool);
|
||||
char buf[32];
|
||||
chunks.append(buf, sizeof(buf));
|
||||
std::array<char, 32> buf{};
|
||||
chunks.append(buf.data(), buf.size());
|
||||
}
|
||||
CU_ASSERT(32 == pool.poolsize);
|
||||
CU_ASSERT(nullptr != pool.freelist);
|
||||
|
|
Loading…
Reference in New Issue