Skip to content

Commit

Permalink
Merge pull request #8 from amnezia-vpn/update-ovpn
Browse files Browse the repository at this point in the history
Update OpenVPN2, OpenVPN3 link OpenVPN with OpenSSL 3.0
  • Loading branch information
pokamest authored Jun 27, 2024
2 parents b2314b8 + 714ff8d commit a2132cb
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 15 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build_openvpn_android.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ jobs:
uses: actions/checkout@v3
with:
repository: amnezia-vpn/openvpn-pt-android
ref: master
ref: update-ovpn3
path: openvpn-pt-android

- name: 'Build Android OpenVPN binary'
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/build_openvpn_linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
UBSAN_OPTIONS: print_stacktrace=1
BUILD_DIR: ${{ github.workspace }}/../_deps/openvpn_build
INSTALL_DIR: ${{ github.workspace }}/../openvpn_inst
OPEN_SSL_VER: "1.1.1t"
OPEN_SSL_VER: "3.0.13"
_ARCH: ${{matrix.arch}}
OPENSSL_LIBS: "-L${INSTALL_DIR}/lib -lssl -lcrypto"
OPENSSL_CFLAGS: "-I${INSTALL_DIR}/include"
Expand Down
11 changes: 5 additions & 6 deletions .github/workflows/build_openvpn_macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:
strategy:
fail-fast: false
matrix:
ssllib: [ openssl11 ]
ssllib: [ openssl30 ]
build: [ normal, asan ]
os: [macos-11, macos-12]
arch: [x86_64] #, arm64]
Expand All @@ -22,11 +22,10 @@ jobs:
cflags: "-O2 -g"
ldflags: ""
configureflags: ""
- ssllib: openssl11
libdir: openssl@1.1
- ssllib: openssl30
libdir: openssl@3.0
configuressllib: ""


runs-on: ${{matrix.os}}
if: |
contains(github.event.head_commit.message, '[all]') ||
Expand All @@ -41,7 +40,7 @@ jobs:
UBSAN_OPTIONS: print_stacktrace=1
BUILD_DIR: ${{ github.workspace }}/../_deps/openvpn_build
INSTALL_DIR: ${{ github.workspace }}/../openvpn_inst
OPEN_SSL_VER: "1.1.1t"
OPEN_SSL_VER: "3.0.13"
_ARCH: ${{matrix.arch}}
OPENSSL_LIBS: "-L${INSTALL_DIR}/lib -lssl -lcrypto"
OPENSSL_CFLAGS: "-I${INSTALL_DIR}include"
Expand Down Expand Up @@ -159,7 +158,7 @@ jobs:
name: "${{matrix.os}} - ${{matrix.arch}}"
env:
BUILD_DIR: ${{ github.workspace }}/build
OPEN_SSL_VER: "1.1.1t"
OPEN_SSL_VER: "3.0.13"

steps:
- name: Install dependencies
Expand Down
18 changes: 11 additions & 7 deletions .github/workflows/build_openvpn_windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
VCPKG_OVERLAY_PORTS: ${{ github.workspace }}/openvpn/contrib/vcpkg-ports
VCPKG_OVERLAY_TRIPLETS: ${{ github.workspace }}/openvpn/contrib/vcpkg-triplets

runs-on: windows-latest
runs-on: windows-2019
if: |
contains(github.event.head_commit.message, '[all]') ||
contains(github.event.head_commit.message, '[windows]') ||
Expand All @@ -40,7 +40,7 @@ jobs:
ref: release/2.5
path: openvpn

- name: Add MSBuild to PATH
- name: Setup MSBuild
uses: microsoft/[email protected]

- name: Set up Python
Expand All @@ -51,12 +51,16 @@ jobs:
- name: Install rst2html
run: python -m pip install --upgrade pip rst2html

- name: Restore artifacts, or setup vcpkg (do not install any package)
uses: lukka/run-vcpkg@v10
- uses: lukka/get-cmake@4931ab1fc1604964c055eb330edb3f6b26ba0cfa # v3.29.2
- uses: ilammy/msvc-dev-cmd@0b201ec74fa43914dc39ae48a89fd1d8cb592756 # v1.13.0
with:
vcpkgGitCommitId: 'd10d511f25620ca0f315cd83dcef6485efc63010'
vcpkgJsonGlob: '**/openvpn/vcpkg.json'
appendedCacheKey: '${{matrix.triplet}}'
arch: ${{ matrix.arch }}

- name: Restore from cache and install vcpkg
uses: lukka/run-vcpkg@5e0cab206a5ea620130caf672fce3e4a6b5666a1 # v11.5
with:
vcpkgGitCommitId: 8b04a7bd93bef991818fc372bb83ce00ec1c1c16
vcpkgJsonGlob: '**/windows/vcpkg.json'

- name: Run MSBuild consuming vcpkg.json
working-directory: openvpn
Expand Down

0 comments on commit a2132cb

Please sign in to comment.