-
Notifications
You must be signed in to change notification settings - Fork 42
add license checker #997
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
Closed
add license checker #997
Changes from all commits
Commits
Show all changes
20 commits
Select commit
Hold shift + click to select a range
d90e3d4
add license checker
rbanka1 d8ba0f4
Fix formatting of CMakeLists.txt
rbanka1 3622820
Final version of license check
rbanka1 c6a9fa0
Final version of license check.
rbanka1 e83ee34
Minor cleanups and additions in docs
lukaszstolarczuk 718c61d
Move docs content into a separate dir
lukaszstolarczuk 78d2798
[CMake] Add 'docs' target
lukaszstolarczuk c7fdc11
[CI] make docs workflow reusable in deploy job
lukaszstolarczuk 70c5906
Fix paths of logs in test_valgrind.sh
ldorau cf98482
Merge pull request #1014 from ldorau/Fix_paths_of_logs_in_test_valgri…
bratpiorka 5844c5a
Fix L0 provider
igchor 71055de
Merge pull request #1015 from igchor/stype_fix_l0
bratpiorka 58ba8e9
enable building examples on win static hwloc CI
bratpiorka 91f14d7
fix setting LIBHWLOC_LIBRARIES on Windows
bratpiorka 9dd2283
Merge pull request #1016 from bratpiorka/rrudnick_enable_win_examples
lukaszstolarczuk 30fada6
Merge pull request #999 from lukaszstolarczuk/docs-change
lukaszstolarczuk e82e88f
add license checker
rbanka1 86933e6
Update license checker
rbanka1 90ec139
Updated dates
rbanka1 937359a
Updated dates
rbanka1 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,142 @@ | ||
| # Check code with compilers' sanitizers | ||
| name: Sanitizers | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. heh, this file shouldn't be here |
||
|
|
||
| on: workflow_call | ||
|
|
||
| env: | ||
| BUILD_DIR : "${{github.workspace}}/build" | ||
| INSTL_DIR : "${{github.workspace}}/../install-dir" | ||
|
|
||
| permissions: | ||
| contents: read | ||
|
|
||
| jobs: | ||
| ubuntu-build: | ||
| name: Ubuntu | ||
| strategy: | ||
| matrix: | ||
| compiler: [{c: gcc, cxx: g++}, {c: clang, cxx: clang++}, {c: icx, cxx: icpx}] | ||
| # TSAN is mutually exclusive with other sanitizers | ||
| sanitizers: [{asan: ON, ubsan: ON, tsan: OFF}, {asan: OFF, ubsan: OFF, tsan: ON}] | ||
| runs-on: ubuntu-22.04 | ||
|
|
||
| steps: | ||
| - name: Checkout | ||
| uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 | ||
| with: | ||
| fetch-depth: 0 | ||
|
|
||
| - name: Install apt packages | ||
| run: | | ||
| sudo apt-get update | ||
| sudo apt-get install -y clang cmake libhwloc-dev libnuma-dev libjemalloc-dev libtbb-dev | ||
| - name: Install oneAPI basekit | ||
| if: matrix.compiler.cxx == 'icpx' | ||
| run: | | ||
| sudo apt-get install -y gpg-agent wget | ||
| wget -O- https://apt.repos.intel.com/intel-gpg-keys/GPG-PUB-KEY-INTEL-SW-PRODUCTS.PUB | gpg --dearmor | sudo tee /usr/share/keyrings/oneapi-archive-keyring.gpg > /dev/null | ||
| echo "deb [signed-by=/usr/share/keyrings/oneapi-archive-keyring.gpg] https://apt.repos.intel.com/oneapi all main" | sudo tee /etc/apt/sources.list.d/oneAPI.list | ||
| sudo apt-get update | ||
| sudo apt-get install -y intel-oneapi-ippcp-devel intel-oneapi-ipp-devel intel-oneapi-common-oneapi-vars intel-oneapi-compiler-dpcpp-cpp | ||
| - name: Set ptrace value for IPC test | ||
| run: sudo bash -c "echo 0 > /proc/sys/kernel/yama/ptrace_scope" | ||
|
|
||
| - name: Configure build | ||
| run: > | ||
| ${{ matrix.compiler.cxx == 'icpx' && '. /opt/intel/oneapi/setvars.sh &&' || ''}} | ||
| cmake | ||
| -B ${{env.BUILD_DIR}} | ||
| -DCMAKE_INSTALL_PREFIX="${{env.INSTL_DIR}}" | ||
| -DCMAKE_BUILD_TYPE=Debug | ||
| -DUMF_BUILD_SHARED_LIBRARY=OFF | ||
| -DCMAKE_C_COMPILER=${{matrix.compiler.c}} | ||
| -DCMAKE_CXX_COMPILER=${{matrix.compiler.cxx}} | ||
| -DUMF_BUILD_LEVEL_ZERO_PROVIDER=ON | ||
| -DUMF_FORMAT_CODE_STYLE=OFF | ||
| -DUMF_DEVELOPER_MODE=ON | ||
| -DUMF_BUILD_LIBUMF_POOL_JEMALLOC=ON | ||
| -DUMF_BUILD_LIBUMF_POOL_DISJOINT=ON | ||
| -DUMF_USE_ASAN=${{matrix.sanitizers.asan}} | ||
| -DUMF_USE_UBSAN=${{matrix.sanitizers.ubsan}} | ||
| -DUMF_USE_TSAN=${{matrix.sanitizers.tsan}} | ||
| -DUMF_BUILD_EXAMPLES=ON | ||
| -DUMF_TESTS_FAIL_ON_SKIP=ON | ||
| - name: Build UMF | ||
| run: | | ||
| ${{ matrix.compiler.cxx == 'icpx' && '. /opt/intel/oneapi/setvars.sh' || true }} | ||
| cmake --build ${{env.BUILD_DIR}} -j $(nproc) | ||
| - name: Run tests | ||
| working-directory: ${{env.BUILD_DIR}} | ||
| run: > | ||
| ${{ matrix.compiler.cxx == 'icpx' && '. /opt/intel/oneapi/setvars.sh &&' || ''}} | ||
| ctest --output-on-failure | ||
| windows-build: | ||
| name: cl and clang-cl on Windows | ||
| env: | ||
| VCPKG_PATH: "${{github.workspace}}/build/vcpkg/packages/hwloc_x64-windows;${{github.workspace}}/build/vcpkg/packages/tbb_x64-windows;${{github.workspace}}/build/vcpkg/packages/jemalloc_x64-windows" | ||
| strategy: | ||
| matrix: | ||
| compiler: [{c: cl, cxx: cl}, {c: clang-cl, cxx: clang-cl}] | ||
| # Only ASAN is supported | ||
| sanitizers: [{asan: ON}] | ||
| runs-on: windows-2022 | ||
|
|
||
| steps: | ||
| - name: Checkout | ||
| uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 | ||
| with: | ||
| fetch-depth: 0 | ||
|
|
||
| # Use the latest MSVC toolset available, when compiling UMF with ASan. | ||
| # Running binaries compiled with older toolsets results in a | ||
| # 'STATUS_DLL_INIT_FAILED' error despite being linked with ASan from | ||
| # the same toolset as the compiler being used. | ||
| # https://github.com/actions/runner-images/issues/8891 | ||
| - name: Setup MSVC dev command prompt | ||
| if: matrix.sanitizers.asan == 'ON' | ||
| uses: TheMrMilchmann/setup-msvc-dev@48edcef51a12c80d7e62ace57aae1417795e511c # v3.0.0 | ||
| with: | ||
| arch: x64 | ||
| toolset: '14' | ||
|
|
||
| - name: Initialize vcpkg | ||
| uses: lukka/run-vcpkg@5e0cab206a5ea620130caf672fce3e4a6b5666a1 # v11.5 | ||
| with: | ||
| vcpkgGitCommitId: 3dd44b931481d7a8e9ba412621fa810232b66289 | ||
| vcpkgDirectory: ${{env.BUILD_DIR}}/vcpkg | ||
| vcpkgJsonGlob: '**/vcpkg.json' | ||
|
|
||
| - name: Install dependencies | ||
| run: vcpkg install | ||
| shell: pwsh # Specifies PowerShell as the shell for running the script. | ||
|
|
||
| # TODO enable level zero provider | ||
| - name: Configure build | ||
| run: > | ||
| cmake | ||
| -B ${{env.BUILD_DIR}} | ||
| -DCMAKE_INSTALL_PREFIX="${{env.INSTL_DIR}}" | ||
| -DCMAKE_C_COMPILER=${{matrix.compiler.c}} | ||
| -DCMAKE_CXX_COMPILER=${{matrix.compiler.cxx}} | ||
| -DCMAKE_PREFIX_PATH="${{env.VCPKG_PATH}}" | ||
| -DUMF_BUILD_SHARED_LIBRARY=OFF | ||
| -DUMF_FORMAT_CODE_STYLE=OFF | ||
| -DUMF_DEVELOPER_MODE=ON | ||
| -DUMF_BUILD_LIBUMF_POOL_DISJOINT=ON | ||
| -DUMF_USE_ASAN=${{matrix.sanitizers.asan}} | ||
| -DUMF_BUILD_EXAMPLES=ON | ||
| -DUMF_BUILD_LEVEL_ZERO_PROVIDER=OFF | ||
| -DUMF_TESTS_FAIL_ON_SKIP=ON | ||
| - name: Build UMF | ||
| run: cmake --build ${{env.BUILD_DIR}} --config Debug -j $Env:NUMBER_OF_PROCESSORS | ||
|
|
||
| - name: Run tests | ||
| working-directory: ${{env.BUILD_DIR}} | ||
| run: ctest -C Debug --output-on-failure | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -58,7 +58,7 @@ __pycache__/ | |
| *.py[cod] | ||
|
|
||
| # Generated docs | ||
| docs/ | ||
| docs_build/ | ||
|
|
||
| # Build files | ||
| /build*/ | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.