Skip to content

Commit da05b1f

Browse files
ranfdevbbhtt
authored andcommitted
flatpak-builder: Add keepBuildDirs flag
1 parent 0a63139 commit da05b1f

5 files changed

Lines changed: 2136 additions & 2117 deletions

File tree

CONTRIBUTING.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@ If you plan to contribute to flatpak-github-actions, here's a couple of things t
1010

1111
For more details, we recommend looking the extensive guide at [Creating a JavaScript action](https://docs.github.com/en/actions/creating-actions/creating-a-javascript-action#prerequisites)
1212

13-
Once you have modified the `index.js` of either `flatpak-builder` or `flat-manager` action. Make sure to compile the file to the `dist` directory. You can do so with
13+
Once you have modified the `index.js` of either `flatpak-builder` or `flat-manager` action, make sure to compile the file to the `dist` directory.
14+
Note: You should have already installed the npm packages of both `flatpak-builder` and `flat-manager`, with yarn.
1415

1516
```shell
1617
ncc build ./flatpak-builder/index.js -o ./flatpak-builder/dist/

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ jobs:
5959
| `build-dir` | The directory to build the application in. | Optional | `flatpak_app` |
6060
| `repo-dir` | The directory of the flatpak repository. | Optional | `repo` |
6161
| `state-dir` | The directory to store the build state/cache in. | Optional | `.flatpak-builder` |
62+
| `keep-build-dirs` | Keep build directories after the build finishes (passes `--keep-build-dirs` to flatpak-builder). Useful for debugging intermediate files. | Optional | `false` |
6263
| `verbose` | Enable verbosity | Optional | `false` |
6364
| `upload-artifact` | Whether to upload the resulting bundle or not as an artifact | Optional | `true` |
6465

flatpak-builder/action.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,13 @@ inputs:
5656
Defines the cache-key to use.
5757
Defaults to flatpak-builder-${arch}-${sha256(manifestPath)}
5858
required: false
59+
keep-build-dirs:
60+
description: >
61+
Keep build directories after the build finishes, passing `--keep-build-dirs` flag
62+
to flatpak-builder.
63+
Possible values: true, enabled, yes, y. Defaults to false.
64+
required: false
65+
default: "false"
5966
branch:
6067
description: The flatpak branch.
6168
default: "master"

0 commit comments

Comments
 (0)