Skip to content

Commit

Permalink
CI: Add Fedora build & test workflow for GitHub Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
vmihalko committed Sep 5, 2023
1 parent 1d1cdb3 commit f90d206
Show file tree
Hide file tree
Showing 4 changed files with 68 additions and 77 deletions.
File renamed without changes.
File renamed without changes.
68 changes: 68 additions & 0 deletions .github/workflows/github-ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
name: Fedora CI build

on:
push:
branches: [main]
pull_request:
branches: [main]

jobs:
build:
runs-on: ubuntu-latest
container: registry.fedoraproject.org/fedora:latest
env:
DEPENDENCIES: gcc
gcc-c++
libtool
autoconf
automake
gettext
gettext-devel
gtk-doc
gobject-introspection-devel
make
libxslt
pkgconfig(gio-2.0)
pkgconfig(mozjs-91)
pkgconfig(duktape)
expat-devel
pkgconfig(libsystemd)
pkgconfig(systemd)
pam-devel
python3-dbusmock
meson
git
dbus-devel
steps:
- name: Checkout Git Repository
uses: actions/checkout@v3
- name: Install packages required for build
run: |
dnf upgrade -y --nogpgcheck fedora-release fedora-repos* && \
dnf update -y && dnf install -y $DEPENDENCIES
- name: meson setup
run: |
meson setup \
-D authfw=pam \
-D examples=true \
-D gtk_doc=true \
-D introspection=true \
-D man=true \
-D session_tracking=libsystemd-login \
-D tests=true \
-D cpp_args="-D_FORTIFY_SOURCE=2" \
builddir
- name: meson compile
run: meson compile -C builddir
- name: meson test
run: meson test -C builddir
- name: meson install
run: meson install -C builddir
- name: meson DESTDIR install
run: DESTDIR=$(pwd)/DESTDIR meson install -C builddir
- name: test logs
if: always()
uses: actions/upload-artifact@v3
with:
name: meson-logs
path: builddir/meson-logs/*.txt
77 changes: 0 additions & 77 deletions .gitlab-ci.yml

This file was deleted.

0 comments on commit f90d206

Please sign in to comment.