[gha] add ubuntu static build

Signed-off-by: R4SAS <r4sas@i2pmail.org>
This commit is contained in:
R4SAS 2023-01-22 19:03:49 +03:00
parent 067fb45a25
commit db2364e9aa
No known key found for this signature in database
GPG key ID: 66F6C87B98EBCFE2
2 changed files with 25 additions and 19 deletions

View file

@ -38,3 +38,20 @@ jobs:
cd build
cmake -DWITH_UPNP=${{ matrix.with_upnp }} .
make -j3
build-static:
name: Static build with UPnP
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@v2
- name: install packages
run: |
sudo add-apt-repository ppa:mhier/libboost-latest
sudo apt-get update
sudo apt-get install build-essential libboost1.74-dev libminiupnpc-dev libssl-dev zlib1g-dev
- name: build application
run: make DEBUG=no USE_STATIC=yes USE_UPNP=yes -j`nproc`
- name: Upload artifacts
uses: actions/upload-artifact@v2
with:
name: i2pd-static-linux-x86_64
path: i2pd