2020-10-27 22:34:38 +03:00
|
|
|
name: Build on Ubuntu
|
2020-10-14 07:20:26 +03:00
|
|
|
|
2024-02-25 02:35:56 +03:00
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- '*'
|
|
|
|
paths:
|
|
|
|
- .github/workflows/build.yml
|
|
|
|
- build/CMakeLists.txt
|
|
|
|
- build/cmake_modules/**
|
|
|
|
- daemon/**
|
|
|
|
- i18n/**
|
|
|
|
- libi2pd/**
|
|
|
|
- libi2pd_client/**
|
|
|
|
- Makefile
|
|
|
|
- Makefile.linux
|
|
|
|
tags:
|
|
|
|
- '*'
|
|
|
|
pull_request:
|
|
|
|
branches:
|
|
|
|
- '*'
|
2020-10-14 07:20:26 +03:00
|
|
|
|
|
|
|
jobs:
|
2021-05-26 13:21:15 +03:00
|
|
|
build-make:
|
|
|
|
name: Make with USE_UPNP=${{ matrix.with_upnp }}
|
2023-02-26 23:38:23 +03:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
2020-10-14 07:20:26 +03:00
|
|
|
strategy:
|
|
|
|
fail-fast: true
|
|
|
|
matrix:
|
|
|
|
with_upnp: ['yes', 'no']
|
2023-02-26 23:38:23 +03:00
|
|
|
|
2020-10-14 07:20:26 +03:00
|
|
|
steps:
|
2023-02-26 23:38:23 +03:00
|
|
|
- name: Checkout
|
2024-04-27 16:49:48 +03:00
|
|
|
uses: actions/checkout@v4
|
2023-02-26 23:38:23 +03:00
|
|
|
|
2020-10-14 07:20:26 +03:00
|
|
|
- name: install packages
|
2020-10-14 07:36:16 +03:00
|
|
|
run: |
|
|
|
|
sudo apt-get update
|
2023-02-26 23:38:23 +03:00
|
|
|
sudo apt-get install build-essential libboost-all-dev libminiupnpc-dev libssl-dev zlib1g-dev
|
|
|
|
|
2020-10-14 07:20:26 +03:00
|
|
|
- name: build application
|
2020-11-15 01:31:20 +03:00
|
|
|
run: make USE_UPNP=${{ matrix.with_upnp }} -j3
|
2023-02-26 23:38:23 +03:00
|
|
|
|
2021-05-26 13:21:15 +03:00
|
|
|
build-cmake:
|
|
|
|
name: CMake with -DWITH_UPNP=${{ matrix.with_upnp }}
|
2023-02-26 23:38:23 +03:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
2021-05-26 13:21:15 +03:00
|
|
|
strategy:
|
|
|
|
fail-fast: true
|
|
|
|
matrix:
|
|
|
|
with_upnp: ['ON', 'OFF']
|
2023-02-26 23:38:23 +03:00
|
|
|
|
2021-05-26 13:21:15 +03:00
|
|
|
steps:
|
2023-02-26 23:38:23 +03:00
|
|
|
- name: Checkout
|
2024-04-27 16:49:48 +03:00
|
|
|
uses: actions/checkout@v4
|
2023-02-26 23:38:23 +03:00
|
|
|
|
2021-05-26 13:21:15 +03:00
|
|
|
- name: install packages
|
|
|
|
run: |
|
|
|
|
sudo apt-get update
|
2023-02-26 23:38:23 +03:00
|
|
|
sudo apt-get install build-essential cmake libboost-all-dev libminiupnpc-dev libssl-dev zlib1g-dev
|
|
|
|
|
2021-05-26 13:21:15 +03:00
|
|
|
- name: build application
|
|
|
|
run: |
|
|
|
|
cd build
|
|
|
|
cmake -DWITH_UPNP=${{ matrix.with_upnp }} .
|
|
|
|
make -j3
|