Skip to content

Commit

Permalink
Put all source code into src and point flatpak-builder to it as a source
Browse files Browse the repository at this point in the history
Signed-off-by: Matthew J. Milner <[email protected]>
  • Loading branch information
matterhorn103 committed Nov 11, 2024
1 parent 3c1b3b2 commit def9dad
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 12 deletions.
19 changes: 10 additions & 9 deletions .github/workflows/flatpak.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,56 +16,57 @@ jobs:
with:
repository: openchemistry/openchemistry
submodules: false
path: src

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

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

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

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

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

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

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

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

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

- name: Build with flatpak-builder
uses: flatpak/flatpak-github-actions/flatpak-builder@v6

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.
Expand Down
8 changes: 5 additions & 3 deletions flatpak/org.openchemistry.Avogadro2.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,12 @@ modules:
- -DQT_VERSION=6
- -DDOWNLOAD_TO_SOURCE_DIR=ON
sources:
# Don't fetch any Avogadro stuff, already done as part of GitHub Actions
# Avogadro stuff all already collected together as part of GitHub Actions
# This means that if using this to build the Flatpak locally, the openchemistry repo and
# its submodules must be cloned in advance of running flatpak-builder with this manifest

# its submodules must be cloned into ./src in advance of running flatpak-builder with this manifest
- type: dir
path: src

# Now fetch third-party stuff where the source is expected in `openchemistry/thirdparty`
# VTK
- type: archive
Expand Down

0 comments on commit def9dad

Please sign in to comment.