Commit Graph

99 Commits

Author SHA1 Message Date
confused-Techie
34851a3089 Pin Python to 3.11.5 on all platforms 2023-10-19 16:37:51 -07:00
DeeDeeG
152b80e524
Cirrus: Don't update last good commit if CI skipped
For builds that are effectively skipped, since their tasks are all
skipped or not scheduled in the first place, we shouldn't update
CIRRUS_LAST_GREEN_CHANGE.

Unfortunately, Cirrus *does* update that for builds with no or
all-skipped tasks, for now. They may fix it in the future, we have a
feature request open for it. But for now, this is the workaround.
2023-09-13 15:36:48 -04:00
DeeDeeG
48531274b7 Cirrus: Skip builds if same commit was previously built
Doing this to save on CI credits that might otherwise be spent
re-building the same commit multiple times.

Also prevents us from publishing the same git revision as multiple
Rolling release versions published days apart from one-another.

For details of these env vars and the `skip` keyword, see:
- https://cirrus-ci.org/guide/writing-tasks/#environment-variables
- https://cirrus-ci.org/guide/writing-tasks/#conditional-task-execution
2023-08-31 03:16:00 -04:00
DeeDeeG
b5918acfce
CI: Tweak Cirrus build filter to allow tag pushes
We were trying to filter for a certain PR label before,
but inadvertently checked the wrong env var,
based on interpreting some guidance we got from Cirrus team.

In researching what it should be instead, it occurred to me we can
indeed use the `CIRRUS_TAG` env var to check for *any tag push*,
which should actually do pretty well at filtering for releases
after all, since releases are the only times we really push tags.
2023-08-31 01:02:19 -04:00
DeeDeeG
5ecd2b8475 Merge branch 'master' into auto-rename-binaries-in-CI-for-Regular-releases 2023-08-29 22:28:06 -04:00
confused-Techie
4ce257c8eb Add limits to when the cirrus script will run 2023-08-28 17:44:31 -07:00
DeeDeeG
313ae1aafe CI: Fix env var usage for Cirrus config
Env vars acan't be set per script, only per task, apparently.
2023-08-28 04:01:05 -04:00
DeeDeeG
c4a2d9d06c CI: New Rolling release upload token for Cirrus
Add a new token that can upload Rolling release binaries from Cirrus
to GitHub Releases for the Rolling repo.

Prefer this token in the upload script if it is set in the
corresponding env var ROLLING_UPLOAD_TOKEN, otherwise try GITHUB_TOKEN
(This allows the script to work in Cirrus, where the new env var will
be set, and in GitHub Actions where we use the GITHUB_TOKEN.)

(Testing to see if this can be set per-script, otherwise we will have
to set it for the whole task instead.)
2023-08-28 03:49:15 -04:00
confused-Techie
1a6e20fb70 Export path on silicon to ensure we can use npm 2023-08-27 20:47:35 -07:00
confused-Techie
e18e8628d0 Ensure cirrus scripts don't upload rolling release on pr or commit builds 2023-08-27 20:42:50 -07:00
confused-Techie
96f9f91c0a Add rolling release script usage to CirrusCI 2023-08-27 20:20:38 -07:00
confused-Techie
b1c0a45efe Comment out all Cirrus tasks other than Silicon and ARM 2023-08-27 01:39:33 -07:00
DeeDeeG
c7422d1a34 CI: Fix test steps for macOS runs with renamed binaries 2023-08-16 19:50:15 -04:00
DeeDeeG
e73e5ff410 CI: Fix PATH export for ARM Mac binary renaming step
Copy-pasting this line from the Intel Mac CI steps
was apparently not the correct way to do it.

Whoops, again.
2023-08-16 19:27:56 -04:00
DeeDeeG
e23c70ac98 CI: Fix bin rename script invocation on Windows
We're using bash here, even on Windows,
so backslashes are escape characters, not path separators.
2023-08-16 00:07:07 -04:00
DeeDeeG
7014976f02 CI: Export homebrew bin dirs to PATH for rename script
Without this, the rename_binary_script step has no `node` on the PATH,
and errors out (thus erroring out the entire run
before uploading any binaries)!

Whoops.
2023-08-16 00:01:49 -04:00
DeeDeeG
0dac1e514d CI: Automatically rename binaries for Regular releases
Adds a renaming script to rename the binaries with our
Regular release naming scheme, and updates the Cirrus config
to run said renaming script.

De-facto codifies our existing, officially unofficial naming scheme
with a bit of automation.

We can always revise this down the line
if consensus changes for how to name these files.

Just a little institutional knowledge to unburden team members with,
via the (sometimes double-edged sword...) of automation.
2023-08-15 20:28:18 -04:00
confused_techie
7eb3dc5b68
Update Cirrus Token 2023-08-09 17:04:53 -07:00
cat-master21
3d304f1bb9
fix: remove rvm from binary_artifacts 2023-07-20 10:33:54 -07:00
cat-master21
60ee92864b
fix: use the correct package name 2023-07-20 10:18:48 -07:00
cat-master21
0cbc335b21
fix(arm): use rubygems from APT 2023-07-20 09:52:52 -07:00
confused-Techie
34f744a1b5 Add encrypted secret API Token 2023-05-11 20:20:32 -07:00
Maurício Szabo
6deb896114 Finally, Windows working 2023-04-05 11:08:22 -03:00
Maurício Szabo
f716156fdc Merge branch 'build-and-test' of github.com:pulsar-edit/pulsar into build-and-test 2023-04-05 10:01:00 -03:00
Maurício Szabo
ac5c949443 Three tries with newer Node on windows 2023-04-05 10:00:15 -03:00
Maurício Szabo
67d92c3b03
Unzipping, now for real 2023-04-05 02:03:17 -03:00
Maurício Szabo
fab3cc14ec
Am I understanding this correctly? 2023-04-05 01:02:34 -03:00
Maurício Szabo
70f2d773f6
Debugging... guess what? Windows! 2023-04-04 23:34:36 -03:00
Maurício Szabo
5885f49acb Trying to expand the ZIP file 2023-04-04 22:09:24 -03:00
Maurício Szabo
102fba74bf Yeah, I'm done. Let's break everything and run again, shall we? 2023-04-04 19:38:53 -03:00
Maurício Szabo
057b182b98 Trying to... well... something 2023-04-04 19:03:32 -03:00
Maurício Szabo
b9c8fea9e5 This is hell 2023-04-04 17:33:51 -03:00
Maurício Szabo
177147dd38 Exhausted Gods with Broken Tools 2023-04-04 16:42:11 -03:00
Maurício Szabo
99b8745517 PATH 2023-04-04 15:23:12 -03:00
Maurício Szabo
f749483e04 Trying to record, at least on Linux 2023-04-04 14:45:49 -03:00
Maurício Szabo
eafa4d3b66 Nothing ever works on the 10th try on CIs... 2023-04-04 02:26:39 -03:00
Maurício Szabo
2fd060c98c Another try on debugging builds 2023-04-04 00:59:17 -03:00
Maurício Szabo
8219e200b9 Trying to speed up process 2023-04-04 00:44:37 -03:00
Maurício Szabo
1c28411965 Fixing windows test 2023-04-03 23:47:29 -03:00
Maurício Szabo
f2c8e69797 NO COLOR!!!!!!!!!!! 2023-04-03 23:43:53 -03:00
Maurício Szabo
b8285e9d71
Trying to debug errors in Linux and Windows 2023-04-03 23:05:47 -03:00
Maurício Szabo
a879b62268 Trying to run tests on Windows too 2023-04-03 21:37:13 -03:00
Maurício Szabo
d18a40f7cb Make *nix systems use binary to run tests 2023-04-03 20:11:31 -03:00
DeeDeeG
957cf836d0 Cirrus: Windows: install ppm deps with Yarn
Effectively: install ppm's dependencies (and run its postinstall
scripts) with Yarn, not npm, on Windows.

This makes the installation of ppm's dependencies consistently use
Yarn, not npm, in Cirrus CI. Consistent for all OSes/arches we build
for in Cirrus.

(* Although, at some level the postinstall scripts are run via npm as
a subprocess of node as a subprocess of Yarn in a shell/console
sub-process... Yes, in my opinion, ppm's postinstall scripts are way
too complicated...)

ALSO: This fixes an oversight in PR 239 where the build script of the
wrong project (ppm instead of core) was being run at one point, again
on Windows.

So, this should make it so Pulsar's core dependencies are built for
the correct Electron version instead of built for Node... Oops!
2023-03-19 22:27:07 -04:00
DeeDeeG
f05dbde044
Merge branch 'master' into consistent-cirrus-builds 2023-03-11 10:22:09 -05:00
Meadowsys
1304373fb5
implement signing (monterey, xcode 14) 2023-02-15 17:57:27 -08:00
confused-Techie
8717ad519b Symlink to new python install location, pin MacOS Silicon install too, and add our python version as root environment variable 2023-02-15 16:46:35 -08:00
confused-Techie
85f2c4a76f Pin python brew installation to 3.10 2023-02-15 00:38:18 -08:00
Sertonix
88195a8e7d
Update .cirrus.yml
Co-authored-by: DeeDeeG <DeeDeeG@users.noreply.github.com>
2023-02-13 08:43:46 +00:00
Sertonix
cc6060f770
Update .cirrus.yml
Co-authored-by: Spiker985 <7829451+Spiker985@users.noreply.github.com>
2022-12-19 21:18:01 +00:00