Commit Graph

152 Commits

Author SHA1 Message Date
DeeDeeG
06afb505d9 CI: Use commit date as the Rolling version number
The Rolling version number was previously set as the result of a
`date` command, implicitly using server time (as of the time the CI
build was running, in the time zone of the server), meaning the
version number could be different based on server timezone across many
regions the CI could happen to run in, based on the timing of re-runs,
or change due to slight differences in how runners were allocated to
run each job.

Most notably, this could lead to the different OS/arch builds having
different version numbers from the same overall CI build, since they
ran in separate tasks!

Now that we have multiple CI providers building the editor binaries,
we have rather drastically different timing of these runs, and the
version numbers are likely never going to sync up.

---

By setting the version number from the commit date, always in UTC,
Rolling versions on Cirrus should now always sync up
with an existing version as published from GitHub Actions.

This also means we can check the commit dates of recent commits to
`master` branch in order to know which exact commit a given Rolling
release version corresponds to.

---

This idea was worked on by a few people, and also thanks to this
StackOverflow answer:
https://stackoverflow.com/questions/21363187/git-show-dates-in-utc

Co-authored-by: Meadowsys <blazeykirin@gmail.com>
Co-authored-by: confused-Techie <dev@lhbasics.com>
2023-09-14 01:58:16 -04: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
confused_techie
868f56926a
Merge pull request #469 from pulsar-edit/finally-use-rennovate
Setup Renovate
2023-04-17 20:14:59 -07:00
DeeDeeG
e5a7543994 actions: Restore dependencies, skip (re)installing them if restore succeeds
Restore these dependencies from the "build editor" job cache,
and skip (re)installing the dependencies
if restoring from cache succeeds.

Saves a huge amount of run-time, compared to having to (re)install
all the editor's dependencies over again fresh
in each individual package's respective test job.

Estimated savings of ~1 hour 10 minutes (?) total run time.
2023-04-16 22:35:41 -05:00
DeeDeeG
287aea1ab3 actions: Cache the dependencies for package tests
cache node_modules/ and packages/ as well, not just the .deb of the
built Pulsar app.

Lets us skip (re)installing/(re)building these dependencies in each
individual package job; Just re-use the cached copy from the
"build editor" job. Which would save *a lot* of run-time in CI.
2023-04-16 22:35:41 -05:00