mirror of
https://github.com/SoftEtherVPN/SoftEtherVPN.git
synced 2024-11-24 18:39:53 +03:00
CI: Switch from Ubuntu 16.04 to 18.04, install libsodium
This commit: - Switches from Ubuntu 16.04 to 18.04 for all builds, mainly in order to use a more recent version of libsodium. - Installs libsodium, used by the WireGuard implementation.
This commit is contained in:
parent
ef24ff74c8
commit
2dab282eb2
@ -1,8 +1,6 @@
|
|||||||
version: '{build}'
|
version: '{build}'
|
||||||
|
|
||||||
image:
|
image: Ubuntu1804
|
||||||
- Ubuntu1604
|
|
||||||
- Ubuntu1804
|
|
||||||
|
|
||||||
configuration: Release
|
configuration: Release
|
||||||
|
|
||||||
@ -19,38 +17,20 @@ skip_commits:
|
|||||||
init:
|
init:
|
||||||
- ps: Update-AppveyorBuild -Version "build-$env:APPVEYOR_BUILD_NUMBER-$($env:APPVEYOR_REPO_COMMIT.substring(0,7))"
|
- ps: Update-AppveyorBuild -Version "build-$env:APPVEYOR_BUILD_NUMBER-$($env:APPVEYOR_REPO_COMMIT.substring(0,7))"
|
||||||
|
|
||||||
install: git submodule update --init --recursive
|
install:
|
||||||
|
- sudo apt-get -y install libsodium-dev
|
||||||
for:
|
before_build:
|
||||||
-
|
- sh: "if [ ${APPVEYOR_REPO_TAG} == \"true\" ]; then .ci/appveyor-create-release-tarball.sh\nfi"
|
||||||
matrix:
|
- git submodule update --init --recursive
|
||||||
only:
|
- ./configure
|
||||||
- image: Ubuntu1604
|
build_script:
|
||||||
before_build:
|
- make package -C build -j $(nproc || sysctl -n hw.ncpu || echo 4)
|
||||||
- ./configure
|
- .ci/memory-leak-test.sh
|
||||||
build_script:
|
test_script:
|
||||||
- make package -C build -j $(nproc || sysctl -n hw.ncpu || echo 4)
|
- .ci/appveyor-deb-install-test.sh
|
||||||
test_script:
|
- sudo apt-get update && sudo apt-get -y install autoconf libtool liblzo2-dev libpam-dev fping unzip # openvpn build deps
|
||||||
- .ci/appveyor-deb-install-test.sh
|
- sudo .ci/start-se-openvpn.sh
|
||||||
- sudo apt-get update && sudo apt-get -y install autoconf libtool liblzo2-dev libpam-dev fping unzip # openvpn build deps
|
- sudo .ci/run-openvpn-tests.sh
|
||||||
- sudo .ci/start-se-openvpn.sh
|
|
||||||
- sudo .ci/run-openvpn-tests.sh
|
|
||||||
|
|
||||||
-
|
|
||||||
matrix:
|
|
||||||
only:
|
|
||||||
- image: Ubuntu1804
|
|
||||||
before_build:
|
|
||||||
- sh: "if [ ${APPVEYOR_REPO_TAG} == \"true\" ]; then .ci/appveyor-create-release-tarball.sh\nfi"
|
|
||||||
- ./configure
|
|
||||||
build_script:
|
|
||||||
- make package -C build -j $(nproc || sysctl -n hw.ncpu || echo 4)
|
|
||||||
- .ci/memory-leak-test.sh
|
|
||||||
test_script:
|
|
||||||
- .ci/appveyor-deb-install-test.sh
|
|
||||||
- sudo apt-get update && sudo apt-get -y install autoconf libtool liblzo2-dev libpam-dev fping unzip # openvpn build deps
|
|
||||||
- sudo .ci/start-se-openvpn.sh
|
|
||||||
- sudo .ci/run-openvpn-tests.sh
|
|
||||||
|
|
||||||
deploy:
|
deploy:
|
||||||
description: 'automatic release'
|
description: 'automatic release'
|
||||||
|
@ -2,9 +2,9 @@ jobs:
|
|||||||
- job: ubuntu_x86_64
|
- job: ubuntu_x86_64
|
||||||
displayName: 'Ubuntu (x86_64)'
|
displayName: 'Ubuntu (x86_64)'
|
||||||
pool:
|
pool:
|
||||||
vmImage: ubuntu-16.04
|
vmImage: ubuntu-18.04
|
||||||
steps:
|
steps:
|
||||||
- script: sudo apt-get -y install cmake gcc g++ ninja-build libncurses5-dev libreadline-dev libssl-dev make zlib1g-dev
|
- script: sudo apt update && sudo apt-get -y install cmake gcc g++ ninja-build libncurses5-dev libreadline-dev libsodium-dev libssl-dev make zlib1g-dev
|
||||||
displayName: 'Prepare environment'
|
displayName: 'Prepare environment'
|
||||||
- script: "$(Build.SourcesDirectory)/.ci/azure-pipelines/linux_build.sh"
|
- script: "$(Build.SourcesDirectory)/.ci/azure-pipelines/linux_build.sh"
|
||||||
env:
|
env:
|
||||||
|
@ -3,7 +3,7 @@ jobs:
|
|||||||
pool:
|
pool:
|
||||||
vmImage: macOS-latest
|
vmImage: macOS-latest
|
||||||
steps:
|
steps:
|
||||||
- script: brew install cmake ninja ncurses readline openssl zlib
|
- script: brew install pkg-config cmake ninja ncurses readline libsodium openssl zlib
|
||||||
displayName: 'Prepare environment'
|
displayName: 'Prepare environment'
|
||||||
- script: '$(Build.SourcesDirectory)/.ci/azure-pipelines/macos_build.sh'
|
- script: '$(Build.SourcesDirectory)/.ci/azure-pipelines/macos_build.sh'
|
||||||
env:
|
env:
|
||||||
|
@ -15,7 +15,7 @@ steps:
|
|||||||
path: 'C:/vcpkg/installed'
|
path: 'C:/vcpkg/installed'
|
||||||
displayName: 'Environment storage'
|
displayName: 'Environment storage'
|
||||||
- script: |
|
- script: |
|
||||||
vcpkg install openssl zlib --triplet ${{parameters.vcpkgTriplet}}
|
vcpkg install libsodium openssl zlib --triplet ${{parameters.vcpkgTriplet}}
|
||||||
workingDirectory: C:/vcpkg
|
workingDirectory: C:/vcpkg
|
||||||
displayName: 'Prepare environment'
|
displayName: 'Prepare environment'
|
||||||
- script: '$(Build.SourcesDirectory)/.ci/azure-pipelines/windows_build.bat'
|
- script: '$(Build.SourcesDirectory)/.ci/azure-pipelines/windows_build.bat'
|
||||||
|
@ -13,7 +13,7 @@ FreeBSD_task:
|
|||||||
freebsd_instance:
|
freebsd_instance:
|
||||||
image_family: freebsd-12-1
|
image_family: freebsd-12-1
|
||||||
prepare_script:
|
prepare_script:
|
||||||
- pkg install -y cmake git $SSL
|
- pkg install -y pkgconf cmake git libsodium $SSL
|
||||||
- git submodule update --init --recursive
|
- git submodule update --init --recursive
|
||||||
configure_script:
|
configure_script:
|
||||||
- ./configure
|
- ./configure
|
||||||
|
@ -9,7 +9,7 @@
|
|||||||
- .cirrus.yml
|
- .cirrus.yml
|
||||||
before_script:
|
before_script:
|
||||||
- REPOSITORY="$PWD" && cd ..
|
- REPOSITORY="$PWD" && cd ..
|
||||||
- apt-get update && apt-get install -y dpkg-dev wget g++ gcc libncurses5-dev libreadline-dev libssl-dev make zlib1g-dev git file
|
- apt-get update && apt-get install -y dpkg-dev wget g++ gcc libncurses5-dev libreadline-dev libsodium-dev libssl-dev make zlib1g-dev git file
|
||||||
- wget https://cmake.org/files/v${CMAKE_VERSION%.*}/cmake-${CMAKE_VERSION}.tar.gz && tar -xzf cmake-${CMAKE_VERSION}.tar.gz
|
- wget https://cmake.org/files/v${CMAKE_VERSION%.*}/cmake-${CMAKE_VERSION}.tar.gz && tar -xzf cmake-${CMAKE_VERSION}.tar.gz
|
||||||
- cd cmake-${CMAKE_VERSION} && ./bootstrap && make install
|
- cd cmake-${CMAKE_VERSION} && ./bootstrap && make install
|
||||||
- cd "$REPOSITORY" && git submodule update --init --recursive
|
- cd "$REPOSITORY" && git submodule update --init --recursive
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
sudo: required
|
sudo: required
|
||||||
dist: xenial
|
dist: bionic
|
||||||
|
|
||||||
language: c
|
language: c
|
||||||
|
|
||||||
@ -20,7 +20,8 @@ matrix:
|
|||||||
os: linux
|
os: linux
|
||||||
compiler: gcc
|
compiler: gcc
|
||||||
- env: OPENSSL_VERSION="1.1.1c" LABEL="linux-ppc64le" CMAKE_VERSION="3.9.6"
|
- env: OPENSSL_VERSION="1.1.1c" LABEL="linux-ppc64le" CMAKE_VERSION="3.9.6"
|
||||||
os: linux-ppc64le
|
arch: ppc64le
|
||||||
|
os: linux
|
||||||
compiler: gcc
|
compiler: gcc
|
||||||
install:
|
install:
|
||||||
- wget https://cmake.org/files/v${CMAKE_VERSION%.*}/cmake-${CMAKE_VERSION}.tar.gz && tar -xzf cmake-${CMAKE_VERSION}.tar.gz
|
- wget https://cmake.org/files/v${CMAKE_VERSION%.*}/cmake-${CMAKE_VERSION}.tar.gz && tar -xzf cmake-${CMAKE_VERSION}.tar.gz
|
||||||
@ -35,6 +36,7 @@ matrix:
|
|||||||
os: linux
|
os: linux
|
||||||
compiler: gcc
|
compiler: gcc
|
||||||
before_install:
|
before_install:
|
||||||
|
- sudo apt-get -y install libsodium-dev
|
||||||
- bash .ci/build-libressl.sh > build-deps.log 2>&1 || (cat build-deps.log && exit 1)
|
- bash .ci/build-libressl.sh > build-deps.log 2>&1 || (cat build-deps.log && exit 1)
|
||||||
- env: LABEL="check stb files"
|
- env: LABEL="check stb files"
|
||||||
os: linux
|
os: linux
|
||||||
@ -49,7 +51,7 @@ matrix:
|
|||||||
- os: osx
|
- os: osx
|
||||||
compiler: clang
|
compiler: clang
|
||||||
before_install:
|
before_install:
|
||||||
- true
|
- brew install libsodium
|
||||||
script:
|
script:
|
||||||
- ./configure
|
- ./configure
|
||||||
- make -C build
|
- make -C build
|
||||||
@ -62,6 +64,7 @@ cache:
|
|||||||
- ${HOME}/opt
|
- ${HOME}/opt
|
||||||
|
|
||||||
before_install:
|
before_install:
|
||||||
|
- sudo apt-get -y install libsodium-dev
|
||||||
- bash .ci/build-openssl.sh > build-deps.log 2>&1 || (cat build-deps.log && exit 1)
|
- bash .ci/build-openssl.sh > build-deps.log 2>&1 || (cat build-deps.log && exit 1)
|
||||||
|
|
||||||
script:
|
script:
|
||||||
|
Loading…
Reference in New Issue
Block a user