@@ -31,10 +31,10 @@ jobs:
3131 contains(github.event.head_commit.message, '[openvpn]')
3232
3333 steps :
34- - uses : actions/checkout@v3
34+ - uses : actions/checkout@v4
3535
3636 - name : ' Get openvpn'
37- uses : actions/checkout@v3
37+ uses : actions/checkout@v4
3838 with :
3939 repository : OpenVPN/openvpn
4040 ref : release/2.5
7070 msbuild /m /p:Configuration=${{env.BUILD_CONFIGURATION}} /p:Platform="${{ matrix.plat }}" .
7171
7272 - name : Archive artifacts
73- uses : actions/upload-artifact@v3
73+ uses : actions/upload-artifact@v4
7474 with :
7575 name : openvpn-win-${{ matrix.plat }}
7676 path : |
8282 openvpn3-msvc :
8383 strategy :
8484 matrix :
85- arch : [amd64]
85+ arch : [amd64, amd64_arm64]
86+ include :
87+ - arch : amd64
88+ platform : x64
89+ - arch : amd64_arm64
90+ platform : ARM64
8691
8792 env :
8893 VCPKG_ROOT : ${{ github.workspace }}/openvpn3/vcpkg
96101 contains(github.event.head_commit.message, '[windows-openvpn]') ||
97102 contains(github.event.head_commit.message, '[openvpn]')
98103 steps :
99- - uses : actions/checkout@v3
104+ - uses : actions/checkout@v4
100105
101106 - uses : lukka/get-cmake@latest
102107 - uses : ilammy/msvc-dev-cmd@v1
@@ -105,7 +110,7 @@ jobs:
105110 arch : ${{ matrix.arch }}
106111
107112 - name : ' Get openvpn3'
108- uses : actions/checkout@v3
113+ uses : actions/checkout@v4
109114 with :
110115 repository : amnezia-vpn/openvpn3
111116 ref : win-amezia
@@ -116,12 +121,12 @@ jobs:
116121 run : |
117122 git clone https://github.com/Microsoft/vcpkg.git
118123 ./vcpkg/bootstrap-vcpkg.bat
119- cmake -B build -S . -DCMAKE_TOOLCHAIN_FILE="${{ github.workspace }}/openvpn3/vcpkg/scripts/buildsystems/vcpkg.cmake" -DVCPKG_OVERLAY_PORTS="${{ github.workspace }}/openvpn3/deps/vcpkg-ports"
124+ cmake -B build -S . -A ${{ matrix.platform }} - DCMAKE_TOOLCHAIN_FILE="${{ github.workspace }}/openvpn3/vcpkg/scripts/buildsystems/vcpkg.cmake" -DVCPKG_OVERLAY_PORTS="${{ github.workspace }}/openvpn3/deps/vcpkg-ports"
120125 cmake --build build --config Release --target ovpncli
121126
122- - uses : actions/upload-artifact@v2
127+ - uses : actions/upload-artifact@v4
123128 with :
124- name : openvpn3-win
129+ name : openvpn3-win-${{ matrix.platform }}
125130 path : |
126131 ${{ env.buildDir }}/**/*.exe
127132 ${{ env.buildDir }}/**/*.dll
@@ -138,10 +143,10 @@ jobs:
138143
139144 steps :
140145 - name : Setup | Checkout
141- uses : actions/checkout@v2
146+ uses : actions/checkout@v4
142147
143148 - name : Setup | Artifacts
144- uses : actions/download-artifact@v2
149+ uses : actions/download-artifact@v4
145150
146151 - name : Setup | Checksums
147152 run : for file in $(find ./ -name '*.exe' -or -name '*.dll' ); do openssl dgst -sha256 -r "$file" | awk '{print $1}' > "${file}.sha256"; done
@@ -184,10 +189,10 @@ jobs:
184189
185190 steps :
186191 - name : Setup | Checkout
187- uses : actions/checkout@v2
192+ uses : actions/checkout@v4
188193
189194 - name : Setup | Artifacts
190- uses : actions/download-artifact@v2
195+ uses : actions/download-artifact@v4
191196
192197 - name : Setup | Checksums
193198 run : for file in $(find ./ -name '*.exe' -or -name '*.dll' ); do openssl dgst -sha256 -r "$file" | awk '{print $1}' > "${file}.sha256"; done
@@ -199,7 +204,7 @@ jobs:
199204 uses : svenstaro/upload-release-action@v2
200205 with :
201206 repo_token : ${{ secrets.GITHUB_TOKEN }}
202- file : openvpn3-win.zip
207+ file : openvpn3-win-* .zip
203208 tag : ${{ github.ref }}
204209 overwrite : true
205210 file_glob : true
0 commit comments