Skip to content

Initial enable github workflow and remove travis #9

Initial enable github workflow and remove travis

Initial enable github workflow and remove travis #9

Workflow file for this run

---
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