X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=.github%2Fworkflows%2Fcmake-build-ci.gen;h=0545c2138b4ee52813c127b977c8e82b9b69bc34;hb=d72ff5b4ec83a12b7ca8eed10a9b51d081baf14b;hp=cdffbb111fba5c7ad880daff4d7806451336125a;hpb=946b9670af4a97be463cae05b5cce6a082d9f475;p=awesomized%2Flibmemcached diff --git a/.github/workflows/cmake-build-ci.gen b/.github/workflows/cmake-build-ci.gen index cdffbb11..0545c213 100755 --- a/.github/workflows/cmake-build-ci.gen +++ b/.github/workflows/cmake-build-ci.gen @@ -136,11 +136,10 @@ function steps_getdeps() { - name: Install dependencies (Linux) if: runner.os == 'Linux' run: | - sudo apt-get install \ + sudo apt-get install -my \ libevent-dev \ libsasl2-dev \ libtbb-dev \ - python3-m2r \ python3-sphinx \ ${INSTALL_MEMCACHED} \ ${INSTALL_CC} ${INSTALL_CXX} @@ -181,10 +180,16 @@ function steps_build() { run: cmake -S . -B build - name: Build all with ${{ env.CXX }} ${{ env.CXXFLAGS }} run: cmake --build build -j2 + - name: Test - run: cmake --build build -j2 --target test - - name: Install - run: cmake --build build -j2 --target install -- DESTDIR=/tmp + if: env.BUILD_TESTING == 'ON' + run: | + cmake --build build -j2 --target test + cmake --build build -j2 --target install -- DESTDIR=/tmp - name: Failed tests log if: ${{ failure() }} run: cat build/Testing/Temporary/LastTest.log || true @@ -229,6 +234,7 @@ function steps($splat_map = null) { steps_setenv($splat_map); steps_getdeps(); steps_build(); + steps_test(); steps_package(); steps_notify(); } @@ -242,10 +248,10 @@ function defaults($os_vnd = DEF["os"]) { function env_override($os_vnd) { ?> - OS_VND: # - OS_VER: # - CC_VND: # - CC_VER: # + OS_VND: # + OS_VER: # + CC_VND: # + CC_VER: # # @@ -290,6 +298,7 @@ jobs: CXXFLAGS: "-O0 --coverage" INSTALL_MEMCACHED: "" MEMCACHED_PREFIX: "/tmp" + ENABLE_SASL: "ON" steps: - uses: actions/checkout@v2 - uses: actions/checkout@v2 @@ -332,7 +341,6 @@ jobs: runs-on: # env: CMAKE_BUILD_TYPE: "Debug" - ENABLE_SASL: "OFF" BUILD_TESTING: "ON" VERBOSE: "ON" CFLAGS: "-O0 --coverage" @@ -349,12 +357,14 @@ jobs: name: rel-mac (, , ) runs-on: # env: - ENABLE_SASL: "OFF" + CMAKE_BUILD_TYPE: "Release" BUILD_DOCS_MANGZ: "ON" continue-on-error: true steps: - uses: actions/checkout@v2 + with: + fetch-depth: 1000 # win build @@ -362,16 +372,15 @@ jobs: name: win-msvc (, , ) runs-on: # env: - ENABLE_SASL: "OFF" + CMAKE_BUILD_TYPE: "Release" BISON_ROOT: "C:/msys64/usr" FLEX_ROOT: "C:/msys64/usr" continue-on-error: true - defaults: - run: - shell: msys2 {0} steps: - uses: actions/checkout@v2 + with: + fetch-depth: 1000 - uses: msys2/setup-msys2@v2 with: release: false @@ -403,6 +412,7 @@ jobs: runs-on: ${{ matrix.os_ver }} continue-on-error: ${{ matrix.cc_vnd == 'clang' }} env: + CMAKE_BUILD_TYPE: "Release" BUILD_DOCS_MANGZ: "ON" OS_VND: Linux OS_VER: ${{ matrix.os_ver }} @@ -410,4 +420,6 @@ jobs: CC_VER: ${{ matrix.cc_ver }} steps: - uses: actions/checkout@v2 + with: + fetch-depth: 1000