mirror of
https://github.com/redstrate/Astra.git
synced 2025-05-01 08:27:45 +00:00
Build Flatpak on the CI (#31)
This provides a downloadable development Flatpak version, which is more portable than the Linux artifact.
This commit is contained in:
parent
d69ebf91c7
commit
a008b32a47
2 changed files with 24 additions and 31 deletions
47
.github/workflows/main.yml
vendored
47
.github/workflows/main.yml
vendored
|
@ -7,14 +7,13 @@ on:
|
||||||
branches: [ "main" ]
|
branches: [ "main" ]
|
||||||
|
|
||||||
env:
|
env:
|
||||||
CMAKE_BUILD_PARALLEL_LEVEL: 2
|
QT_VERSION: 6.8.2 # Keep in sync with CMakeLists.txt
|
||||||
MAKEFLAGS: '-j 2'
|
KF_VERSION: v6.13.0 # Ditto
|
||||||
QT_VERSION: 6.8.1 # Keep in sync with CMakeLists.txt
|
|
||||||
KF_VERSION: v6.10.0 # Ditto
|
|
||||||
KIRIGAMI_ADDONS_VERSION: v1.7.0 # Ditto x2
|
KIRIGAMI_ADDONS_VERSION: v1.7.0 # Ditto x2
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
reuse:
|
reuse:
|
||||||
|
name: "REUSE"
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
@ -23,6 +22,7 @@ jobs:
|
||||||
uses: fsfe/reuse-action@v5
|
uses: fsfe/reuse-action@v5
|
||||||
|
|
||||||
build:
|
build:
|
||||||
|
name: "Build"
|
||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
|
|
||||||
strategy:
|
strategy:
|
||||||
|
@ -312,30 +312,23 @@ jobs:
|
||||||
|
|
||||||
- name: Archive artifacts
|
- name: Archive artifacts
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
|
if: runner.os == 'Windows'
|
||||||
with:
|
with:
|
||||||
name: ${{ runner.os }}-package
|
name: ${{ runner.os }}-package
|
||||||
path: ${{ steps.strings.outputs.build-output-dir }}/bin
|
path: ${{ steps.strings.outputs.build-output-dir }}/bin
|
||||||
|
|
||||||
#build-flatpak:
|
flatpak:
|
||||||
# runs-on: ubuntu-latest
|
name: "Flatpak"
|
||||||
|
runs-on: ubuntu-latest
|
||||||
# steps:
|
container:
|
||||||
# - uses: actions/checkout@v4
|
image: ghcr.io/flathub-infra/flatpak-github-actions:gnome-48
|
||||||
# with:
|
options: --privileged
|
||||||
# submodules: true
|
steps:
|
||||||
|
- uses: actions/checkout@v4
|
||||||
# - name: Setup Linux dependencies
|
with:
|
||||||
# run: |
|
submodules: true
|
||||||
# sudo apt-get update
|
- uses: flatpak/flatpak-github-actions/flatpak-builder@v6
|
||||||
# sudo apt-get install \
|
with:
|
||||||
# flatpak-builder \
|
bundle: astra.flatpak
|
||||||
|
manifest-path: zone.xiv.astra.yml
|
||||||
# - name: Build Flatpak
|
cache-key: flatpak-builder-${{ github.sha }}
|
||||||
# run: |
|
|
||||||
# ./scripts/build-flatpak.sh
|
|
||||||
|
|
||||||
# - name: Archive artifacts
|
|
||||||
# uses: actions/upload-artifact@v4
|
|
||||||
# with:
|
|
||||||
# name: flatpak
|
|
||||||
# path: astra.flatpak
|
|
|
@ -61,22 +61,22 @@ int main(int argc, char *argv[])
|
||||||
QUrl(QStringLiteral("https://redstrate.com/rss-image.png")));
|
QUrl(QStringLiteral("https://redstrate.com/rss-image.png")));
|
||||||
about.setHomepage(QStringLiteral("https://xiv.zone/astra"));
|
about.setHomepage(QStringLiteral("https://xiv.zone/astra"));
|
||||||
about.addComponent(QStringLiteral("physis"),
|
about.addComponent(QStringLiteral("physis"),
|
||||||
i18n("Library to access FFXIV data"),
|
i18n("Library for reading and writing FFXIV data."),
|
||||||
QString::fromLatin1(physis_get_physis_version()),
|
QString::fromLatin1(physis_get_physis_version()),
|
||||||
QStringLiteral("https://xiv.zone/physis"),
|
QStringLiteral("https://xiv.zone/physis"),
|
||||||
KAboutLicense::GPL_V3);
|
KAboutLicense::GPL_V3);
|
||||||
about.addComponent(QStringLiteral("libphysis"),
|
about.addComponent(QStringLiteral("libphysis"),
|
||||||
i18n("C bindings for physis"),
|
i18n("C/C++ bindings for Physis."),
|
||||||
QString::fromLatin1(physis_get_libphysis_version()),
|
QString::fromLatin1(physis_get_libphysis_version()),
|
||||||
QStringLiteral("https://github.com/redstrate/libphysis"),
|
QStringLiteral("https://github.com/redstrate/libphysis"),
|
||||||
KAboutLicense::GPL_V3);
|
KAboutLicense::GPL_V3);
|
||||||
about.addComponent(QStringLiteral("KDSingleApplication"),
|
about.addComponent(QStringLiteral("KDSingleApplication"),
|
||||||
i18n("Helper class for single-instance policy applications "),
|
i18n("Helper class for single-instance policy applications."),
|
||||||
QStringLiteral("1.1.1"),
|
QStringLiteral("1.1.1"),
|
||||||
QStringLiteral("https://github.com/KDAB/KDSingleApplication"),
|
QStringLiteral("https://github.com/KDAB/KDSingleApplication"),
|
||||||
KAboutLicense::MIT);
|
KAboutLicense::MIT);
|
||||||
about.addComponent(QStringLiteral("libcotp"),
|
about.addComponent(QStringLiteral("libcotp"),
|
||||||
i18n(" C library that generates TOTP and HOTP "),
|
i18n(" C library that generates TOTP and HOTP."),
|
||||||
QStringLiteral("3.0.0"),
|
QStringLiteral("3.0.0"),
|
||||||
QStringLiteral("https://github.com/paolostivanin/libcotp"),
|
QStringLiteral("https://github.com/paolostivanin/libcotp"),
|
||||||
KAboutLicense::Unknown);
|
KAboutLicense::Unknown);
|
||||||
|
|
Loading…
Add table
Reference in a new issue