libgnunetchat

library for GNUnet Messenger
Log | Files | Refs | README | LICENSE

linux.yml (1723B)


      1 name: Linux Build
      2 
      3 on:
      4   push:
      5     branches: [ master ]
      6 
      7 jobs:
      8   build:
      9     runs-on: ubuntu-24.04
     10     steps:
     11       - name: Install tools
     12         run: |
     13           sudo apt-get -qq update
     14           sudo apt-get -qq install git
     15 
     16       - name: Download framework
     17         run: |
     18           git clone https://git.gnunet.org/gnunet.git
     19 
     20       - name: Install dependencies (framework)
     21         run: |
     22           sudo apt-get -qq install meson ninja-build gcc gettext recutils uncrustify yapf3
     23           sudo apt-get -qq install python3-sphinx python3-sphinx-multiversion python3-sphinx-rtd-theme
     24           sudo apt-get -qq install libgcrypt20-dev libjansson-dev libsodium-dev libcurl4-gnutls-dev libidn2-dev libunistring-dev libsqlite3-dev libmicrohttpd-dev libltdl-dev
     25 
     26       - name: Build framework
     27         run: |
     28           cd gnunet
     29           ./bootstrap
     30           meson setup --prefix=/usr --libdir=lib build
     31           meson compile -C build
     32           sudo meson install -C build
     33           cd ..
     34 
     35       - name: Checkout the current branch
     36         uses: actions/checkout@v3
     37 
     38       - name: Install dependencies (library)
     39         run: |
     40           sudo apt-get -qq install ninja-build meson gcc
     41 
     42       - name: Build library
     43         run: |
     44           meson setup --prefix=/usr --libdir=lib build
     45           meson compile -C build
     46 
     47       - name: Install dependencies (testing)
     48         run: |
     49           sudo apt-get -qq install check
     50 
     51       - name: Rebuild library
     52         run: |
     53           meson setup --reconfigure --prefix=/usr --libdir=lib build
     54           meson compile -C build
     55 
     56       - name: Test library
     57         run: |
     58           meson test -C build
     59 
     60       - name: Install library
     61         run: |
     62           sudo meson install -C build