mirror of
https://github.com/SoftEtherVPN/SoftEtherVPN.git
synced 2025-04-03 18:00:08 +03:00
Compare commits
6 Commits
d788bb033e
...
36326b08cf
Author | SHA1 | Date | |
---|---|---|---|
|
36326b08cf | ||
|
48042cfbc1 | ||
|
a7a7eef82b | ||
|
10a2806f12 | ||
|
e2e8193495 | ||
|
71b6aa7a8c |
@ -13,10 +13,10 @@ FreeBSD_task:
|
|||||||
freebsd_instance:
|
freebsd_instance:
|
||||||
image_family: freebsd-14-2
|
image_family: freebsd-14-2
|
||||||
prepare_script:
|
prepare_script:
|
||||||
- pkg install -y pkgconf cmake git libsodium $SSL
|
- pkg install -y pkgconf cmake git libsodium cpu_features $SSL
|
||||||
- git submodule update --init --recursive
|
- git submodule update --init --recursive
|
||||||
configure_script:
|
configure_script:
|
||||||
- ./configure
|
- CMAKE_FLAGS="-DUSE_SYSTEM_CPU_FEATURES=1" CFLAGS="-I/usr/local/include/cpu_features" ./configure
|
||||||
build_script:
|
build_script:
|
||||||
- make -j $(sysctl -n hw.ncpu || echo 4) -C build
|
- make -j $(sysctl -n hw.ncpu || echo 4) -C build
|
||||||
test_script:
|
test_script:
|
||||||
|
18
.github/workflows/docker-aio.yml
vendored
18
.github/workflows/docker-aio.yml
vendored
@ -20,7 +20,7 @@ jobs:
|
|||||||
id: metavpnserver
|
id: metavpnserver
|
||||||
uses: docker/metadata-action@v5
|
uses: docker/metadata-action@v5
|
||||||
with:
|
with:
|
||||||
images: softethervpn/vpnserver
|
images: ${{ github.repository_owner }}/vpnserver
|
||||||
tags: |
|
tags: |
|
||||||
type=raw,value=latest,enable={{is_default_branch}}
|
type=raw,value=latest,enable={{is_default_branch}}
|
||||||
type=ref,event=pr
|
type=ref,event=pr
|
||||||
@ -31,7 +31,7 @@ jobs:
|
|||||||
id: metavpnclient
|
id: metavpnclient
|
||||||
uses: docker/metadata-action@v5
|
uses: docker/metadata-action@v5
|
||||||
with:
|
with:
|
||||||
images: softethervpn/vpnclient
|
images: ${{ github.repository_owner }}/vpnclient
|
||||||
tags: |
|
tags: |
|
||||||
type=raw,value=latest,enable={{is_default_branch}}
|
type=raw,value=latest,enable={{is_default_branch}}
|
||||||
type=ref,event=pr
|
type=ref,event=pr
|
||||||
@ -42,7 +42,7 @@ jobs:
|
|||||||
id: metavpnbridge
|
id: metavpnbridge
|
||||||
uses: docker/metadata-action@v5
|
uses: docker/metadata-action@v5
|
||||||
with:
|
with:
|
||||||
images: softethervpn/vpnbridge
|
images: ${{ github.repository_owner }}/vpnbridge
|
||||||
tags: |
|
tags: |
|
||||||
type=raw,value=latest,enable={{is_default_branch}}
|
type=raw,value=latest,enable={{is_default_branch}}
|
||||||
type=ref,event=pr
|
type=ref,event=pr
|
||||||
@ -74,8 +74,8 @@ jobs:
|
|||||||
target: vpnserver
|
target: vpnserver
|
||||||
push: ${{ github.event_name != 'pull_request' }}
|
push: ${{ github.event_name != 'pull_request' }}
|
||||||
platforms: linux/amd64,linux/arm64
|
platforms: linux/amd64,linux/arm64
|
||||||
tags: ${{ steps.meta.outputs.tags }}
|
tags: ${{ steps.metavpnserver.outputs.tags }}
|
||||||
labels: ${{ steps.meta.outputs.labels }}
|
labels: ${{ steps.metavpnserver.outputs.labels }}
|
||||||
-
|
-
|
||||||
name: Build and push vpnclient
|
name: Build and push vpnclient
|
||||||
uses: docker/build-push-action@v6
|
uses: docker/build-push-action@v6
|
||||||
@ -84,8 +84,8 @@ jobs:
|
|||||||
target: vpnclient
|
target: vpnclient
|
||||||
push: ${{ github.event_name != 'pull_request' }}
|
push: ${{ github.event_name != 'pull_request' }}
|
||||||
platforms: linux/amd64,linux/arm64
|
platforms: linux/amd64,linux/arm64
|
||||||
tags: ${{ steps.meta.outputs.tags }}
|
tags: ${{ steps.metavpnclient.outputs.tags }}
|
||||||
labels: ${{ steps.meta.outputs.labels }}
|
labels: ${{ steps.metavpnclient.outputs.labels }}
|
||||||
-
|
-
|
||||||
name: Build and push vpnbridge
|
name: Build and push vpnbridge
|
||||||
uses: docker/build-push-action@v6
|
uses: docker/build-push-action@v6
|
||||||
@ -94,5 +94,5 @@ jobs:
|
|||||||
target: vpnbridge
|
target: vpnbridge
|
||||||
push: ${{ github.event_name != 'pull_request' }}
|
push: ${{ github.event_name != 'pull_request' }}
|
||||||
platforms: linux/amd64,linux/arm64
|
platforms: linux/amd64,linux/arm64
|
||||||
tags: ${{ steps.meta.outputs.tags }}
|
tags: ${{ steps.metavpnbridge.outputs.tags }}
|
||||||
labels: ${{ steps.meta.outputs.labels }}
|
labels: ${{ steps.metavpnbridge.outputs.labels }}
|
@ -127,6 +127,9 @@ if(UNIX)
|
|||||||
if(SE_PIDDIR)
|
if(SE_PIDDIR)
|
||||||
add_definitions(-DSE_PIDDIR="${SE_PIDDIR}")
|
add_definitions(-DSE_PIDDIR="${SE_PIDDIR}")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
# Use system libraries instead of bundled
|
||||||
|
set(USE_SYSTEM_CPU_FEATURES false CACHE BOOL "Use system cpu_features")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
# Cedar communication module
|
# Cedar communication module
|
||||||
|
2
src/Mayaqua/3rdparty/cpu_features
vendored
2
src/Mayaqua/3rdparty/cpu_features
vendored
@ -1 +1 @@
|
|||||||
Subproject commit 26133d3b620c2c27f31d571efd27371100f891e9
|
Subproject commit ba4bffa86cbb5456bdb34426ad22b9551278e2c0
|
@ -109,8 +109,21 @@ if(UNIX)
|
|||||||
$<$<BOOL:${LIB_RT}>:${LIB_RT}>
|
$<$<BOOL:${LIB_RT}>:${LIB_RT}>
|
||||||
)
|
)
|
||||||
|
|
||||||
if (CMAKE_SYSTEM_PROCESSOR MATCHES "^(armv7l|aarch64|s390x)$" OR NOT HAVE_SYS_AUXV OR SKIP_CPU_FEATURES)
|
if (NOT HAVE_SYS_AUXV OR SKIP_CPU_FEATURES)
|
||||||
add_definitions(-DSKIP_CPU_FEATURES)
|
add_definitions(-DSKIP_CPU_FEATURES)
|
||||||
|
elseif(${CMAKE_SYSTEM_NAME} STREQUAL "FreeBSD" AND NOT CMAKE_SYSTEM_PROCESSOR MATCHES "^(amd64|i386)")
|
||||||
|
message("cpu_features is not available on FreeBSD/${CMAKE_SYSTEM_PROCESSOR}")
|
||||||
|
add_definitions(-DSKIP_CPU_FEATURES)
|
||||||
|
elseif(${CMAKE_SYSTEM_NAME} STREQUAL "Darwin" AND NOT CMAKE_SYSTEM_NAME MATCHES "^(arm64|x86_64)")
|
||||||
|
# macOS runs only on Intel or ARM architecrues, should not reach here
|
||||||
|
add_definitions(-DSKIP_CPU_FEATURES)
|
||||||
|
elseif(${CMAKE_SYSTEM_NAME} STREQUAL "SunOS" OR ${CMAKE_SYSTEM_NAME} STREQUAL "OpenBSD")
|
||||||
|
message("cpu_features is not available on ${CMAKE_SYSTEM_NAME}")
|
||||||
|
add_definitions(-DSKIP_CPU_FEATURES)
|
||||||
|
elseif(USE_SYSTEM_CPU_FEATURES)
|
||||||
|
CHECK_INCLUDE_FILE(cpu_features_macros.h HAVE_CPU_FEATURES)
|
||||||
|
message("-- Using system's cpu_features")
|
||||||
|
target_link_libraries(mayaqua PRIVATE cpu_features)
|
||||||
else()
|
else()
|
||||||
add_subdirectory(3rdparty/cpu_features)
|
add_subdirectory(3rdparty/cpu_features)
|
||||||
set_property(TARGET cpu_features PROPERTY POSITION_INDEPENDENT_CODE ON)
|
set_property(TARGET cpu_features PROPERTY POSITION_INDEPENDENT_CODE ON)
|
||||||
|
Loading…
Reference in New Issue
Block a user