-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e31c856
commit b4226c3
Showing
5 changed files
with
153 additions
and
74 deletions.
There are no files selected for viewing
This file contains 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 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,131 @@ | ||
# TODO | ||
name: Compatibility | ||
|
||
on: | ||
workflow_call: | ||
inputs: | ||
tag: | ||
description: Check backward compatibility with this tag | ||
type: string | ||
default: "0.10.1" | ||
|
||
permissions: | ||
contents: read | ||
|
||
jobs: | ||
ubuntu-build: | ||
name: Ubuntu | ||
strategy: | ||
matrix: | ||
# TODO other systems? | ||
os: ['ubuntu-22.04'] | ||
build_type: [Debug] | ||
compiler: [{c: gcc, cxx: g++}] | ||
shared_library: ['ON'] | ||
level_zero_provider: ['ON'] | ||
cuda_provider: ['ON'] | ||
install_tbb: ['ON'] | ||
runs-on: ${{matrix.os}} | ||
|
||
steps: | ||
# NOTE: we need jemalloc for older version of UMF | ||
- name: Install apt packages | ||
run: | | ||
sudo apt-get update | ||
sudo apt-get install -y clang cmake libnuma-dev libjemalloc-dev | ||
- name: Install TBB apt package | ||
if: matrix.install_tbb == 'ON' | ||
run: | | ||
sudo apt-get install -y libtbb-dev | ||
- name: Checkout "tag" UMF version | ||
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 | ||
with: | ||
fetch-depth: 0 | ||
ref: refs/tags/${{inputs.tag}} | ||
path: ${{github.workspace}}/tag_version | ||
|
||
- name: Install libhwloc | ||
working-directory: ${{github.workspace}}/tag_version | ||
run: .github/scripts/install_hwloc.sh | ||
|
||
- name: Get "tag" UMF version | ||
working-directory: ${{github.workspace}}/tag_version | ||
run: | | ||
VERSION=$(git describe --tags --abbrev=0 | grep -oP '\d+\.\d+\.\d+') | ||
echo "tag version: $VERSION" | ||
- name: Configure "tag" UMF build | ||
working-directory: ${{github.workspace}}/tag_version | ||
run: > | ||
cmake | ||
-B ${{github.workspace}}/tag_version/build | ||
-DCMAKE_INSTALL_PREFIX="${{github.workspace}}/tag_version/build/install" | ||
-DCMAKE_BUILD_TYPE=${{matrix.build_type}} | ||
-DUMF_BUILD_SHARED_LIBRARY=${{matrix.shared_library}} | ||
-DCMAKE_C_COMPILER=${{matrix.compiler.c}} | ||
-DCMAKE_CXX_COMPILER=${{matrix.compiler.cxx}} | ||
-DUMF_BUILD_LEVEL_ZERO_PROVIDER=${{matrix.level_zero_provider}} | ||
-DUMF_BUILD_CUDA_PROVIDER=${{matrix.cuda_provider}} | ||
-DUMF_FORMAT_CODE_STYLE=OFF | ||
-DUMF_DEVELOPER_MODE=ON | ||
-DUMF_BUILD_LIBUMF_POOL_JEMALLOC=ON | ||
-DUMF_BUILD_LIBUMF_POOL_DISJOINT=ON | ||
-DUMF_TESTS_FAIL_ON_SKIP=ON | ||
- name: Build "tag" UMF | ||
working-directory: ${{github.workspace}}/tag_version | ||
run: | | ||
cmake --build ${{github.workspace}}/tag_version/build -j $(nproc) | ||
# NOTE: we need jemalloc for older version of UMF | ||
# if: startsWith(github.event.inputs.tag, '0.10.') || startsWith(github.event.inputs.tag, '0.9.') | ||
- name: Set ptrace value for IPC test | ||
run: sudo bash -c "echo 0 > /proc/sys/kernel/yama/ptrace_scope" | ||
|
||
- name: Run "tag" UMF tests | ||
working-directory: ${{github.workspace}}/tag_version/build | ||
run: | | ||
LD_LIBRARY_PATH=${{github.workspace}}/tag_version/build/lib/ ctest --output-on-failure | ||
- name: Checkout latest UMF version | ||
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 | ||
with: | ||
fetch-depth: 0 | ||
path: ${{github.workspace}}/latest_version | ||
|
||
- name: Get latest UMF version | ||
working-directory: ${{github.workspace}}/latest_version | ||
run: | | ||
VERSION=$(git describe --tags --abbrev=0 | grep -oP '\d+\.\d+\.\d+') | ||
echo "checked version: $VERSION" | ||
- name: Configure latest UMF build | ||
working-directory: ${{github.workspace}}/latest_version | ||
run: > | ||
cmake | ||
-B ${{github.workspace}}/latest_version/build | ||
-DCMAKE_INSTALL_PREFIX="${{github.workspace}}/latest_version/build/install" | ||
-DCMAKE_BUILD_TYPE=${{matrix.build_type}} | ||
-DUMF_BUILD_SHARED_LIBRARY=${{matrix.shared_library}} | ||
-DCMAKE_C_COMPILER=${{matrix.compiler.c}} | ||
-DCMAKE_CXX_COMPILER=${{matrix.compiler.cxx}} | ||
-DUMF_BUILD_LEVEL_ZERO_PROVIDER=${{matrix.level_zero_provider}} | ||
-DUMF_BUILD_CUDA_PROVIDER=${{matrix.cuda_provider}} | ||
-DUMF_FORMAT_CODE_STYLE=OFF | ||
-DUMF_DEVELOPER_MODE=ON | ||
-DUMF_BUILD_LIBUMF_POOL_JEMALLOC=ON | ||
-DUMF_BUILD_LIBUMF_POOL_DISJOINT=ON | ||
-DUMF_TESTS_FAIL_ON_SKIP=ON | ||
- name: Build latest UMF | ||
working-directory: ${{github.workspace}}/latest_version | ||
run: | | ||
cmake --build ${{github.workspace}}/latest_version/build -j $(nproc) | ||
- name: Run "tag" UMF tests with latest UMF libs | ||
working-directory: ${{github.workspace}}/tag_version/build | ||
run: | | ||
LD_LIBRARY_PATH=${{github.workspace}}/latest_version/build/lib/ ctest --output-on-failure | ||
This file contains 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 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 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