forked from strfry/peervpn
-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #14 from Kuebler-IT/build_pipelines
Initial enable github workflow and remove travis
- Loading branch information
Showing
12 changed files
with
320 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
--- | ||
name: Build on Ubuntu and macOS | ||
|
||
on: | ||
push: | ||
branches: [ "master" ] | ||
pull_request: | ||
branches: [ "master" ] | ||
|
||
jobs: | ||
build: | ||
runs-on: ${{ matrix.os }} | ||
|
||
strategy: | ||
# Set fail-fast to false to ensure that feedback is delivered for all matrix combinations. Consider changing this to true when your workflow is stable. | ||
fail-fast: false | ||
|
||
# Set up a matrix to run the following 3 configurations: | ||
# 1. <MaxOS, Release, latest GCC compiler toolchain on the default runner image, default generator> | ||
# 2. <Linux, Release, latest GCC compiler toolchain on the default runner image, default generator> | ||
# | ||
# To add more build types (Release, Debug, RelWithDebInfo, etc.) customize the build_type list. | ||
matrix: | ||
os: [ubuntu-latest, macos-latest] | ||
build_type: [Release] | ||
c_compiler: [gcc] | ||
include: | ||
- os: ubuntu-latest | ||
c_compiler: gcc | ||
cpp_compiler: g++ | ||
- os: macos-latest | ||
c_compiler: gcc | ||
cpp_compiler: g++ | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Install dependencies on MacOS | ||
if: matrix.os == 'macos-latest' | ||
run: | | ||
brew update | ||
brew install autoconf automake libressl | ||
- name: Install dependencies on Ubuntu | ||
if: matrix.os == 'ubuntu-latest' | ||
run: | | ||
sudo apt-get update | ||
sudo apt-get install libssl-dev | ||
- name: Configure Build | ||
run: ./autogen.sh && ./configure | ||
|
||
- name: Compile the Build | ||
run: make | ||
|
||
- name: Test | ||
run: src/meshvpn | head -1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,77 @@ | ||
# For most projects, this workflow file will not need changing; you simply need | ||
# to commit it to your repository. | ||
# | ||
# You may wish to alter this file to override the set of languages analyzed, | ||
# or to provide custom queries or build logic. | ||
# | ||
# ******** NOTE ******** | ||
# We have attempted to detect the languages in your repository. Please check | ||
# the `language` matrix defined below to confirm you have the correct set of | ||
# supported CodeQL languages. | ||
# | ||
name: "CodeQL" | ||
|
||
on: | ||
push: | ||
branches: [ "master" ] | ||
pull_request: | ||
# The branches below must be a subset of the branches above | ||
branches: [ "master" ] | ||
schedule: | ||
- cron: '21 21 * * 2' | ||
|
||
jobs: | ||
analyze: | ||
name: Analyze | ||
# Runner size impacts CodeQL analysis time. To learn more, please see: | ||
# - https://gh.io/recommended-hardware-resources-for-running-codeql | ||
# - https://gh.io/supported-runners-and-hardware-resources | ||
# - https://gh.io/using-larger-runners | ||
# Consider using larger runners for possible analysis time improvements. | ||
runs-on: ${{ (matrix.language == 'swift' && 'macos-latest') || 'ubuntu-latest' }} | ||
timeout-minutes: ${{ (matrix.language == 'swift' && 120) || 360 }} | ||
permissions: | ||
actions: read | ||
contents: read | ||
security-events: write | ||
|
||
strategy: | ||
fail-fast: false | ||
matrix: | ||
language: [ 'c-cpp' ] | ||
# CodeQL supports [ 'c-cpp', 'csharp', 'go', 'java-kotlin', 'javascript-typescript', 'python', 'ruby', 'swift' ] | ||
# Use only 'java-kotlin' to analyze code written in Java, Kotlin or both | ||
# Use only 'javascript-typescript' to analyze code written in JavaScript, TypeScript or both | ||
# Learn more about CodeQL language support at https://aka.ms/codeql-docs/language-support | ||
|
||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v3 | ||
|
||
# Initializes the CodeQL tools for scanning. | ||
- name: Initialize CodeQL | ||
uses: github/codeql-action/init@v2 | ||
with: | ||
languages: ${{ matrix.language }} | ||
# If you wish to specify custom queries, you can do so here or in a config file. | ||
# By default, queries listed here will override any specified in a config file. | ||
# Prefix the list here with "+" to use these queries and those in the config file. | ||
|
||
# For more details on CodeQL's query packs, refer to: https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs | ||
# queries: security-extended,security-and-quality | ||
|
||
|
||
# ℹ️ Command-line programs to run using the OS shell. | ||
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun | ||
|
||
# If the Autobuild fails above, remove it and uncomment the following three lines. | ||
# modify them (or add more) to build your code if your project, please refer to the EXAMPLE below for guidance. | ||
|
||
- run: | | ||
echo "Run, Build Application using script" | ||
./autogen.sh && ./configure && make | ||
- name: Perform CodeQL Analysis | ||
uses: github/codeql-action/analyze@v2 | ||
with: | ||
category: "/language:${{matrix.language}}" |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,15 +22,15 @@ dnl Process this file with autoconf to produce a configure script. | |
|
||
AC_PREREQ([2.69]) | ||
|
||
AC_INIT([MeshVPN], [1.0.0-alpha.1], [[email protected]]) | ||
AC_INIT([MeshVPN], [1.1.0-alpha.1], [[email protected]]) | ||
|
||
# Platform specific settings | ||
AC_CANONICAL_HOST | ||
case $host_os in | ||
darwin* ) | ||
# Do something specific for mac | ||
LDFLAGS="-L/usr/local/opt/openssl/lib $LDFLAGS" | ||
CPPFLAGS="-I/usr/local/opt/openssl/include $CPPFLAGS" | ||
LDFLAGS="-L/usr/local/opt/libressl/lib $LDFLAGS" | ||
CPPFLAGS="-I/usr/local/opt/libressl/include $CPPFLAGS" | ||
;; | ||
linux*) | ||
# Do something specific for linux | ||
|
@@ -55,7 +55,8 @@ AC_PROG_INSTALL | |
|
||
# Checks for libraries. | ||
AC_CHECK_LIB([z], [compress]) | ||
AC_CHECK_LIB([ssl], [SSL_library_init]) | ||
AC_CHECK_LIB([ssl], [SSL_library_init]) # old openssl or compatible library like libressl | ||
AC_CHECK_LIB([ssl], [OPENSSL_init_ssl]) # we have openssl also newer version | ||
AC_CHECK_LIB([crypto], [ENGINE_init]) | ||
AC_CHECK_LIB([seccomp], [seccomp_init]) | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
/* | ||
* MeshVPN - A open source peer-to-peer VPN (forked from PeerVPN) | ||
* | ||
* Copyright (C) 2012-2016 Tobias Volk <[email protected]> | ||
* Copyright (C) 2016 Hideman Developer <[email protected]> | ||
* Copyright (C) 2017 Benjamin Kübler <[email protected]> | ||
* | ||
* This program is free software: you can redistribute it and/or modify | ||
* it under the terms of the GNU General Public License as published by | ||
* the Free Software Foundation, either version 3 of the License, or | ||
* (at your option) any later version. | ||
* | ||
* This program is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* GNU General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU General Public License | ||
* along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
*/ | ||
|
||
#ifndef F_GLOBALS_C | ||
#define F_GLOBALS_C | ||
|
||
#include "io.h" | ||
#include "p2p.h" | ||
#include "ethernet.h" | ||
|
||
struct s_io_state iostate; | ||
struct s_p2psec * g_p2psec; | ||
int g_mainloop; | ||
|
||
struct s_switch_state g_switchstate; | ||
struct s_ndp6_state g_ndpstate; | ||
struct s_virtserv_state g_virtserv; | ||
|
||
int g_enableconsole; | ||
int g_enableeth; | ||
int g_enablendpcache; | ||
int g_enablevirtserv; | ||
int g_enableengines; | ||
|
||
#endif |
Oops, something went wrong.