Add github workflow for automated build testing #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
name: Linux Build | |
on: | |
push: | |
branches: [ master ] | |
jobs: | |
build: | |
runs-on: ubuntu-24.04 | |
steps: | |
- name: Install tools | |
run: | | |
sudo apt-get -qq update | |
sudo apt-get -qq install git | |
- name: Download framework | |
run: | | |
git clone https://git.gnunet.org/gnunet.git | |
- name: Install dependencies (framework) | |
run: | | |
sudo apt-get -qq update | |
sudo apt-get -qq install automake autoconf autopoint gcc gettext recutils uncrustify yapf3 | |
sudo apt-get -qq install python3-sphinx python3-sphinx-multiversion python3-sphinx-rtd-theme | |
sudo apt-get -qq install libgcrypt20-dev libjansson-dev libsodium-dev libcurl4-gnutls-dev libidn2-dev libunistring-dev libsqlite3-dev libmicrohttpd-dev libltdl-dev | |
- name: Build framework | |
run: | | |
cd gnunet | |
./bootstrap | |
./configure --prefix=/usr --disable-documentation | |
make -j $(nproc) | |
sudo make install | |
cd .. | |
- name: Checkout the current branch | |
uses: actions/checkout@v3 | |
- name: Build library | |
run: | | |
meson setup --prefix=/usr --libdir=lib build | |
meson compile -C build | |
sudo meson install -C build |