-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CI: Add Fedora build & test workflow for GitHub Actions
- Loading branch information
Showing
4 changed files
with
68 additions
and
77 deletions.
There are no files selected for viewing
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file was deleted.
Oops, something went wrong.