Hopefully fix missing dependencies in workflow #21
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 library | |
run: | | |
git clone https://git.gnunet.org/libgnunetchat.git | |
- name: Install dependencies (application) | |
run: | | |
sudo apt-get -qq update | |
sudo apt-get -qq install ninja-build meson gcc | |
- name: Build library | |
run: | | |
cd libgnunetchat | |
meson setup --prefix=/usr --libdir=lib build | |
meson compile -C build | |
sudo meson install -C build | |
cd .. | |
- name: Checkout the current branch | |
uses: actions/checkout@v3 | |
- name: Load submodules | |
run: | | |
git submodule init | |
git submodule update | |
- name: Install dependencies (application) | |
run: | | |
sudo apt-get -qq update | |
sudo apt-get -qq install ninja-build meson gcc | |
sudo apt-get -qq install libqrencode-dev libzbar-dev libgstreamer1.0-dev libgstreamer-plugins-base1.0-dev libpipewire-0.3-dev libportal-dev libportal-gtk3-dev libhandy-1-dev libnotify-dev | |
- name: Build application | |
run: | | |
meson setup --prefix=/usr --libdir=lib build | |
meson compile -C build | |
sudo meson install -C build |