Skip to content

Commit

Permalink
[CI] Clean up after conda init in cmake.yml
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
lukaszstolarczuk committed Nov 6, 2023
1 parent 7db941d commit 6c832ba
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/cmake.yml
Original file line number Diff line number Diff line change
Expand Up @@ -265,6 +265,12 @@ jobs:
working-directory: ${{github.workspace}}/build
run: bin/codegen

# conda init adds content to user's profile making it failing (if conda is gone)
- name: Cleanup after conda init
run: |
cat ${HOME}/.profile || true
rm ${HOME}/.profile || true
windows-build:
name: Build - Windows
strategy:
Expand Down

0 comments on commit 6c832ba

Please sign in to comment.