Skip to content

Commit 6c832ba

Browse files
[CI] Clean up after conda init in cmake.yml
When initializing conda few extra commands are added to user's profile. These commands make it impossible to log in as the test user to the machine, since conda may be missing. We can safely remove the whole '.profile' after the job.
1 parent 7db941d commit 6c832ba

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

.github/workflows/cmake.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -265,6 +265,12 @@ jobs:
265265
working-directory: ${{github.workspace}}/build
266266
run: bin/codegen
267267

268+
# conda init adds content to user's profile making it failing (if conda is gone)
269+
- name: Cleanup after conda init
270+
run: |
271+
cat ${HOME}/.profile || true
272+
rm ${HOME}/.profile || true
273+
268274
windows-build:
269275
name: Build - Windows
270276
strategy:

0 commit comments

Comments
 (0)