Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .clang-format
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
BasedOnStyle: LLVM
BasedOnStyle: Google
IndentWidth: 4
ColumnLimit: 100
AccessModifierOffset: -4
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/cpp-linter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
push:
branches: [ "*" ]
pull_request:
branches: [ "dev*", "main", "*release" ]
branches: [ "dev*", "main", "*release", "feature*" ]


jobs:
Expand All @@ -25,7 +25,7 @@ jobs:
files-changed-only: true
lines-changed-only: diff
format-review: true
thread-comments: ${{ github.event_name == 'pull_request' && 'update' }}
version: 20

- name: Fail fast?!
if: steps.linter.outputs.checks-failed != 0
Expand Down
16 changes: 4 additions & 12 deletions .github/workflows/ucmstore.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@ on:
push:
branches: [ "*" ]
pull_request:
branches: [ "dev*", "main", "*release" ]
branches: [ "dev*", "main", "*release", "feature*" ]

env:
# Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.)
BUILD_TYPE: Debug

jobs:
ci:
cc_gtest:
# The CMake configure and build commands are platform agnostic and should work equally well on Windows or Mac.
# You can convert this to a matrix build if you need cross-platform coverage.
# See: https://docs.github.com/en/free-pro-team@latest/actions/learn-github-actions/managing-complex-workflows#using-a-build-matrix
Expand All @@ -24,28 +24,20 @@ jobs:

- name: Install googletest
run: |
git clone https://github.com/google/googletest.git --depth=1 --branch=v1.12.0
git clone https://github.com/google/googletest.git --depth=1 --branch=v1.17.0
cd googletest
mkdir build && cd build
cmake -DCMAKE_CXX_FLAGS="-fPIC" -DCMAKE_C_FLAGS="-fPIC" -DCMAKE_CXX_STANDARD=17 -DCMAKE_CXX_STANDARD_REQUIRED=True ..
sudo make install -j

- name: Install mockcpp
run: |
git clone https://github.com/sinojelly/mockcpp.git --depth=1
cd mockcpp
mkdir build && cd build
cmake -DCMAKE_CXX_FLAGS="-fPIC" -DCMAKE_C_FLAGS="-fPIC" -DCMAKE_CXX_STANDARD=17 -DCMAKE_CXX_STANDARD_REQUIRED=True -DMOCKCPP_XUNIT="gtest" -DMOCKCPP_XUNIT_HOME=/usr/local/ ..
sudo make install -j

- name: Configure CMake
# Configure CMake in a 'build' subdirectory. `CMAKE_BUILD_TYPE` is only required if you are using a single-configuration generator such as make.
# See https://cmake.org/cmake/help/latest/variable/CMAKE_BUILD_TYPE.html?highlight=cmake_build_type
run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DBUILD_UCM_SPARSE=OFF -DBUILD_UNIT_TESTS=ON -DRUNTIME_ENVIRONMENT=simu

- name: Build
# Build your program with the given configuration
run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}}
run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}} -j

- name: Test
working-directory: ${{github.workspace}}/build
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/unifiedcache_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,13 @@ on:
- 'main'
- 'dev*'
- '*release'
- 'feature*'
pull_request:
branches:
- 'main'
- 'dev*'
- '*release'
- 'feature*'

jobs:
# gpu-test:
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ def build_cmake(self, ext: CMakeExtension):

setup(
name="uc-manager",
version="0.1.2",
version="0.2.0rc1",
description="Unified Cache Management",
author="Unified Cache Team",
packages=find_packages(),
Expand Down
Loading