Skip to content

Commit

Permalink
[CI] Fix Cairo-2 Chess import error
Browse files Browse the repository at this point in the history
ghstack-source-id: c2bcbfc4522bd1b4f1fea3dbb006dc9552b09cb4
Pull Request resolved: #2743
  • Loading branch information
vmoens committed Feb 3, 2025
1 parent ffa99b2 commit 10f015e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/unittest/linux_libs/scripts_chess/environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,4 @@ dependencies:
- chess
- transformers
- cairosvg
- pycairo
5 changes: 5 additions & 0 deletions .github/unittest/linux_libs/scripts_chess/setup_env.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ set -e
set -v

this_dir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
yum install cairo-devel -y

# Avoid error: "fatal: unsafe repository"

git config --global --add safe.directory '*'
Expand Down Expand Up @@ -46,4 +48,7 @@ cat "${this_dir}/environment.yml"

pip install pip --upgrade

conda install anaconda::cmake -y
conda install conda-forge::cairo -y

conda env update --file "${this_dir}/environment.yml" --prune

0 comments on commit 10f015e

Please sign in to comment.