Skip to content

Commit

Permalink
Merge branch 'devel'
Browse files Browse the repository at this point in the history
  • Loading branch information
sanpeqf committed Apr 14, 2024
2 parents 5445196 + bf2e5e2 commit 77b1a89
Show file tree
Hide file tree
Showing 77 changed files with 2,763 additions and 916 deletions.
1 change: 0 additions & 1 deletion .github/workflows/ubuntu-clang.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@ jobs:
--config ${{env.BUILD_TYPE}}
- name: install
working-directory: ${{github.workspace}}/build
run: |
cmake --build ${{github.workspace}}/build \
--config ${{env.BUILD_TYPE}} -- install
Expand Down
11 changes: 5 additions & 6 deletions .github/workflows/ubuntu-gcc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,19 +32,18 @@ jobs:
- name: configure cmake
run: |
cmake -B ${{github.workspace}}/build \
-D CMAKE_INSTALL_PREFIX=${{github.workspace}}/build/install \
-D CMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} \
-D CMAKE_C_COMPILER=/usr/lib/ccache/gcc \
-D BFDEV_DEVEL=ON
cmake -B ${{github.workspace}}/build \
-D CMAKE_INSTALL_PREFIX=${{github.workspace}}/build/install \
-D CMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} \
-D CMAKE_C_COMPILER=/usr/lib/ccache/gcc \
-D BFDEV_DEVEL=ON
- name: make
run: |
cmake --build ${{github.workspace}}/build \
--config ${{env.BUILD_TYPE}}
- name: install
working-directory: ${{github.workspace}}/build
run: |
cmake --build ${{github.workspace}}/build \
--config ${{env.BUILD_TYPE}} -- install
Expand Down
17 changes: 11 additions & 6 deletions .github/workflows/windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,16 +38,21 @@ jobs:

- name: configure cmake
run: |
cmake -B build \
-D CMAKE_INSTALL_PREFIX=build/install \
-D CMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} \
-D BFDEV_EXAMPLES=ON
cmake -B build \
-D CMAKE_INSTALL_PREFIX=build/install \
-D CMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} \
-D BFDEV_EXAMPLES=ON \
-D BFDEV_TESTSUITE=ON
- name: make
run: cmake --build build --config ${{env.BUILD_TYPE}}
run: |
cmake --build build \
--config ${{env.BUILD_TYPE}}
- name: install
run: cmake --build build --config ${{env.BUILD_TYPE}} -- install
run: |
cmake --build build \
--config ${{env.BUILD_TYPE}} -- install
- name: ctest
working-directory: ${{github.workspace}}/build
Expand Down
9 changes: 8 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
#

cmake_minimum_required(VERSION 3.12)
project(bfdev VERSION 1.0.2 LANGUAGES C)
project(bfdev VERSION 1.0.3 LANGUAGES C)

include(GNUInstallDirs)
include(CheckIncludeFiles)
Expand Down Expand Up @@ -41,6 +41,7 @@ commit_branch(BFDEV_BRANCH)
option(BFDEV_DEVEL "Enable development mode" OFF)
option(BFDEV_STRICT "Enable strict compilation" ON)
option(BFDEV_EXAMPLES "Build examples" OFF)
option(BFDEV_TESTSUITE "Build testsuite" OFF)

option(BFDEV_ASAN "Enable Address Sanitizer" OFF)
option(BFDEV_UBSAN "Enable Undefined Behaviour Sanitizer" OFF)
Expand All @@ -57,6 +58,7 @@ option(BFDEV_CRC_EXTEND "CRC loop unfolding optimize" ON)

if(BFDEV_DEVEL)
set(BFDEV_EXAMPLES ON)
set(BFDEV_TESTSUITE ON)
set(BFDEV_ASAN ON)
set(BFDEV_UBSAN ON)
set(BFDEV_GCOV ON)
Expand Down Expand Up @@ -101,6 +103,11 @@ if(BFDEV_EXAMPLES)
add_subdirectory(examples)
endif()

if(BFDEV_TESTSUITE)
enable_testing()
add_subdirectory(testsuite)
endif()

if(${CMAKE_PROJECT_NAME} STREQUAL "bfdev")
add_library(bfdev_static STATIC ${BFDEV_LIBRARY})
add_library(bfdev_shared SHARED ${BFDEV_LIBRARY})
Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# BFDEV Introduce

[![OpenSSF Best Practices](https://www.bestpractices.dev/projects/8769/badge)](https://www.bestpractices.dev/projects/8769)

bfdev is a high-performance, aesthetically pleasing, and portable infrastructure provisioning library. Its goal is to provide a comprehensive and streamlined development environment.

![logo](docs/images/logo.png)
Expand Down
1 change: 0 additions & 1 deletion examples/list/.gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
# SPDX-License-Identifier: GPL-2.0-or-later
/list-benchmark
/list-selftest
6 changes: 0 additions & 6 deletions examples/list/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,21 +7,15 @@ add_executable(list-benchmark benchmark.c)
target_link_libraries(list-benchmark bfdev)
add_test(list-benchmark list-benchmark)

add_executable(list-selftest selftest.c)
target_link_libraries(list-selftest bfdev)
add_test(list-selftest list-selftest)

if(${CMAKE_PROJECT_NAME} STREQUAL "bfdev")
install(FILES
benchmark.c
selftest.c
DESTINATION
${CMAKE_INSTALL_DOCDIR}/examples/list
)

install(TARGETS
list-benchmark
list-selftest
DESTINATION
${CMAKE_INSTALL_DOCDIR}/bin
)
Expand Down
220 changes: 0 additions & 220 deletions examples/list/selftest.c

This file was deleted.

Loading

0 comments on commit 77b1a89

Please sign in to comment.