Skip to content

CI: add initial self-hosted runner #2

CI: add initial self-hosted runner

CI: add initial self-hosted runner #2

Workflow file for this run

name: Setup kdevops
on:
push:
branches:
- '**'
pull_request:
branches:
- '**'
jobs:
setup-and-make:
name: Setup and Run Make Targets
runs-on: ubuntu-latest
strategy:
matrix:
distro_container:
- debian:testing
- fedora:latest
- opensuse/tumbleweed
container: ${{ matrix.distro_container }}
steps:
- name: Document supported kdevops distribution
run: |
echo "Running test on ${{ matrix.distro_container }} container"
uname -a
- name: Install kdevops dependencies
run: |
# Conditional package installation based on the container
if [ "${{ matrix.distro_container }}" = "debian:testing" ]; then
echo "Installing packages for Debian"
apt-get update
apt-get install -y ansible make gcc ncurses-dev bison flex
elif [ "${{ matrix.distro_container }}" = "fedora:latest" ]; then
echo "Installing packages for Fedora"
dnf install -y ansible make gcc ncurses-devel bison flex
elif [ "${{ matrix.distro_container }}" = "opensuse/tumbleweed" ]; then
echo "Installing packages for OpenSUSE"
zypper refresh
zypper install -y ansible make gcc ncurses-devel bison flex
else
echo "Unknown distribution: ${{ matrix.distro_container }}"
exit 1
fi
- name: Checkout repository
uses: actions/checkout@v2
- name: Run make targets
run: |
echo "Running simple make targets on ${{ matrix.distro_container }} environment"
make mrproper