From: Michael Wallner Date: Thu, 17 Dec 2020 13:21:32 +0000 (+0100) Subject: ci: gh-action windows fixes X-Git-Tag: 1.1.0-beta1~42 X-Git-Url: https://git.m6w6.name/?a=commitdiff_plain;h=6419faad5dc007434967398a5d1a3f26ca109e41;p=awesomized%2Flibmemcached ci: gh-action windows fixes --- diff --git a/.github/workflows/cmake-build-ci.gen b/.github/workflows/cmake-build-ci.gen index 24fd7bb4..7fdb74ac 100755 --- a/.github/workflows/cmake-build-ci.gen +++ b/.github/workflows/cmake-build-ci.gen @@ -151,6 +151,7 @@ function steps_getdeps() { brew services stop memcached || true echo MEMCACHED_BINARY="/usr/local/bin/memcached" >> ${GITHUB_ENV} - name: Build memcached + if: runner.os != 'Windows' run: | if test -d memcached then @@ -201,7 +202,7 @@ function steps_package() { - name: Package env: PUSH_ARTIFACTS_ID: ${{ secrets.PUSH_ARTIFACTS_ID }} - if: env.CC_VER=='cur' && env.CMAKE_BUILD_TYPE=='Release' + if: env.CC_VER == 'cur' && env.CMAKE_BUILD_TYPE == 'Release' run: | cmake --config ${{ env.CMAKE_BUILD_TYPE }} -S . -B build cmake --build build --config ${{ env.CMAKE_BUILD_TYPE }} -j2 --target package -- VERBOSE= @@ -214,7 +215,7 @@ function steps_package() { function steps_notify() { ?> - name: Notify Gitter (success) - if: ${{ success() && runner.os!='Windows'}} + if: ${{ success() && runner.os != 'Windows'}} run: | REF=$(basename ${GITHUB_REF}) curl -sS "${{ secrets.GITTER }}" \ diff --git a/.github/workflows/cmake-build-ci.yml b/.github/workflows/cmake-build-ci.yml index 0505ff5b..dcaf81e3 100644 --- a/.github/workflows/cmake-build-ci.yml +++ b/.github/workflows/cmake-build-ci.yml @@ -72,6 +72,7 @@ jobs: brew services stop memcached || true echo MEMCACHED_BINARY="/usr/local/bin/memcached" >> ${GITHUB_ENV} - name: Build memcached + if: runner.os != 'Windows' run: | if test -d memcached then @@ -107,7 +108,7 @@ jobs: - name: Package env: PUSH_ARTIFACTS_ID: ${{ secrets.PUSH_ARTIFACTS_ID }} - if: env.CC_VER=='cur' && env.CMAKE_BUILD_TYPE=='Release' + if: env.CC_VER == 'cur' && env.CMAKE_BUILD_TYPE == 'Release' run: | cmake --config ${{ env.CMAKE_BUILD_TYPE }} -S . -B build cmake --build build --config ${{ env.CMAKE_BUILD_TYPE }} -j2 --target package -- VERBOSE= @@ -115,7 +116,7 @@ jobs: cmake --build build --config ${{ env.CMAKE_BUILD_TYPE }} -j2 --target package -- VERBOSE= cmake --build build --config ${{ env.CMAKE_BUILD_TYPE }} -j2 --target push-artifacts -- VERBOSE= - name: Notify Gitter (success) - if: ${{ success() && runner.os!='Windows'}} + if: ${{ success() && runner.os != 'Windows'}} run: | REF=$(basename ${GITHUB_REF}) curl -sS "${{ secrets.GITTER }}" \ @@ -164,6 +165,7 @@ jobs: brew services stop memcached || true echo MEMCACHED_BINARY="/usr/local/bin/memcached" >> ${GITHUB_ENV} - name: Build memcached + if: runner.os != 'Windows' run: | if test -d memcached then @@ -199,7 +201,7 @@ jobs: - name: Package env: PUSH_ARTIFACTS_ID: ${{ secrets.PUSH_ARTIFACTS_ID }} - if: env.CC_VER=='cur' && env.CMAKE_BUILD_TYPE=='Release' + if: env.CC_VER == 'cur' && env.CMAKE_BUILD_TYPE == 'Release' run: | cmake --config ${{ env.CMAKE_BUILD_TYPE }} -S . -B build cmake --build build --config ${{ env.CMAKE_BUILD_TYPE }} -j2 --target package -- VERBOSE= @@ -207,7 +209,7 @@ jobs: cmake --build build --config ${{ env.CMAKE_BUILD_TYPE }} -j2 --target package -- VERBOSE= cmake --build build --config ${{ env.CMAKE_BUILD_TYPE }} -j2 --target push-artifacts -- VERBOSE= - name: Notify Gitter (success) - if: ${{ success() && runner.os!='Windows'}} + if: ${{ success() && runner.os != 'Windows'}} run: | REF=$(basename ${GITHUB_REF}) curl -sS "${{ secrets.GITTER }}" \ @@ -255,6 +257,7 @@ jobs: brew services stop memcached || true echo MEMCACHED_BINARY="/usr/local/bin/memcached" >> ${GITHUB_ENV} - name: Build memcached + if: runner.os != 'Windows' run: | if test -d memcached then @@ -290,7 +293,7 @@ jobs: - name: Package env: PUSH_ARTIFACTS_ID: ${{ secrets.PUSH_ARTIFACTS_ID }} - if: env.CC_VER=='cur' && env.CMAKE_BUILD_TYPE=='Release' + if: env.CC_VER == 'cur' && env.CMAKE_BUILD_TYPE == 'Release' run: | cmake --config ${{ env.CMAKE_BUILD_TYPE }} -S . -B build cmake --build build --config ${{ env.CMAKE_BUILD_TYPE }} -j2 --target package -- VERBOSE= @@ -298,7 +301,7 @@ jobs: cmake --build build --config ${{ env.CMAKE_BUILD_TYPE }} -j2 --target package -- VERBOSE= cmake --build build --config ${{ env.CMAKE_BUILD_TYPE }} -j2 --target push-artifacts -- VERBOSE= - name: Notify Gitter (success) - if: ${{ success() && runner.os!='Windows'}} + if: ${{ success() && runner.os != 'Windows'}} run: | REF=$(basename ${GITHUB_REF}) curl -sS "${{ secrets.GITTER }}" \ @@ -348,6 +351,7 @@ jobs: brew services stop memcached || true echo MEMCACHED_BINARY="/usr/local/bin/memcached" >> ${GITHUB_ENV} - name: Build memcached + if: runner.os != 'Windows' run: | if test -d memcached then @@ -383,7 +387,7 @@ jobs: - name: Package env: PUSH_ARTIFACTS_ID: ${{ secrets.PUSH_ARTIFACTS_ID }} - if: env.CC_VER=='cur' && env.CMAKE_BUILD_TYPE=='Release' + if: env.CC_VER == 'cur' && env.CMAKE_BUILD_TYPE == 'Release' run: | cmake --config ${{ env.CMAKE_BUILD_TYPE }} -S . -B build cmake --build build --config ${{ env.CMAKE_BUILD_TYPE }} -j2 --target package -- VERBOSE= @@ -391,7 +395,7 @@ jobs: cmake --build build --config ${{ env.CMAKE_BUILD_TYPE }} -j2 --target package -- VERBOSE= cmake --build build --config ${{ env.CMAKE_BUILD_TYPE }} -j2 --target push-artifacts -- VERBOSE= - name: Notify Gitter (success) - if: ${{ success() && runner.os!='Windows'}} + if: ${{ success() && runner.os != 'Windows'}} run: | REF=$(basename ${GITHUB_REF}) curl -sS "${{ secrets.GITTER }}" \ @@ -440,6 +444,7 @@ jobs: brew services stop memcached || true echo MEMCACHED_BINARY="/usr/local/bin/memcached" >> ${GITHUB_ENV} - name: Build memcached + if: runner.os != 'Windows' run: | if test -d memcached then @@ -475,7 +480,7 @@ jobs: - name: Package env: PUSH_ARTIFACTS_ID: ${{ secrets.PUSH_ARTIFACTS_ID }} - if: env.CC_VER=='cur' && env.CMAKE_BUILD_TYPE=='Release' + if: env.CC_VER == 'cur' && env.CMAKE_BUILD_TYPE == 'Release' run: | cmake --config ${{ env.CMAKE_BUILD_TYPE }} -S . -B build cmake --build build --config ${{ env.CMAKE_BUILD_TYPE }} -j2 --target package -- VERBOSE= @@ -483,7 +488,7 @@ jobs: cmake --build build --config ${{ env.CMAKE_BUILD_TYPE }} -j2 --target package -- VERBOSE= cmake --build build --config ${{ env.CMAKE_BUILD_TYPE }} -j2 --target push-artifacts -- VERBOSE= - name: Notify Gitter (success) - if: ${{ success() && runner.os!='Windows'}} + if: ${{ success() && runner.os != 'Windows'}} run: | REF=$(basename ${GITHUB_REF}) curl -sS "${{ secrets.GITTER }}" \ @@ -539,6 +544,7 @@ jobs: brew services stop memcached || true echo MEMCACHED_BINARY="/usr/local/bin/memcached" >> ${GITHUB_ENV} - name: Build memcached + if: runner.os != 'Windows' run: | if test -d memcached then @@ -574,7 +580,7 @@ jobs: - name: Package env: PUSH_ARTIFACTS_ID: ${{ secrets.PUSH_ARTIFACTS_ID }} - if: env.CC_VER=='cur' && env.CMAKE_BUILD_TYPE=='Release' + if: env.CC_VER == 'cur' && env.CMAKE_BUILD_TYPE == 'Release' run: | cmake --config ${{ env.CMAKE_BUILD_TYPE }} -S . -B build cmake --build build --config ${{ env.CMAKE_BUILD_TYPE }} -j2 --target package -- VERBOSE= @@ -582,7 +588,7 @@ jobs: cmake --build build --config ${{ env.CMAKE_BUILD_TYPE }} -j2 --target package -- VERBOSE= cmake --build build --config ${{ env.CMAKE_BUILD_TYPE }} -j2 --target push-artifacts -- VERBOSE= - name: Notify Gitter (success) - if: ${{ success() && runner.os!='Windows'}} + if: ${{ success() && runner.os != 'Windows'}} run: | REF=$(basename ${GITHUB_REF}) curl -sS "${{ secrets.GITTER }}" \ @@ -703,6 +709,7 @@ jobs: brew services stop memcached || true echo MEMCACHED_BINARY="/usr/local/bin/memcached" >> ${GITHUB_ENV} - name: Build memcached + if: runner.os != 'Windows' run: | if test -d memcached then @@ -738,7 +745,7 @@ jobs: - name: Package env: PUSH_ARTIFACTS_ID: ${{ secrets.PUSH_ARTIFACTS_ID }} - if: env.CC_VER=='cur' && env.CMAKE_BUILD_TYPE=='Release' + if: env.CC_VER == 'cur' && env.CMAKE_BUILD_TYPE == 'Release' run: | cmake --config ${{ env.CMAKE_BUILD_TYPE }} -S . -B build cmake --build build --config ${{ env.CMAKE_BUILD_TYPE }} -j2 --target package -- VERBOSE= @@ -746,7 +753,7 @@ jobs: cmake --build build --config ${{ env.CMAKE_BUILD_TYPE }} -j2 --target package -- VERBOSE= cmake --build build --config ${{ env.CMAKE_BUILD_TYPE }} -j2 --target push-artifacts -- VERBOSE= - name: Notify Gitter (success) - if: ${{ success() && runner.os!='Windows'}} + if: ${{ success() && runner.os != 'Windows'}} run: | REF=$(basename ${GITHUB_REF}) curl -sS "${{ secrets.GITTER }}" \