@@ -10,18 +10,20 @@ 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 :
1617 - name : Checkout repository
1718 uses : actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
1819 with :
1920 fetch-depth : 0
21+ path : ${{github.workspace}}
2022
2123 - name : Install dependencies
2224 run : |
23- sudo apt-get update
24- sudo apt-get install -y black cmake clang-format-15 cmake-format libhwloc-dev doxygen
25+ apt-get update
26+ DEBIAN_FRONTEND=noninteractive apt-get install -y git python3-venv black cmake clang-format-15 cmake-format libhwloc-dev doxygen libtbb-dev automake
2527
2628 # Latest distros do not allow global pip installation
2729 - name : Install Python requirements in venv
3335 python3 -m pip install bandit codespell
3436
3537 - name : Configure CMake
36- run : >
38+ run : |
39+ cd ${{github.workspace}}
3740 cmake
3841 -B ${{github.workspace}}/build
3942 -DUMF_FORMAT_CODE_STYLE=ON
@@ -43,34 +46,45 @@ jobs:
4346 -DUMF_BUILD_LIBUMF_POOL_JEMALLOC=OFF
4447
4548 - name : Check C/C++ formatting
46- run : cmake --build build --target clang-format-check
49+ run : |
50+ cd ${{github.workspace}}
51+ cmake --build build --target clang-format-check
4752
4853 - name : Check CMake formatting
4954 run : |
55+ cd ${{github.workspace}}
5056 cmake --build build --target cmake-format-apply
5157 git diff --exit-code
5258
5359 - name : Check Python formatting
54- run : cmake --build build --target black-format-check
60+ run : |
61+ cd ${{github.workspace}}
62+ cmake --build build --target black-format-check
5563
5664 - name : Run check-license
5765 run : |
58- ./scripts/check_license/check_headers.sh . "Apache-2.0 WITH LLVM-exception" -v
66+ cd ${{github.workspace}}
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.workspace}} /.github/workflows/.spellcheck-conf.toml
6473
6574 - name : Run codespell
66- run : python3 ./.github/scripts/run-codespell.py
75+ run : |
76+ cd ${{github.workspace}}
77+ python3 ${{github.workspace}}/.github/scripts/run-codespell.py
6778
6879 - name : Check spelling in docs
6980 run : |
81+ cd ${{github.workspace}}
7082 cmake -B build
7183 cmake --build build --target docs
7284 sphinx-build -b spelling ./build/docs_build/config ./build/docs_build/spelling_log -W
7385
7486 # Run Bandit recursively, but omit _deps directory (with 3rd party code) and python's venv
7587 - name : Run Bandit
76- run : python3 -m bandit -r . -x '/_deps/,/.venv/'
88+ run : |
89+ cd ${{github.workspace}}
90+ python3 -m bandit -r . -x '/_deps/,/.venv/'
0 commit comments