Skip to content

Commit

Permalink
github actions: Add Debian Testing build
Browse files Browse the repository at this point in the history
  • Loading branch information
cwendling committed Nov 8, 2023
1 parent 9c09e27 commit 77c9a05
Showing 1 changed file with 68 additions and 0 deletions.
68 changes: 68 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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/[email protected]

- 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

0 comments on commit 77c9a05

Please sign in to comment.