Skip to content

Commit 889edc8

Browse files
authored
CI: Keep the ICC build for releases only (#800)
1 parent 5dec3ba commit 889edc8

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

.github/workflows/build.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,11 @@ jobs:
173173
fi
174174
shell: bash
175175

176-
- name: Build using Intel C++ Compiler 19.0
176+
- name: Build using Intel C++ Compiler 19.0 (only for release)
177+
if: |
178+
github.event_name == 'release' &&
179+
github.event.action == 'published' &&
180+
startsWith(github.ref, 'refs/tags/')
177181
run: |
178182
rm -rf build-icc && CC=icc CXX=icpc cmake -B build-icc && cmake --build build-icc -j8
179183
@@ -189,7 +193,7 @@ jobs:
189193
- name: Move files
190194
run: |
191195
mkdir -p publish/bin/linux32/cstrike/dlls
192-
mv build-icc/regamedll/cs.so publish/bin/linux32/cstrike/dlls/cs.so
196+
mv build-icc/regamedll/cs.so publish/bin/linux32/cstrike/dlls/cs.so 2>/dev/null || true
193197
mv build-gcc/regamedll/cs.so publish/cs-gcc.so
194198
mv regamedll/version/appversion.h publish/appversion.h
195199
mv dist/ publish/

0 commit comments

Comments
 (0)