Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
NicolasHug committed Aug 10, 2024
1 parent b1014c8 commit 1d88f13
Showing 1 changed file with 10 additions and 12 deletions.
22 changes: 10 additions & 12 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,18 +45,16 @@ jobs:
script: |
set -euo pipefail
export PYTHON_VERSION=3.9
echo '::group::Setup environment'
CONDA_PATH=$(which conda)
eval "$(${CONDA_PATH} shell.bash hook)"
# clang-format needs some shared libraries that conflict with the system ones. Thus, we install them from conda
# and prepend the libraries to linker path to prioritize them. `ncurses=5` is only available on the conda-forge
# channel. Since we are not building or testing here, this is fine.
conda create --name ci --quiet --yes -c conda-forge python=3.9 ncurses=5 libgcc
conda activate ci
export LD_LIBRARY_PATH="${CONDA_PREFIX}/lib:${LD_LIBRARY_PATH}"
echo '::endgroup::'
# echo '::group::Setup environment'
# CONDA_PATH=$(which conda)
# eval "$(${CONDA_PATH} shell.bash hook)"
# # clang-format needs some shared libraries that conflict with the system ones. Thus, we install them from conda
# # and prepend the libraries to linker path to prioritize them. `ncurses=5` is only available on the conda-forge
# # channel. Since we are not building or testing here, this is fine.
# conda create --name ci --quiet --yes -c conda-forge python=3.9 ncurses=5 libgcc
# conda activate ci
# export LD_LIBRARY_PATH="${CONDA_PREFIX}/lib:${LD_LIBRARY_PATH}"
# echo '::endgroup::'
echo '::group::Install lint tools'
curl https://oss-clang-format.s3.us-east-2.amazonaws.com/linux64/clang-format-linux64 -o ./clang-format
Expand Down

0 comments on commit 1d88f13

Please sign in to comment.