Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix workflow for PR integration #120

Merged
merged 2 commits into from
Dec 6, 2023
Merged

Conversation

andreh1111
Copy link
Contributor

ubuntu/windows-latest: unchanged
macos-latest (separated workflow file):

ubuntu/windows-latest: unchanged
macos-latest (separated workflow file):
- shell without login (otherwise the used python version is not the requested one)
- source conda before env activation (this step is required if shell is without login)
- export SYSTEM_VERSION_COMPAT=0 before conda activate, taken from google-deepmind/mujoco#1004
@Vittorio-Caggiano
Copy link
Collaborator

Thanks @andreh1111 for fixing this! Would it be possible to integrate all changes in only one file? it would be easier to add test and maintain it in the long term

conda info
CONDA_DEFAULT_ENV=test_myosuite
conda create --name $CONDA_DEFAULT_ENV python=3.8 -y
source /usr/local/miniconda/etc/profile.d/conda.sh
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

wouldn't this work in Win/Linux?

Copy link
Contributor Author

@andreh1111 andreh1111 Dec 5, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nope, in Windows doesn't work while in Linux the path is different. Of course the single-file is doable but the result would be verbose, at least with this solution.

Comment on lines 70 to 71
export SYSTEM_VERSION_COMPAT=0
source /usr/local/miniconda/etc/profile.d/conda.sh
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

would this be different in Win/Linux?

The implementation is different w.r.t. the previous commit, but the focus is the same, and the obtained workflow is more similar to the original version.
Note: setting "python-version: 3.8" in miniconda setup  for ubuntu-latest result in "mujoco.FatalError: gladLoadGL error", even if "MUJOCO_GL=egl" is set as env variable.
Copy link
Collaborator

@Vittorio-Caggiano Vittorio-Caggiano left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@Vittorio-Caggiano Vittorio-Caggiano merged commit a2eaf8e into MyoHub:dev Dec 6, 2023
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants