From: Arvin Schnell Date: Thu, 12 Nov 2020 11:28:40 +0000 (+0100) Subject: - extended GitHub Actions to cover more distributions X-Git-Tag: v0.8.15~20^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F593%2Fhead;p=thirdparty%2Fsnapper.git - extended GitHub Actions to cover more distributions --- diff --git a/.github/workflows/ci-debian.yml b/.github/workflows/ci-debian.yml new file mode 100644 index 00000000..ca3f4aff --- /dev/null +++ b/.github/workflows/ci-debian.yml @@ -0,0 +1,34 @@ +name: CI Debian + +on: [push, pull_request] + +jobs: + Tests: + runs-on: ubuntu-latest + container: debian + + steps: + + - name: Install additional packages + run: apt-get update && apt-get install -y --no-install-recommends acl-dev autoconf automake bzip2 docbook-xsl e2fslibs-dev g++ gettext libboost-dev libboost-system-dev libboost-test-dev libboost-thread-dev libbtrfs-dev libdbus-1-dev libjson-c-dev libmount-dev libpam-dev libtool libxml2-dev libz-dev locales-all make xsltproc + + - name: List installed packages + run: apt list --installed | sort + + - name: Git checkout + uses: actions/checkout@v1 + + - name: Configure + run: make -f Makefile.repo + + - name: Compile + run: make -j 2 + + - name: Install + run: make install + + - name: Run unit tests + run: make -j 2 check VERBOSE=1 + + - name: Make package + run: make package diff --git a/.github/workflows/ci-fedora.yml b/.github/workflows/ci-fedora.yml new file mode 100644 index 00000000..48996a33 --- /dev/null +++ b/.github/workflows/ci-fedora.yml @@ -0,0 +1,34 @@ +name: CI Fedora + +on: [push, pull_request] + +jobs: + Tests: + runs-on: ubuntu-latest + container: fedora + + steps: + + - name: Install additional packages + run: dnf -y install acl autoconf automake boost-devel btrfs-progs-devel bzip2 dbus-devel diffutils docbook-style-xsl e2fsprogs-devel gcc-c++ gettext glibc-langpack-de glibc-langpack-en json-c-devel libacl-devel libmount-devel libtool libxml2-devel libxslt make pam-devel + + - name: List installed packages + run: rpm -qa | sort + + - name: Git checkout + uses: actions/checkout@v1 + + - name: Configure + run: make -f Makefile.repo + + - name: Compile + run: make -j 2 + + - name: Install + run: make install + + - name: Run unit tests + run: make -j 2 check VERBOSE=1 + + - name: Make package + run: make package diff --git a/.github/workflows/ci-leap.yml b/.github/workflows/ci-leap.yml new file mode 100644 index 00000000..0e18385b --- /dev/null +++ b/.github/workflows/ci-leap.yml @@ -0,0 +1,34 @@ +name: CI Leap + +on: [push, pull_request] + +jobs: + Tests: + runs-on: ubuntu-latest + container: opensuse/leap + + steps: + + - name: Install additional packages + run: zypper --non-interactive in --no-recommends autoconf automake bzip2 dbus-1-devel docbook-xsl-stylesheets e2fsprogs-devel gcc-c++ gettext-runtime glibc-locale gzip libacl-devel libboost_system-devel libboost_test-devel libboost_thread-devel libbtrfs-devel libjson-c-devel libmount-devel libtool libxml2-devel libxslt make pam-devel + + - name: List installed packages + run: rpm -qa | sort + + - name: Git checkout + uses: actions/checkout@v1 + + - name: Configure + run: make -f Makefile.repo + + - name: Compile + run: make -j 2 + + - name: Install + run: make install + + - name: Run unit tests + run: make -j 2 check VERBOSE=1 + + - name: Make package + run: make package diff --git a/.github/workflows/ci.yml b/.github/workflows/ci-tumbleweed.yml similarity index 91% rename from .github/workflows/ci.yml rename to .github/workflows/ci-tumbleweed.yml index 102daa75..c82a0313 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci-tumbleweed.yml @@ -1,11 +1,11 @@ -name: CI +name: CI Tumbleweed on: [push, pull_request] jobs: Tests: runs-on: ubuntu-latest - container: registry.opensuse.org/opensuse/tumbleweed:latest + container: opensuse/tumbleweed steps: diff --git a/.github/workflows/ci-ubuntu.yml b/.github/workflows/ci-ubuntu.yml new file mode 100644 index 00000000..b89799fc --- /dev/null +++ b/.github/workflows/ci-ubuntu.yml @@ -0,0 +1,34 @@ +name: CI Ubuntu + +on: [push, pull_request] + +jobs: + Tests: + runs-on: ubuntu-latest + container: ubuntu + + steps: + + - name: Install additional packages + run: apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends acl-dev autoconf automake bzip2 docbook-xsl e2fslibs-dev g++ gettext language-pack-de language-pack-en libboost-dev libboost-system-dev libboost-test-dev libboost-thread-dev libbtrfs-dev libdbus-1-dev libjson-c-dev libmount-dev libpam-dev libtool libxml2-dev libz-dev make xsltproc + + - name: List installed packages + run: apt list --installed | sort + + - name: Git checkout + uses: actions/checkout@v1 + + - name: Configure + run: make -f Makefile.repo + + - name: Compile + run: make -j 2 + + - name: Install + run: make install + + - name: Run unit tests + run: make -j 2 check VERBOSE=1 + + - name: Make package + run: make package