2024-06-15 18:31:25 +03:00
|
|
|
name: Linux
|
2024-04-07 18:16:45 +03:00
|
|
|
|
2024-08-31 08:58:49 +03:00
|
|
|
on:
|
|
|
|
push:
|
|
|
|
pull_request:
|
2024-04-07 18:16:45 +03:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
build_and_test:
|
2024-06-15 18:31:25 +03:00
|
|
|
name: Build
|
2024-04-07 18:16:45 +03:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2024-06-15 18:31:25 +03:00
|
|
|
|
2024-08-31 08:58:49 +03:00
|
|
|
- name: Checkout
|
|
|
|
uses: actions/checkout@v4
|
|
|
|
with:
|
|
|
|
submodules: true
|
2024-04-07 18:16:45 +03:00
|
|
|
|
2024-08-31 08:58:49 +03:00
|
|
|
- name: Install dependencies
|
|
|
|
run: |
|
|
|
|
sudo apt-get update
|
|
|
|
sudo apt-get -y install cmake gcc g++ ninja-build libncurses5-dev libreadline-dev libsodium-dev libssl-dev make zlib1g-dev liblz4-dev libnl-genl-3-dev
|
2024-04-07 18:16:45 +03:00
|
|
|
|
2024-08-31 08:58:49 +03:00
|
|
|
- name: Build
|
|
|
|
run: |
|
|
|
|
mkdir build
|
|
|
|
cd build
|
|
|
|
cmake -G "Ninja" -DCMAKE_BUILD_TYPE=RelWithDebInfo ..
|
|
|
|
cmake --build .
|
2024-04-07 18:16:45 +03:00
|
|
|
|
2024-08-31 08:58:49 +03:00
|
|
|
- name: Build deb packages
|
|
|
|
run: |
|
|
|
|
cd build
|
|
|
|
cpack -C Release -G DEB
|
2024-04-07 18:16:45 +03:00
|
|
|
|
2024-08-31 08:58:49 +03:00
|
|
|
- name: Test
|
|
|
|
run: |
|
|
|
|
.ci/appveyor-deb-install-test.sh
|
|
|
|
sudo apt-get -y install autoconf libtool liblzo2-dev libpam-dev fping unzip libcap-ng-dev # To build OpenVPN
|
|
|
|
sudo .ci/start-se-openvpn.sh
|
|
|
|
sudo .ci/run-openvpn-tests.sh
|