Skip to content

Commit

Permalink
Merge from apple main branch (#131)
Browse files Browse the repository at this point in the history
  • Loading branch information
MarkSh1 authored Jun 26, 2024
1 parent 3dde175 commit 5cbfb51
Show file tree
Hide file tree
Showing 575 changed files with 19,873 additions and 8,897 deletions.
33 changes: 33 additions & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
{
"name": "FoundationDB remote dev env",
"image": "foundationdb/devel:centos7-latest",
"features": {},
"capAdd": [
"SYS_PTRACE"
],
"privileged": true,
"securityOpt": [
"seccomp=unconfined"
],
"hostRequirements": {
"storage": "60gb"
},
"containerEnv": {
"CC": "clang",
"CXX": "clang++",
"BOOST_ROOT": "/opt/boost_1_78_0_clang"
},
"customizations": {
"vscode": {
"extensions": [
"llvm-vs-code-extensions.vscode-clangd",
"ms-vscode.cmake-tools"
],
"settings": {
"cmake.configureArgs": [
"-DCMAKE_EXPORT_COMPILE_COMMANDS=ON"
]
}
}
}
}
24 changes: 12 additions & 12 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Calculate versions
id: vers
Expand All @@ -30,12 +30,12 @@ jobs:
- name: Create Draft Release
if: ${{ steps.vers.outputs.release_flag == 'ON' }}
id: create_release
uses: actions/create-release@v1
uses: softprops/action-gh-release@v2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: "${{ steps.vers.outputs.full_ver }}"
release_name: "v${{ steps.vers.outputs.full_ver }}"
name: "v${{ steps.vers.outputs.full_ver }}"
draft: true
prerelease: false

Expand All @@ -56,10 +56,10 @@ jobs:
runs-on: ${{ matrix.run_on }}
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Set building repo
run: |
run: |
echo "use_image=ghcr.io/${{matrix.owner}}/${{matrix.image}}" >> "$GITHUB_ENV"
- name: Build
Expand All @@ -86,7 +86,7 @@ jobs:
# run: ctest --output-on-failure -V

- name: Upload result
uses: nanoufo/action-upload-artifacts-and-release-assets@v1.8
uses: nanoufo/action-upload-artifacts-and-release-assets@v2
with:
path: |
${{github.workspace}}/bld/linux/packages/*${{needs.calc_ver.outputs.full_ver}}*
Expand All @@ -103,10 +103,10 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Download the foundationdb distro
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
path: ${{github.workspace}}/bld/download

Expand Down Expand Up @@ -142,10 +142,10 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Download the foundationdb distro
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
path: ${{github.workspace}}/bld/download

Expand All @@ -169,7 +169,7 @@ jobs:
${{github.workspace}}/packaging/docker/build-images-for-owtech.bash \
${{needs.calc_ver.outputs.full_ver}} \
${{github.workspace}}/bld/linux/packages \
ghcr.io/${{ github.repository_owner }}
ghcr.io/${GITHUB_REPOSITORY_OWNER@L}
tests:
needs: [calc_ver, build]
Expand Down Expand Up @@ -205,7 +205,7 @@ jobs:
pip3 install 'foundationdb==${{ env.JOSHUA_DB_VER }}'
- name: Download the correctness package
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
id: download_correctness
with:
name: correctness-${{needs.calc_ver.outputs.full_ver}}.tar.gz
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/make-build-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Calculate versions
id: vers
Expand All @@ -43,7 +43,7 @@ jobs:
runs-on: ${{ matrix.run_on }}
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Build an image
run: |
Expand Down
18 changes: 16 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,15 @@ endif()
set(EXECUTABLE_OUTPUT_PATH ${PROJECT_BINARY_DIR}/bin)
set(LIBRARY_OUTPUT_PATH ${PROJECT_BINARY_DIR}/lib)

option(WITH_ACAC "Enable actor stack recording" OFF)
if (WITH_ACAC)
message(STATUS "Build FoundationDB with AcAC support")
if (FDB_RELEASE OR FDB_RELEASE_CANDIDATE)
message(FATAL_ERROR "ACAC will cause severe slowdown of the system and SHOULD not be enabled in Release.")
endif()
add_compile_definitions(WITH_ACAC)
endif()

################################################################################
# Packages used for bindings
################################################################################
Expand Down Expand Up @@ -129,7 +138,7 @@ message(STATUS "FDB_PATCH is ${FDB_PATCH}")

set(FDB_CURRENT_VERSION ${PROJECT_VERSION})
set(FDB_FUTURE_VERSION "7.5.0")
set(FDB_PREV_RELEASE_VERSION "7.3.3")
set(FDB_PREV_RELEASE_VERSION "7.3.41")
set(FDB_PREV2_RELEASE_VERSION "7.1.33")
set(FDB_PREV3_RELEASE_VERSION "7.0.0")

Expand Down Expand Up @@ -223,6 +232,7 @@ if(WITH_PYTHON AND WITH_C_BINDING)
endif()
if(WITH_DOCUMENTATION)
add_subdirectory(documentation)
add_dependencies(html CopyJavadoc)
endif()

if(WIN32)
Expand All @@ -249,7 +259,9 @@ if (CMAKE_EXPORT_COMPILE_COMMANDS AND WITH_PYTHON)
add_custom_target(processed_compile_commands ALL DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/compile_commands.json ${CMAKE_CURRENT_BINARY_DIR}/compile_commands.json)

# A prebuild target ensures that all actors, Swift-generated headers, and Swift modules are built.
add_custom_target(prebuild_for_ide ALL DEPENDS fdbserver_swift processed_compile_commands)
if (WITH_SWIFT)
add_custom_target(prebuild_for_ide ALL DEPENDS fdbserver_swift processed_compile_commands)
endif()
endif()

################################################################################
Expand All @@ -259,3 +271,5 @@ endif()
print_components()

message(STATUS "CPACK_COMPONENTS_ALL ${CPACK_COMPONENTS_ALL}")


13 changes: 0 additions & 13 deletions FDBLibTLS/CMakeLists.txt

This file was deleted.

6 changes: 0 additions & 6 deletions FDBLibTLS/FDBLibTLS.map

This file was deleted.

1 change: 0 additions & 1 deletion FDBLibTLS/FDBLibTLS.symbols

This file was deleted.

50 changes: 0 additions & 50 deletions FDBLibTLS/FDBLibTLSPlugin.cpp

This file was deleted.

Loading

0 comments on commit 5cbfb51

Please sign in to comment.