From 889edc81bfe498683462a0a5036cf7479e31ae87 Mon Sep 17 00:00:00 2001 From: Sergey Shorokhov Date: Sun, 18 Dec 2022 00:28:36 +0300 Subject: [PATCH] CI: Keep the `ICC` build for releases only (#800) --- .github/workflows/build.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index dea1965d2..f8547b3b6 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -173,7 +173,11 @@ jobs: fi shell: bash - - name: Build using Intel C++ Compiler 19.0 + - name: Build using Intel C++ Compiler 19.0 (only for release) + if: | + github.event_name == 'release' && + github.event.action == 'published' && + startsWith(github.ref, 'refs/tags/') run: | rm -rf build-icc && CC=icc CXX=icpc cmake -B build-icc && cmake --build build-icc -j8 @@ -189,7 +193,7 @@ jobs: - name: Move files run: | mkdir -p publish/bin/linux32/cstrike/dlls - mv build-icc/regamedll/cs.so publish/bin/linux32/cstrike/dlls/cs.so + mv build-icc/regamedll/cs.so publish/bin/linux32/cstrike/dlls/cs.so 2>/dev/null || true mv build-gcc/regamedll/cs.so publish/cs-gcc.so mv regamedll/version/appversion.h publish/appversion.h mv dist/ publish/