Commit 4d9217d
authored
qs-push-plugin.swift (#3081)
* CI and tooling rework for plugins
Summary of changes:
qs-push-plugin:
- convert from ruby to Swift
- the initial version in this commit was generated by chatgpt 5 pro on
20251022 using the historical ruby implementation of qs-push-plugin as
input and the simple prompt `Convert the below Ruby script to a Swift
script that only uses the stdlib.`
- minor changes from the LLM output (e.g. dispatchGroup instead of semaphore)
.github/workflows/ci.yml, Quicksilver/Tools/qsrelease, Quicksilver/Tools/qssign, Quicksilver/Tools/qstest:
- some much needed maintenance as these have accumulated a little cruft in the last few years
- `QS_BUILD_ONLY` removed as functionality was duplicated with QS_DONT_SIGN
- `QS_DONT_SIGN` removed as we weren't automatically signing using `qsrelease`
- signing happens via XCode if running interactively
- previously CI was using `QS_DONT_SIGN` and manually calling `qssign` when appropriate
- this change just makes the above more explicit by removing `qssign` from `qsrelease`, so `QS_DONT_SIGN` is no longer useful
- added `QS_DONT_TEST` which allows us to skip testing in `qsrelease`
- this can be helpful for example when building plugins, as the Quicksilver build is done from a tagged release (for which we can be confident tests have already been run)
- alternatively could consider mirroring the `qssign` changes and just make `qstest` a manual thing
- moved much of the signing logic from yaml to qssign
- much easier to write and maintain with appropriate linters, formatters, highighting, etc.
- removed calls to set up the self-signed cert, as this process is not useful or needed in CI
Quicksilver/Quicksilver.xcodeproj/project.pbxproj:
- set signing identity to ad-hoc (`-`) for the testing scheme
- our current tests do not require special permissions, therefore do not require the special cert
Quicksilver/Tools/utils.sh
- new file to hold shell functions that are useful to share between our other scripts
- should reduce duplicated code and help with readability and maintainability
Quicksilver/Tools/build-qs-plugin:
- new script to build a plugin
- given that the QS frameworks are required to build a plugin, we already clone the QS source as part of building a plugin
- therefore adding a script to the QS source lets us keep the bulk of the logic in one place
- works in conjunction with the new <https://github.com/quicksilver/qs-plugin-action>
- this lets us remove a *ton* of build logic from the CI scripts in each individual plugin repo; they can essentially be reduced to just passing in the required secrets and `use`ing the new action
* Rename build-qs-plugin qs-build-plugin
For consistency with other tooling1 parent 9b376b2 commit 4d9217d
File tree
8 files changed
+759
-347
lines changed- .github/workflows
- Quicksilver
- Quicksilver.xcodeproj
- Tools
8 files changed
+759
-347
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
18 | | - | |
19 | 17 | | |
20 | 18 | | |
21 | 19 | | |
22 | 20 | | |
23 | 21 | | |
24 | 22 | | |
25 | 23 | | |
26 | | - | |
27 | 24 | | |
28 | 25 | | |
29 | 26 | | |
| |||
37 | 34 | | |
38 | 35 | | |
39 | 36 | | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
| 37 | + | |
46 | 38 | | |
47 | 39 | | |
48 | 40 | | |
| |||
53 | 45 | | |
54 | 46 | | |
55 | 47 | | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | | - | |
61 | | - | |
62 | | - | |
63 | | - | |
64 | | - | |
65 | | - | |
66 | 48 | | |
67 | 49 | | |
68 | 50 | | |
| |||
77 | 59 | | |
78 | 60 | | |
79 | 61 | | |
80 | | - | |
81 | | - | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
82 | 65 | | |
83 | 66 | | |
84 | 67 | | |
85 | 68 | | |
86 | | - | |
| 69 | + | |
87 | 70 | | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
88 | 77 | | |
89 | | - | |
90 | | - | |
91 | | - | |
92 | | - | |
93 | | - | |
94 | | - | |
95 | | - | |
96 | | - | |
97 | | - | |
98 | | - | |
99 | | - | |
100 | | - | |
101 | | - | |
102 | | - | |
103 | | - | |
104 | | - | |
105 | | - | |
106 | | - | |
107 | | - | |
108 | | - | |
109 | | - | |
110 | | - | |
| 78 | + | |
111 | 79 | | |
112 | 80 | | |
113 | 81 | | |
| |||
135 | 103 | | |
136 | 104 | | |
137 | 105 | | |
138 | | - | |
| 106 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6383 | 6383 | | |
6384 | 6384 | | |
6385 | 6385 | | |
6386 | | - | |
| 6386 | + | |
6387 | 6387 | | |
6388 | 6388 | | |
6389 | 6389 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
0 commit comments