@@ -10,60 +10,70 @@ permissions:
1010jobs :
1111 CodeChecks :
1212 name : Basic code checks
13- runs-on : ${{ github.repository_owner == 'oneapi-src' && 'intel-ubuntu-22.04' || 'ubuntu-latest' }}
13+ runs-on : ' DSS-L0-FLEX'
14+ container : ubuntu:22.04 # localhost:5000/umf_docker:latest
1415
1516 steps :
16- - name : Checkout repository
17- uses : actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
18- with :
19- fetch-depth : 0
20-
21- - name : Install dependencies
22- run : |
23- sudo apt-get update
24- sudo apt-get install -y black cmake clang-format-15 cmake-format libhwloc-dev doxygen
25-
2617 # Latest distros do not allow global pip installation
2718 - name : Install Python requirements in venv
2819 run : |
20+ apt-get update
21+ DEBIAN_FRONTEND=noninteractive apt-get install -y git python3-venv
2922 python3 -m venv .venv
3023 . .venv/bin/activate
3124 echo "$PATH" >> $GITHUB_PATH
3225 python3 -m pip install -r third_party/requirements.txt
3326 python3 -m pip install bandit codespell
3427
28+ - name : Checkout repository
29+ uses : actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
30+ with :
31+ fetch-depth : 0
32+
33+ - name : Install dependencies
34+ run : |
35+ DEBIAN_FRONTEND=noninteractive apt-get install -y git black cmake clang-format-15 cmake-format libhwloc-dev doxygen libtbb-dev automake
36+
3537 - name : Configure CMake
36- run : >
37- cmake
38- -B ${{github.workspace}}/build
39- -DUMF_FORMAT_CODE_STYLE=ON
40- -DUMF_BUILD_TESTS=OFF
41- -DUMF_BUILD_LEVEL_ZERO_PROVIDER=OFF
42- -DUMF_BUILD_CUDA_PROVIDER=OFF
43- -DUMF_BUILD_LIBUMF_POOL_JEMALLOC=OFF
38+ run : |
39+ cmake -B build \
40+ -DUMF_FORMAT_CODE_STYLE=ON \
41+ -DUMF_BUILD_TESTS=OFF \
42+ -DUMF_BUILD_LEVEL_ZERO_PROVIDER=OFF \
43+ -DUMF_BUILD_CUDA_PROVIDER=OFF \
44+ -DUMF_BUILD_LIBUMF_POOL_JEMALLOC=OFF
4445
4546 - name : Check C/C++ formatting
46- run : cmake --build build --target clang-format-check
47+ run : |
48+ pwd
49+ ls -l
50+ cmake --build build --target clang-format-check
51+ git diff --exit-code
4752
4853 - name : Check CMake formatting
4954 run : |
55+ pwd
56+ ls -l
5057 cmake --build build --target cmake-format-apply
5158 git diff --exit-code
5259
5360 - name : Check Python formatting
54- run : cmake --build build --target black-format-check
61+ run : |
62+ cmake --build build --target black-format-check
63+ git diff --exit-code
5564
5665 - name : Run check-license
5766 run : |
58- ./scripts/check_license/check_headers.sh . "Apache-2.0 WITH LLVM-exception" -v
67+ .github /scripts/check_license/check_headers.sh . "Apache-2.0 WITH LLVM-exception" -v
5968
6069 - name : Run a spell check
6170 uses : crate-ci/typos@b63f421581dce830bda2f597a678cb7776b41877 # v1.18.2
6271 with :
63- config : ./. github/workflows/.spellcheck-conf.toml
72+ config : .github/workflows/.spellcheck-conf.toml
6473
6574 - name : Run codespell
66- run : python3 ./.github/scripts/run-codespell.py
75+ run : |
76+ python3 .github/scripts/run-codespell.py
6777
6878 - name : Check spelling in docs
6979 run : |
7383
7484 # Run Bandit recursively, but omit _deps directory (with 3rd party code) and python's venv
7585 - name : Run Bandit
76- run : python3 -m bandit -r . -x '/_deps/,/.venv/'
86+ run : |
87+ python3 -m bandit -r . -x '/_deps/,/.venv/'
0 commit comments