Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CI: Add build & test Fedora workflow for GitHub Actions #1

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.