Skip to content

Commit a2132cb

Browse files
authored
Merge pull request #8 from amnezia-vpn/update-ovpn
Update OpenVPN2, OpenVPN3 link OpenVPN with OpenSSL 3.0
2 parents b2314b8 + 714ff8d commit a2132cb

File tree

4 files changed

+18
-15
lines changed

4 files changed

+18
-15
lines changed

.github/workflows/build_openvpn_android.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ jobs:
4444
uses: actions/checkout@v3
4545
with:
4646
repository: amnezia-vpn/openvpn-pt-android
47-
ref: master
47+
ref: update-ovpn3
4848
path: openvpn-pt-android
4949

5050
- name: 'Build Android OpenVPN binary'

.github/workflows/build_openvpn_linux.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
UBSAN_OPTIONS: print_stacktrace=1
2323
BUILD_DIR: ${{ github.workspace }}/../_deps/openvpn_build
2424
INSTALL_DIR: ${{ github.workspace }}/../openvpn_inst
25-
OPEN_SSL_VER: "1.1.1t"
25+
OPEN_SSL_VER: "3.0.13"
2626
_ARCH: ${{matrix.arch}}
2727
OPENSSL_LIBS: "-L${INSTALL_DIR}/lib -lssl -lcrypto"
2828
OPENSSL_CFLAGS: "-I${INSTALL_DIR}/include"

.github/workflows/build_openvpn_macos.yml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ jobs:
88
strategy:
99
fail-fast: false
1010
matrix:
11-
ssllib: [ openssl11 ]
11+
ssllib: [ openssl30 ]
1212
build: [ normal, asan ]
1313
os: [macos-11, macos-12]
1414
arch: [x86_64] #, arm64]
@@ -22,11 +22,10 @@ jobs:
2222
cflags: "-O2 -g"
2323
ldflags: ""
2424
configureflags: ""
25-
- ssllib: openssl11
26-
libdir: openssl@1.1
25+
- ssllib: openssl30
26+
libdir: openssl@3.0
2727
configuressllib: ""
2828

29-
3029
runs-on: ${{matrix.os}}
3130
if: |
3231
contains(github.event.head_commit.message, '[all]') ||
@@ -41,7 +40,7 @@ jobs:
4140
UBSAN_OPTIONS: print_stacktrace=1
4241
BUILD_DIR: ${{ github.workspace }}/../_deps/openvpn_build
4342
INSTALL_DIR: ${{ github.workspace }}/../openvpn_inst
44-
OPEN_SSL_VER: "1.1.1t"
43+
OPEN_SSL_VER: "3.0.13"
4544
_ARCH: ${{matrix.arch}}
4645
OPENSSL_LIBS: "-L${INSTALL_DIR}/lib -lssl -lcrypto"
4746
OPENSSL_CFLAGS: "-I${INSTALL_DIR}include"
@@ -159,7 +158,7 @@ jobs:
159158
name: "${{matrix.os}} - ${{matrix.arch}}"
160159
env:
161160
BUILD_DIR: ${{ github.workspace }}/build
162-
OPEN_SSL_VER: "1.1.1t"
161+
OPEN_SSL_VER: "3.0.13"
163162

164163
steps:
165164
- name: Install dependencies

.github/workflows/build_openvpn_windows.yml

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
VCPKG_OVERLAY_PORTS: ${{ github.workspace }}/openvpn/contrib/vcpkg-ports
2424
VCPKG_OVERLAY_TRIPLETS: ${{ github.workspace }}/openvpn/contrib/vcpkg-triplets
2525

26-
runs-on: windows-latest
26+
runs-on: windows-2019
2727
if: |
2828
contains(github.event.head_commit.message, '[all]') ||
2929
contains(github.event.head_commit.message, '[windows]') ||
@@ -40,7 +40,7 @@ jobs:
4040
ref: release/2.5
4141
path: openvpn
4242

43-
- name: Add MSBuild to PATH
43+
- name: Setup MSBuild
4444
uses: microsoft/[email protected]
4545

4646
- name: Set up Python
@@ -51,12 +51,16 @@ jobs:
5151
- name: Install rst2html
5252
run: python -m pip install --upgrade pip rst2html
5353

54-
- name: Restore artifacts, or setup vcpkg (do not install any package)
55-
uses: lukka/run-vcpkg@v10
54+
- uses: lukka/get-cmake@4931ab1fc1604964c055eb330edb3f6b26ba0cfa # v3.29.2
55+
- uses: ilammy/msvc-dev-cmd@0b201ec74fa43914dc39ae48a89fd1d8cb592756 # v1.13.0
5656
with:
57-
vcpkgGitCommitId: 'd10d511f25620ca0f315cd83dcef6485efc63010'
58-
vcpkgJsonGlob: '**/openvpn/vcpkg.json'
59-
appendedCacheKey: '${{matrix.triplet}}'
57+
arch: ${{ matrix.arch }}
58+
59+
- name: Restore from cache and install vcpkg
60+
uses: lukka/run-vcpkg@5e0cab206a5ea620130caf672fce3e4a6b5666a1 # v11.5
61+
with:
62+
vcpkgGitCommitId: 8b04a7bd93bef991818fc372bb83ce00ec1c1c16
63+
vcpkgJsonGlob: '**/windows/vcpkg.json'
6064

6165
- name: Run MSBuild consuming vcpkg.json
6266
working-directory: openvpn

0 commit comments

Comments
 (0)