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

Add a nightly/test workflow for flatpak and adapt manifest accordingly #523

Merged
merged 15 commits into from
Nov 13, 2024
Merged
Show file tree
Hide file tree
Changes from 9 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
91 changes: 91 additions & 0 deletions .github/workflows/flatpak.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,91 @@
name: Build Flatpak

Check notice

Code scanning / Checkov (reported by Codacy)

Ensure top-level permissions are not set to write-all Note

Ensure top-level permissions are not set to write-all

on: [push, pull_request]

jobs:
flatpak:
name: "Flatpak"
runs-on: ubuntu-latest
container:
image: bilelmoussaoui/flatpak-github-actions:kde-6.7
options: --privileged

steps:
- name: Checkout openchemistry
uses: actions/checkout@v4
with:
repository: openchemistry/openchemistry
submodules: false
path: src

- name: Checkout avogadroapp
uses: actions/checkout@v4
with:
path: src/avogadroapp

- name: Checkout avogadrolibs
uses: actions/checkout@v4
with:
repository: openchemistry/avogadrolibs
path: src/avogadrolibs

- name: Checkout i18n
uses: actions/checkout@v4
with:
repository: openchemistry/avogadro-i18n
path: src/avogadro-i18n

- name: Checkout avogadrogenerators
uses: actions/checkout@v4
with:
repository: openchemistry/avogenerators
path: src/avogadrogenerators

- name: Checkout crystals
uses: actions/checkout@v4
with:
repository: openchemistry/crystals
path: src/crystals

- name: Checkout fragments
uses: actions/checkout@v4
with:
repository: openchemistry/fragments
path: src/fragments

- name: Checkout molecules
uses: actions/checkout@v4
with:
repository: openchemistry/molecules
path: src/molecules

- name: Checkout Flathub shared-modules
uses: actions/checkout@v4
with:
repository: flathub/shared-modules
path: shared-modules

- name: Setup tmate session
if: failure()
uses: mxschmitt/action-tmate@v3

Check warning

Code scanning / Semgrep (reported by Codacy)

An action sourced from a third-party repository on GitHub is not pinned to a full length commit SHA. Pinning an action to a full length commit SHA is currently the only way to use an action as an immutable release. Warning

An action sourced from a third-party repository on GitHub is not pinned to a full length commit SHA. Pinning an action to a full length commit SHA is currently the only way to use an action as an immutable release.

- name: Move manifest
run: mv src/avogadroapp/flatpak/org.openchemistry.Avogadro2.yaml ./

- name: Build with flatpak-builder
uses: flatpak/flatpak-github-actions/flatpak-builder@v6
Fixed Show fixed Hide fixed
with:
bundle: avogadro2.flatpak
branch: nightly
manifest-path: org.openchemistry.Avogadro2.yaml
cache: false
cache-key: flatpak-builder-${{ github.sha }}

- name: Cleanup
if: ${{ always() }} # To ensure this step runs even when earlier steps fail
shell: bash
run: |
ls -la ./
rm -rf ./* || true
rm -rf ./.??* || true
ls -la ./
12 changes: 0 additions & 12 deletions flatpak/org.openchemistry.Avogadro2.Molequeue.desktop

This file was deleted.

64 changes: 0 additions & 64 deletions flatpak/org.openchemistry.Avogadro2.metainfo.xml

This file was deleted.

Loading
Loading