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 dedicated job for documentation pages #139

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

GeorgesStavracas
Copy link
Member

The Fedora jobs build and deploy documentation twice, and that may be a problem.

Use a dedicated workflow with proper a deploy job. This uses the Github Pages deploy action.

The Fedora jobs build and deploy documentation twice, and that may be
a problem.

Use a dedicated workflow with proper a deploy job. This uses the Github
Pages deploy action.
@GeorgesStavracas
Copy link
Member Author

The Source setting in Settings > Pages must be changed to "GitHub Actions" before merging this

@GeorgesStavracas GeorgesStavracas added this to the 0.8 milestone Jan 12, 2024
uses: actions/checkout@v3

- name: Configure libportal
run: meson setup --prefix=/usr builddir -Dbackend-gtk3=enabled -Dbackend-gtk4=enabled -Dbackend-qt5=enabled -Dbackend-qt6=enabled
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think you can disable all backends as they wouldn't affect the docs.

run: meson setup --prefix=/usr builddir -Dbackend-gtk3=enabled -Dbackend-gtk4=enabled -Dbackend-qt5=enabled -Dbackend-qt6=enabled

- name: Build libportal
run: ninja -C builddir
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
run: ninja -C builddir
run: ninja -C builddir doc/libportal-1

Only build what is needed.

uses: actions/checkout@v3

- name: Configure libportal
run: meson setup --prefix=/usr builddir -Dbackend-gtk3=enabled -Dbackend-gtk4=enabled -Dbackend-qt5=enabled -Dbackend-qt6=enabled
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
run: meson setup --prefix=/usr builddir -Dbackend-gtk3=enabled -Dbackend-gtk4=enabled -Dbackend-qt5=enabled -Dbackend-qt6=enabled
run: meson setup --prefix=/usr builddir -Dtests=false -Dvapi=false

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants