Skip to content

Commit

Permalink
CI: Keep the ICC build for releases only (#800)
Browse files Browse the repository at this point in the history
  • Loading branch information
wopox1337 authored Dec 17, 2022
1 parent 5dec3ba commit 889edc8
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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/
Expand Down

0 comments on commit 889edc8

Please sign in to comment.