Skip to content

Commit

Permalink
Make sure versions are the same in CI and env; properly install cmake…
Browse files Browse the repository at this point in the history
…lang
  • Loading branch information
loostrum committed Jul 28, 2023
1 parent a0c525b commit 7759a3e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/pre-commit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,11 @@ jobs:
# set tools versions to latest supported by the CI runner,
# ubuntu 22.04 at the time of writing
# clang defaults to v14.0.0
gcc-version: 12 # = 12.1.0
gcc-version: "12" # = 12.1.0
# cuda version to install with separate action
cuda-version: "12.2.0"
# version for cmake-lint and cmake-format
cmakelang-version: "0.6.13"
steps:

- name: Show git version
Expand Down Expand Up @@ -61,7 +63,7 @@ jobs:

- name: Install pre-commit and related tools
run: |
pip install pre-commit cmake-lint cmake-format
pip install pre-commit cmakelang==${{ env.cmakelang-version}}
sudo apt install cppcheck -y
- name: Show tool versions
Expand Down
8 changes: 4 additions & 4 deletions environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ channels:
- conda-forge
dependencies:
- c-compiler
- clang==16.0.6
- clang-tools==16.0.6
- clang==14.0.0
- clang-tools==14.0.0
- cmake>=3.17
- cppcheck==2.10.3
- cudatoolkit-dev>=10.0
- cudatoolkit-dev==12.2.0
- cxx-compiler
- doxygen
- gcovr
Expand All @@ -19,6 +19,6 @@ dependencies:
- pip:
- pre-commit
- bump2version==1.0.1
- clang-format==16.0.6
- clang-format==14.0.0
- cmakelang==0.6.13
- flawfinder==2.0.19

0 comments on commit 7759a3e

Please sign in to comment.