Linux Build Backend #5
This file contains hidden or 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 Backend | |
| on: | |
| workflow_dispatch: | |
| jobs: | |
| build: | |
| strategy: | |
| matrix: | |
| os: | |
| - ubuntu-22.04 | |
| - ubuntu-24.04 | |
| - ubuntu-24.04-arm | |
| runs-on: ${{ matrix.os }} | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install Repository | |
| run: | | |
| sudo mkdir -p /etc/apt/keyrings && curl -fsSL https://packages.openvpn.net/packages-repo.gpg | sudo tee /etc/apt/keyrings/openvpn.asc | |
| DISTRO=$(lsb_release -c -s) | |
| echo "deb [signed-by=/etc/apt/keyrings/openvpn.asc] https://packages.openvpn.net/openvpn3/debian $DISTRO main" | sudo tee /etc/apt/sources.list.d/openvpn-packages.list | |
| - name: Install dependencies | |
| run: | | |
| sudo apt update | |
| sudo apt install build-essential git pkg-config meson libglib2.0-dev \ | |
| libjsoncpp-dev uuid-dev liblz4-dev libcap-ng-dev \ | |
| libxml2-utils python3-minimal python3-dbus \ | |
| python3-docutils python3-jinja2 libxml2-utils \ | |
| libtinyxml2-dev policykit-1 libsystemd-dev \ | |
| python3-systemd libssl-dev libgdbuspp-dev \ | |
| libdbus-1-dev | |
| sudo apt install libnl-3-dev libnl-genl-3-dev protobuf-compiler libprotobuf-dev | |
| - name: Build | |
| run: | | |
| ./bootstrap.sh | |
| meson setup --prefix=/usr _builddir | |
| meson compile -C _builddir | |
| DESTDIR=$PWD/pkgroot meson install -C _builddir | |
| - name: Upload artifact | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: backend-build-${{ matrix.os }} | |
| path: pkgroot |