Commit Graph

155 Commits

Author SHA1 Message Date
DeeDeeG
28fb9c4d98 CI: Sign binaries (only) for branch pushes, not PRs
Before, we were unintentionally not signing for pushes, and only
signing for PRs.

We definitely *do* want to sign for pushes,
(such as to `master` branch), so that Rolling releases get signed,
but we probably don't need (and probably don't want?) to sign for PRs.
(Regardless of whether from a fork or not.)

So, this commit essentially reverses the situation from before:
- DO sign for branch pushes. (Note: the workflow currently only
  triggers for `master` branch pushes.)
- DON'T sign for any other events, such as for Pull Requests.

(This change is for GitHub Actions only, as the Cirrus config was
already set up in a very particular way during the migration of most
binary builds to GitHub Actions, which was quite recent,
and doesn't need any changes at this time.)
2023-09-28 20:51:15 -04:00
DeeDeeG
fb598e5f40 CI: Use Python 3.11 to fix macOS signing
Background and context for this commit...

Not sure why exactly, but our GitHub Actions workflow is producing
*signed* macOS binaries that pass spctl "acceptance" on the CLI, and
various other signing/notarization checks on the CLI, such as stapler,
but nevertheless warn they can't be verified when opening the signed
Pulsar.app in Finder or using `open` on the CLI, and so on.

Through investigating what changes we can make to better-match the
Cirrus environment, which has producing signed binaries that open just
fine without the warning for months now, we have tried many things.

Eventually, disabling actions/setup-node and actions/setup-python was
tried, which incidentally got us Python 3.11 instead of our manually
pinned older Python 3.10. That worked, the signed binaries open as
they should, sans verification warning.

Further narrowing it down resulted in, any way we get Python other
than 3.10 from actions/setup-python seems to be working.

Given that, this commit starts using Python 3.11 in GitHub Actions,
to fix the "macOS is signed but is still not making Gatekeeper happy"
situation we have been having with GitHub Actions.
2023-09-27 01:34:38 -04:00
confused-Techie
2bb09a0e9f Add comment 2023-09-23 01:44:29 -07:00
confused-Techie
d363cc7340 Try reinstalling node-gyp for current NodeJS Version 2023-09-23 01:44:29 -07:00
DeeDeeG
cb99b1a135
Merge pull request #675 from pulsar-edit/auto-rename-binaries-in-CI-for-Regular-releases
Automatically rename binaries in CI during Regular releases
2023-08-31 00:02:07 -04:00
confused-Techie
a93f1cac37 Simplify comment 2023-08-30 20:13:20 -07:00
confused-Techie
c3bdd11b17 Conditional signing of macOS binaries 2023-08-30 18:26:12 -07:00
confused-Techie
5f67985ab4 Set macOS signing vars as dedicated step 2023-08-30 00:15:05 -07:00
DeeDeeG
a624008c31 CI: Add binary renaming script to GitHub Actions
This script renames the Pulsar binaries to use the naming scheme
we use for all of the Regular release binaries.

It was already added to the Cirrus config,
now it's used in the GitHub Actions workflow as well.

(It checks the version string in package.json to know not to rename
the binaries unless we're actually trying to make a Regular release.)
2023-08-29 23:35:38 -04:00
confused-Techie
0d01129459 Use special token instead of action permissions 2023-08-28 20:42:30 -07:00
confused-Techie
85827f781c Provide extra permissions to GitHub Action to ensure it can create releases 2023-08-28 20:22:32 -07:00
confused-Techie
761b228148 Cleanup push trigger, add workflow_dispatch 2023-08-28 19:27:16 -07:00
confused_techie
1df7747d4f
Merge pull request #682 from pulsar-edit/convert-cirrus-to-github-actions
Migrate most binary building to GitHub Actions
2023-08-28 19:11:29 -07:00
confused-Techie
6c1bef5562 Uncomment macOS signing values 2023-08-28 17:35:05 -07:00
confused-Techie
66382cb967 Pin retry action version 2023-08-27 23:02:39 -07:00
confused-Techie
1e460303ff Switch on macOS visual tests (I don't know if these actually work) 2023-08-27 21:06:15 -07:00
confused_techie
1500cea824
Update .github/workflows/build.yml
Co-authored-by: DeeDeeG <DeeDeeG@users.noreply.github.com>
2023-08-27 21:02:30 -07:00
confused_techie
a6f37cfc7b
Update .github/workflows/build.yml
Co-authored-by: DeeDeeG <DeeDeeG@users.noreply.github.com>
2023-08-27 21:02:21 -07:00
confused_techie
d872293a7e
Update .github/workflows/build.yml
Co-authored-by: DeeDeeG <DeeDeeG@users.noreply.github.com>
2023-08-27 21:02:09 -07:00
confused_techie
66490ef515
Update .github/workflows/build.yml
Co-authored-by: DeeDeeG <DeeDeeG@users.noreply.github.com>
2023-08-27 21:01:59 -07:00
confused_techie
548b8df4c7
Update .github/workflows/build.yml
Co-authored-by: DeeDeeG <DeeDeeG@users.noreply.github.com>
2023-08-27 21:01:46 -07:00
confused_techie
31d517f1b3
Update .github/workflows/build.yml
Co-authored-by: DeeDeeG <DeeDeeG@users.noreply.github.com>
2023-08-27 21:01:24 -07:00
confused-Techie
ac4bcca7e1 Add automatic upload of binaries for push events
This script should upload any binaries it has to the `pulsar-rolling-releases` repo
2023-08-27 01:38:22 -07:00
confused-Techie
650b5ed868 Add ignorePaths to renovate config 2023-08-27 00:02:35 -07:00
confused-Techie
f073ab1c5d Add new and missing packages to Renovate config 2023-08-23 23:19:43 -07:00
confused-Techie
b596922597 Try and fix the if statements 2023-08-22 16:38:55 -07:00
confused-Techie
cf8bf818ac Cleanup logic, expand install timeout for windows, add retry to build, add cleanup to install 2023-08-22 02:20:21 -07:00
confused-Techie
a84507a3b0 Add retries, simplify logic 2023-08-22 01:37:31 -07:00
confused-Techie
0d90881f2e Fix logic for running agnostic pulsar binary build 2023-08-22 01:00:38 -07:00
confused-Techie
dd2ae4fcfe Fix what value is checked for to build agnostic binaries 2023-08-22 00:36:52 -07:00
confused-Techie
5383603e6e Fix naming of Build Pulsar (macOS) => Build Pulsar Binaries (macOS) 2023-08-22 00:26:09 -07:00
confused-Techie
8d75726d10 Compare booleans to true unlike JS 2023-08-22 00:14:39 -07:00
confused-Techie
ff0db1f8cc Restore one valid comment 2023-08-21 23:14:57 -07:00
confused-Techie
dfe9dfa5f0 Use env vars to disable tests and signing on specific platforms 2023-08-21 23:13:53 -07:00
confused-Techie
652b30f220 Disable visual tests on windows and macOS, use PowerShell for checking pulsar version on windows 2023-08-21 22:30:51 -07:00
confused-Techie
a4c9f36359 Fix bad syntax 2023-08-21 21:40:00 -07:00
confused-Techie
c57b5de831 Use regular build steps for all platforms 2023-08-21 21:38:37 -07:00
confused-Techie
2658c5f8fd Windows CI 2023-08-21 21:07:33 -07:00
confused-Techie
1994c79f3c Separate out our build steps, check again if we can install ffmpeg, fix sed statement 2023-08-21 19:15:57 -07:00
confused-Techie
d9320b5503 Properly escape newline 2023-08-21 19:04:18 -07:00
confused-Techie
db77504f0d Seems we must use sudo 2023-08-21 19:02:03 -07:00
confused-Techie
f044d62960 Don't seem to be installing everything listed 2023-08-21 19:00:58 -07:00
confused-Techie
7a6cc86993 Don't install ffmpeg, use action instead 2023-08-21 18:55:21 -07:00
confused-Techie
8cf0db28c3 Use sudo where needed
Apparently, GitHub Actions use a passwordless root account to protect some actions [docs](https://docs.github.com/en/actions/using-github-hosted-runners/about-github-hosted-runners)
2023-08-21 18:40:04 -07:00
confused-Techie
cfd20283d2 Create linux build task 2023-08-21 18:35:14 -07:00
casswedson
42ad6bb5e5 suppress action deprecation warnings
there are a bunch of deprecation warnings here about actions/checkout
and actions/setup-node

https://github.com/pulsar-edit/pulsar/actions/runs/5886138612

fix most of them by bumping checkout and setup-node to v3
2023-08-17 20:55:44 -05:00
confused-Techie
afe0941197 Add pulsar-updater to our package tests 2023-07-25 21:31:35 -07:00
Maurício Szabo
b8ad056f5e Trigger builds on master too 2023-05-09 16:59:21 -03:00
Maurício Szabo
815ced856b Disabled symbols-view for now 2023-05-09 16:50:53 -03:00
Spiker985
9d11c48955
ci: Bump editor tests action versions (#466) 2023-04-24 09:12:32 -04:00