From 97b042cd5484c32b11b223f95adb1c64e53728bb Mon Sep 17 00:00:00 2001 From: Neal Gompa Date: Sun, 8 Sep 2024 21:31:30 +0200 Subject: [PATCH] Add basic GitHub Actions CI This allows us to see when things are working or not in pushes and pull requests. --- .github/workflows/build.yml | 38 +++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 .github/workflows/build.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..ab6e090 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,38 @@ +name: Build + +on: [push, pull_request] + +jobs: + build: + runs-on: ubuntu-latest + + strategy: + matrix: + build-type: ['normal'] + container: + - 'registry.fedoraproject.org/fedora:latest' + - 'registry.fedoraproject.org/fedora:rawhide' + - 'docker.io/library/mageia:cauldron' + fail-fast: false + + container: + image: ${{ matrix.container }} + + - run: dnf --assumeyes install + /usr/bin/cmake + /usr/bin/python3 + python3-yui + python3-manatools + python3-setuptools + python3-libdnf5 + python3-yaml + python3-pyxdg + python3-cairosvg + python3-pillow + python3-pystray + git-core + - uses: actions/checkout@v4 + - name: Configure CMake + run: cmake -S . -B github-build + - name: Build + run: cmake --build github-build