From 77c9a058703ffb25ad53b3eaf57a17d296e8b240 Mon Sep 17 00:00:00 2001 From: Colomban Wendling Date: Wed, 8 Nov 2023 16:09:00 +0100 Subject: [PATCH] github actions: Add Debian Testing build --- .github/workflows/build.yml | 68 +++++++++++++++++++++++++++++++++++++ 1 file changed, 68 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index ba54ca9e6..b2924b372 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -145,3 +145,71 @@ jobs: - name: cppcheck run: cppcheck --enable=warning,style,performance,portability,information,missingInclude -i'gtk-layer-shell-build' . + + debian-testing-build: + runs-on: ubuntu-latest + container: debian:testing + + env: + CC: ccache gcc + CXX: ccache g++ + BASE_INSTALL_PATH: ${{github.workspace}}/_install + + steps: + - name: Setup environment + run: | + echo "PATH=${BASE_INSTALL_PATH}/bin:${PATH}" >> "$GITHUB_ENV" + echo "PKG_CONFIG_PATH=${BASE_INSTALL_PATH}/lib/pkgconfig:${PKG_CONFIG_PATH}" >> "$GITHUB_ENV" + + - name: Show environment + run: env | sort + if: ${{ env.DEBUG == '1' }} + + - name: Install dependencies + run: | + apt-get update -qq + apt-get install --assume-yes --no-install-recommends \ + ${BUILD_DEPS} ${LIBRARY_DEPS} + + - uses: actions/checkout@v3 + with: + path: mate-panel + submodules: true + + - name: Checkout mate-desktop + uses: actions/checkout@v3 + with: + repository: mate-desktop/mate-desktop + ref: v1.27.1 + path: mate-desktop + submodules: true + + - name: ccache + uses: hendrikmuhs/ccache-action@v1.2 + + - name: Configure mate-desktop + run: | + cd mate-desktop + NOCONFIGURE=1 ./autogen.sh + { ./configure --prefix="$BASE_INSTALL_PATH" || { cat config.log; exit 1; } ; } + + - name: Build mate-desktop + run: make -C mate-desktop -j ${{ env.JOBS }} + + - name: Install mate-desktop + run: make -C mate-desktop -j ${{ env.JOBS }} install + + - name: Configure + run: | + cd mate-panel + NOCONFIGURE=1 ./autogen.sh + { ./configure || { cat config.log; exit 1; } ; } + + - name: Build + run: make -C mate-panel -j ${{ env.JOBS }} + + - name: Run Tests + run: make -C mate-panel -j ${{ env.JOBS }} check + + - name: Run distcheck + run: make -C mate-panel -j ${{ env.JOBS }} distcheck