23 Commits

Author SHA1 Message Date
tytan652
49c20c6cc1 CI: Fix Flatpak releases
Add a job where the tag is checked if it is valid, it also checks if the
release should be published to Flathub beta and/or Flathub by
dynamically setting the matrix.
2022-07-12 14:13:16 -04:00
tytan652
3b3b45038f CI: Fix git usage inside Flatpak action container
This fix the lack of hash in the Flatpak artifact filename.
2022-06-27 18:08:59 -04:00
tytan652
bf6001939b CI: Use manifest hash as Flatpak cache key
https://github.com/bilelmoussaoui/flatpak-github-actions/issues/80
This issue is preventing the removal of the cache-key in the actions
inputs to use the default cache key.
2022-05-03 13:08:19 -04:00
cg2121
6bee92d054 CI: Use 9-character short hashes in artifact names
Hardcode short hash length to 9 characters in CI and packaging scripts.
It is not guaranteed that short hashes are the same length across
different platforms or different versions of git. This caused problems
with upload/download action names, as the hashes sometimes didn't match.

Fix the download artifact name in the Windows installer job and the
macOS notarization job to prevent them from failing due to a name
mismatch.
2022-04-12 14:21:13 -04:00
Ryan Foster
2f974da551 CI: Update GitHub Actions
Update all of our GitHub Actions to the latest versions. Notably, the
update to actions/cache gives support for the 10GB GitHub Actions cache,
and the updates for the other first-party actions are required for
future M1 runner support.
2022-03-21 13:46:40 -04:00
PatTheMav
8fba906be4
CI: Add necessary build system changes for universal and M1 builds 2022-03-16 23:23:40 +01:00
PatTheMav
c993b6059a
CI: Update build scripts and Github actions workflow
Also updates main CMakeLists.txt and CMakeLists.txt for unit tests,
also adds additional build directories to .gitignore file
2022-03-16 23:13:26 +01:00
Georges Basile Stavracas Neto
36f06e07c6 CI: Split Flatpak beta and stable branches
We currently publish the same build from the same branch
to Flathub. However, soon we'll need to build the Flatpak
manifest in different branches, and publish them in different
repositories.

Prepare for that by splitting the publish step in two: one
for Flathub, and another for Flathub Beta. Do that using
a matrix strategy.

Skip building and publishing stable releases when it's a beta
or RC release by setting an output variable in the first job.
2021-12-30 17:05:58 -03:00
Georges Basile Stavracas Neto
2c7bc286e6 CI: Trivial cleanup
Remove quotes from the step name.
2021-12-30 17:05:58 -03:00
Georges Basile Stavracas Neto
b0e82b9233 CI: Run Flatpak jobs on release branches too
We'll soon be moving to branching before releases, which
is a case that the current Flatpak worflow did not account
for.

Adapt it to also run on release/** branches.
2021-12-13 09:16:28 -08:00
Georges Basile Stavracas Neto
d49c09c738 CI: Don't publish betas to Flathub stable
Beta releases are being considered, in which case the tag
name will contain '-beta' instead of '-rc'. Adapt the CI
workflow to take '-beta' into account too.
2021-12-04 21:00:09 -03:00
Georges Basile Stavracas Neto
c085ae025f CI: Drop "(Experimental)" from the Flatpak workflow
It just cannot get more official than this!
2021-11-24 17:48:26 -03:00
Georges Basile Stavracas Neto
5acfa27c74 CI: Publish releases on Flathub
Now that Flatpak has achieved full feature parity with non-Flatpak
builds, it is time to publish it directly into Flathub.

Add a new "publish" job to the Flatpak workflow that builds and
publishes to Flathub Beta, and to Flathub (if the release tag
doesn't contain '-rc').
2021-11-24 17:48:26 -03:00
Georges Basile Stavracas Neto
e1e1a0de0f CI: Use version 4 of the flatpak-builder action
None of the changes included in v4 affect OBS Studio, but since
we're already touching this code, let's make sure it's updated.
2021-11-24 17:48:26 -03:00
Georges Basile Stavracas Neto
b389b1bed0 CI: Trivial job renaming
Rename "flatpak_builder" to "generate_bundle", and set the display
name to "Generate Flatpak Bundle". This will make it less vague,
which will come in handy since next commits will add new jobs to
this workflow.
2021-11-24 17:48:26 -03:00
Georges Basile Stavracas Neto
12069d6714 CI: Make YAMLint happy
Add a start-of-file heading, and reindent some line. Only cosmetics,
no behavioral changes here.
2021-11-24 17:48:26 -03:00
Georges Basile Stavracas Neto
1392ea5ca6 CI: Enable services on Flatpak builds
The flatpak-builder tool now supports passing secrets options to the
build system. These options are not printed during the build, nor
added to the resolved manifest after build, so they don't leak env
vars from CI.

Make secret variables part of the Flatpak workflow environment, like
the main workflow. Pass the various services hashes and clientids to
the build system using the new "secret-opts" key.
2021-11-03 13:17:03 -03:00
Artem Polishchuk
3f341639ce CI: Update KDE image to 5.15-21.08 (Flatpak)
Update Flatpak KDE image to 5.15-21.08 in GitHub Actions.
2021-10-16 15:55:10 -07:00
Bilal Elmoussaoui
2d315331d6 CI: Use a stable version of the Flatpak action 2021-04-28 20:40:16 -04:00
Bilal Elmoussaoui
757f917ed1 CI: Use flatpak-builder subaction
The Flatpak action now contains two subactions:

- flatpak-builder: for building and uploading a bundle
- flat-manager: for deploying the bundle to a remote repository

Use the right action (flatpak-builder) for the Flatpak workflow.
This won't affect existing pull requests, except the ones that
have the "Seeking Testers" label applied - in which case, they
simply need to rebase against the master branch.
2021-04-18 17:37:05 -07:00
Georges Basile Stavracas Neto
334146ee36 CI: Enable build cache for the Flatpak workflow
This allows caching build objects, and using ccache to skip
building them on follow-up runs.
2021-04-03 00:30:15 +11:00
Bilal Elmoussaoui
892bd62bfe CI: use a KDE image for Flatpak
The KDE images comes with the SDK needed pre-installed and should avoid re-downloading/installing it everytime. This should hopefully reduce the build time by a few minutes 

Details at https://github.com/bilelmoussaoui/flatpak-github-actions#docker-image
2021-01-26 03:57:15 -08:00
Georges Basile Stavracas Neto
44ca426483 ci: Add experimental Flatpak bundle
This is a simple, isolated workflow that generates Flatpak
bundles when running on the master branch, or when a pull
request has the "Seeking Testers" label.

Based on https://github.com/marketplace/actions/flatpak-builder
2021-01-18 15:33:54 -08:00