"CXX" => "g++",
],
"clang" => [
- "ver" => "",
+ "ver" => "apple",
"CC" => "clang",
"CXX" => "clang++",
],
function steps_getdeps() {
?>
-<?=PRE?> - name: Install dependencies
+<?=PRE?> - name: Install dependencies (Linux)
<?=PRE?> if: runner.os == 'Linux'
-<?=PRE?> run: sudo apt-get install libevent-dev libsasl2-dev ${INSTALL_MEMCACHED} ${INSTALL_CC} ${INSTALL_CXX}
+<?=PRE?> run: |
+<?=PRE?> sudo apt-get install \
+<?=PRE?> libevent-dev \
+<?=PRE?> libsasl2-dev \
+<?=PRE?> ${INSTALL_MEMCACHED} \
+<?=PRE?> ${INSTALL_CC} ${INSTALL_CXX}
+<?=PRE?> sudo systemctl stop memcached || true
+<?=PRE?> - name: Install dependencies (Mac)
+<?=PRE?> if: runner.os == 'macOS'
+<?=PRE?> run: |
+<?=PRE?> brew install bison flex ${INSTALL_MEMCACHED}
+<?=PRE?> brew services stop memcached || true
<?php
}
<?php steps(); ?>
- uses: codecov/codecov-action@v1.0.13
+ # mac build
+ ci-mac:
+ name: ci-dbg (<?=DEF["macOS"]?>, <?=DEF[DEF["macOS"]]?>, <?=DEF[DEF[DEF["macOS"]]]["ver"]?>)
+ runs-on: <?=DEF["macOS"]?> #
+ continue-on-error: true
+ env:
+ MEMCACHED_BINARY: /usr/local/bin/memcached
+ steps:
+ - uses actions/checkout@v2
+<?php steps(false); ?>
+
# release builds
ci-rel:
strategy:
run: |
echo CC=gcc-9 >> ${GITHUB_ENV}
echo CXX=g++-9 >> ${GITHUB_ENV}
- - name: Install dependencies
+ - name: Install dependencies (Linux)
if: runner.os == 'Linux'
- run: sudo apt-get install libevent-dev libsasl2-dev ${INSTALL_MEMCACHED} ${INSTALL_CC} ${INSTALL_CXX}
+ run: |
+ sudo apt-get install \
+ libevent-dev \
+ libsasl2-dev \
+ ${INSTALL_MEMCACHED} \
+ ${INSTALL_CC} ${INSTALL_CXX}
+ sudo systemctl stop memcached || true
+ - name: Install dependencies (Mac)
+ if: runner.os == 'macOS'
+ run: |
+ brew install bison flex ${INSTALL_MEMCACHED}
+ brew services stop memcached || true
- name: Build memcached
run: |
cd memcached
run: |
echo CC=gcc-9 >> ${GITHUB_ENV}
echo CXX=g++-9 >> ${GITHUB_ENV}
- - name: Install dependencies
+ - name: Install dependencies (Linux)
if: runner.os == 'Linux'
- run: sudo apt-get install libevent-dev libsasl2-dev ${INSTALL_MEMCACHED} ${INSTALL_CC} ${INSTALL_CXX}
+ run: |
+ sudo apt-get install \
+ libevent-dev \
+ libsasl2-dev \
+ ${INSTALL_MEMCACHED} \
+ ${INSTALL_CC} ${INSTALL_CXX}
+ sudo systemctl stop memcached || true
+ - name: Install dependencies (Mac)
+ if: runner.os == 'macOS'
+ run: |
+ brew install bison flex ${INSTALL_MEMCACHED}
+ brew services stop memcached || true
- name: Generate build tree (${{ env.CMAKE_CONFIG_TYPE }})
run: cmake -S . -B build
- name: Build all with ${{ env.CXX }} ${{ env.CXXFLAGS }}
run: |
echo CC=gcc-9 >> ${GITHUB_ENV}
echo CXX=g++-9 >> ${GITHUB_ENV}
- - name: Install dependencies
+ - name: Install dependencies (Linux)
if: runner.os == 'Linux'
- run: sudo apt-get install libevent-dev libsasl2-dev ${INSTALL_MEMCACHED} ${INSTALL_CC} ${INSTALL_CXX}
+ run: |
+ sudo apt-get install \
+ libevent-dev \
+ libsasl2-dev \
+ ${INSTALL_MEMCACHED} \
+ ${INSTALL_CC} ${INSTALL_CXX}
+ sudo systemctl stop memcached || true
+ - name: Install dependencies (Mac)
+ if: runner.os == 'macOS'
+ run: |
+ brew install bison flex ${INSTALL_MEMCACHED}
+ brew services stop memcached || true
- name: Generate build tree (${{ env.CMAKE_CONFIG_TYPE }})
run: cmake -S . -B build
- name: Build all with ${{ env.CXX }} ${{ env.CXXFLAGS }}
run: cat build/Testing/Temporary/LastTest.log || true
- uses: codecov/codecov-action@v1.0.13
+ # mac build
+ ci-mac:
+ name: ci-dbg (macos-10.15, clang, apple)
+ runs-on: macos-10.15 #
+ continue-on-error: true
+ env:
+ MEMCACHED_BINARY: /usr/local/bin/memcached
+ steps:
+ - uses actions/checkout@v2
+ - name: Install dependencies (Linux)
+ if: runner.os == 'Linux'
+ run: |
+ sudo apt-get install \
+ libevent-dev \
+ libsasl2-dev \
+ ${INSTALL_MEMCACHED} \
+ ${INSTALL_CC} ${INSTALL_CXX}
+ sudo systemctl stop memcached || true
+ - name: Install dependencies (Mac)
+ if: runner.os == 'macOS'
+ run: |
+ brew install bison flex ${INSTALL_MEMCACHED}
+ brew services stop memcached || true
+ - name: Generate build tree (${{ env.CMAKE_CONFIG_TYPE }})
+ run: cmake -S . -B build
+ - name: Build all with ${{ env.CXX }} ${{ env.CXXFLAGS }}
+ run: make -C build -j2 all
+ - name: Test
+ run: make -C build -j2 test
+ - name: Install
+ run: make -C build -j2 install DESTDIR=.
+ - name: Failed tests log
+ if: ${{ failure() }}
+ run: cat build/Testing/Temporary/LastTest.log || true
+
# release builds
ci-rel:
strategy:
echo CXX=clang++-7 >> ${GITHUB_ENV}
echo INSTALL_CC='clang-7' >> ${GITHUB_ENV}
echo INSTALL_CXX='clang-7' >> ${GITHUB_ENV}
- - name: Install dependencies
+ - name: Install dependencies (Linux)
if: runner.os == 'Linux'
- run: sudo apt-get install libevent-dev libsasl2-dev ${INSTALL_MEMCACHED} ${INSTALL_CC} ${INSTALL_CXX}
+ run: |
+ sudo apt-get install \
+ libevent-dev \
+ libsasl2-dev \
+ ${INSTALL_MEMCACHED} \
+ ${INSTALL_CC} ${INSTALL_CXX}
+ sudo systemctl stop memcached || true
+ - name: Install dependencies (Mac)
+ if: runner.os == 'macOS'
+ run: |
+ brew install bison flex ${INSTALL_MEMCACHED}
+ brew services stop memcached || true
- name: Generate build tree (${{ env.CMAKE_CONFIG_TYPE }})
run: cmake -S . -B build
- name: Build all with ${{ env.CXX }} ${{ env.CXXFLAGS }}