diff --git a/.gitlab/issue_templates/Default.md b/.github/issue_templates/Default.md similarity index 100% rename from .gitlab/issue_templates/Default.md rename to .github/issue_templates/Default.md diff --git a/.gitlab/merge_request_templates/Default.md b/.github/merge_request_templates/Default.md similarity index 100% rename from .gitlab/merge_request_templates/Default.md rename to .github/merge_request_templates/Default.md diff --git a/.github/workflows/github-ci.yml b/.github/workflows/github-ci.yml new file mode 100644 index 00000000..8ab73ecc --- /dev/null +++ b/.github/workflows/github-ci.yml @@ -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 diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml deleted file mode 100644 index 4d994466..00000000 --- a/.gitlab-ci.yml +++ /dev/null @@ -1,77 +0,0 @@ -image: fedora:latest - -variables: - 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 - -before_script: - - dnf upgrade -y --nogpgcheck fedora-release fedora-repos* - - dnf update -y && dnf install -y $DEPENDENCIES - - -build_stable: - stage: test - script: - - 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 - - meson compile -C builddir - - meson test -C builddir - - meson install -C builddir - - DESTDIR=$(pwd)/DESTDIR meson install -C builddir - artifacts: - name: 'test logs' - when: 'always' - paths: - - 'builddir/meson-logs/*.txt' - - -pages: - stage: deploy - script: - - meson setup - -D gtk_doc=true - -D man=true - builddir - - meson compile -C builddir polkit-1-doc:custom - - rm -rf public && mkdir public - - cp -r builddir/docs/polkit/html/* public - artifacts: - paths: - - public - rules: - - if: $CI_COMMIT_TAG - - -workflow: - rules: - - if: $CI_PIPELINE_SOURCE == 'merge_request_event' - - if: $CI_PIPELINE_SOURCE == 'push' -