110 Commits

Author SHA1 Message Date
Mitchell Hashimoto
bab8c28c8b zig build dist and distcheck for source tarballs
This moves the source tarball creation process into the Zig build system
and follows the autotools-standard naming conventions of `dist` and
`distcheck`.

The `dist` target creates a source tarball in the `PREFIX/dist`
directory. The tarball is named `ghostty-VERSION.tar.gz` as expected by
standard source tarball conventions.

The `distcheck` target does the same as `dist`, but also takes the
resulting tarball, extracts it, and runs tests on the extracted source
to verify the source tarball works as expected.

This commit also updates CI:

  1. Tagged releases now use the new `zig build distcheck` command.
  2. Tip releases now use the new `zig build dist` command.
  3. A new test build tests that source tarball generation works on
     every commit.
2025-03-18 12:41:55 -07:00
Jeffrey C. Ollie
74f222abec macOS: update additional references to Sparkle 2.6.3->2.6.4 2025-02-13 10:35:38 -06:00
Jon Parise
074edd3065 macos: disable auto-updates for local builds
The auto-update prompt isn't useful for local (source) builds. Disable
it by default by setting Sparkle's SUEnableAutomaticChecks Info.plist
key to NO (false) for all build configurations.

We then selectively re-enable it by deleting that Info.plist key from
our release workflows. We delete the key instead of setting its value to
YES (true) to give us Sparkle's default behavior of prompting the user
to enable update checks on the second application launch. (YES tells
Sparkle to skip that prompt and silently enable update checks.)

See also: https://sparkle-project.org/documentation/customization/
2024-12-29 15:48:59 -05:00
Mitchell Hashimoto
05fd5e0cfd ci: release workflows build a dmg for macOS (#3047)
We've used a zip for the duration of the private beta but macOS users
expect a dmg. This commit changes both of our release workflows to begin
building a dmg instead of a zip.

![CleanShot 2024-12-20 at 21 26
53@2x](https://github.com/user-attachments/assets/2873854d-7849-4c53-9b58-e636ef8e2899)
2024-12-20 21:28:23 -08:00
Mitchell Hashimoto
555163cb1b ci: release workflows build a dmg for macOS
We've used a zip for the duration of the private beta but macOS users
expect a dmg. This commit changes both of our release workflows to begin
building a dmg instead of a zip.
2024-12-20 21:26:33 -08:00
Anthony
c6796ce33e Add --prefix option to git archive to extract with a top-level directory 2024-12-21 13:27:59 +11:00
Mitchell Hashimoto
c74966e07e build: change object story domain to ghostty.org 2024-12-20 08:58:46 -08:00
Mitchell Hashimoto
68bf5a9492 ci: on release, only upload appcast after binaries 2024-12-12 21:12:35 -08:00
Mitchell Hashimoto
1798fc67bf ci: release job should set xcode version earlier 2024-11-20 14:14:53 -08:00
Mitchell Hashimoto
c47bf85e05 ci: concurrency control for releases 2024-10-24 20:45:26 -07:00
Mitchell Hashimoto
0a12bd756b ci: the fix for signing was to use the secrets directly 2024-10-24 20:36:32 -07:00
Mitchell Hashimoto
f011986a22 ci: sign debugging 2024-10-24 20:33:49 -07:00
Mitchell Hashimoto
52897236ff ci: fix signing 2024-10-24 20:24:46 -07:00
Mitchell Hashimoto
e5d041dde5 ci: try another signing method 2024-10-24 20:22:21 -07:00
Mitchell Hashimoto
09914dee22 ci: don't use -Dstatic for releasing 2024-10-24 20:15:57 -07:00
Mitchell Hashimoto
5f04dab2d1 ci: trying to fix signing 2024-10-24 20:14:41 -07:00
Mitchell Hashimoto
7296d7831d ci: install nix for sign tarball action 2024-10-24 20:07:44 -07:00
Mitchell Hashimoto
7ae5e7c83d ci: minisign must be run in the nix env 2024-10-24 20:06:24 -07:00
Mitchell Hashimoto
1a12355dc9 ci: add signing and tarball generation to release-tip workflow 2024-10-24 16:32:43 -07:00
dependabot[bot]
1cee9cc698 build(deps): bump cachix/install-nix-action from 29 to 30
Bumps [cachix/install-nix-action](https://github.com/cachix/install-nix-action) from 29 to 30.
- [Release notes](https://github.com/cachix/install-nix-action/releases)
- [Commits](https://github.com/cachix/install-nix-action/compare/v29...v30)

---
updated-dependencies:
- dependency-name: cachix/install-nix-action
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-10-04 00:16:50 +00:00
dependabot[bot]
998827e4c6 build(deps): bump cachix/install-nix-action from V28 to 29
Bumps [cachix/install-nix-action](https://github.com/cachix/install-nix-action) from V28 to 29. This release includes the previously tagged commit.
- [Release notes](https://github.com/cachix/install-nix-action/releases)
- [Commits](https://github.com/cachix/install-nix-action/compare/V28...v29)

---
updated-dependencies:
- dependency-name: cachix/install-nix-action
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-09-27 00:40:39 +00:00
Mitchell Hashimoto
08ee0c1038 ci: use xcode 16 2024-09-20 13:47:46 -07:00
dependabot[bot]
31207dbb6e build(deps): bump cachix/install-nix-action from V27 to 28
Bumps [cachix/install-nix-action](https://github.com/cachix/install-nix-action) from V27 to 28. This release includes the previously tagged commit.
- [Release notes](https://github.com/cachix/install-nix-action/releases)
- [Commits](https://github.com/cachix/install-nix-action/compare/V27...V28)

---
updated-dependencies:
- dependency-name: cachix/install-nix-action
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-09-13 00:56:03 +00:00
Mitchell Hashimoto
ac2a0a04d4 ci: build releasesafe builds for macOS 2024-08-31 21:32:45 -07:00
Mitchell Hashimoto
3ba0787ec2 macOS: save dSYM files
The focus of this commit is to store the dSYM files associated with
official macOS builds. dSYM files allow us to map crash reports to
source.

The dSYM files are primarily uploaded to our official blob storage where
all releases are also stored. We also upload the dSYM files to Sentry
since I'm experimenting with using that for crash reproting (note:
manual crash reporting, no automatic network traffic).

This commit also changes our blob URLs for releases to use the full
Git SHA rather than a build number. This is much easier to trace back.
2024-08-28 21:33:32 -07:00
Nihaal Sangha
fae848da00 Use standard GitHub Actions committer info 2024-08-05 16:40:47 +01:00
Mitchell Hashimoto
c290a28667 macos: update Sparkle to 2.6.3
There are numerous fixes since our previous version (2.5.1) and I
believe at least one is one that users have hit where unarchiving didn't
work properly despite a properly built archive. I'm hoping this improves
that.

Besides this, there is one major security fix. I think it was low risk
to our project currently but I read through it and it is sensible to
protect against the case.
2024-06-29 08:11:36 -05:00
Mitchell Hashimoto
c7d37dad4b update release job 2024-05-31 14:02:54 -07:00
dependabot[bot]
d2323990ee ---
updated-dependencies:
- dependency-name: cachix/cachix-action
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-05-21 00:26:05 +00:00
dependabot[bot]
4498752665 build(deps): bump cachix/install-nix-action from 26 to 27
Bumps [cachix/install-nix-action](https://github.com/cachix/install-nix-action) from 26 to 27.
- [Release notes](https://github.com/cachix/install-nix-action/releases)
- [Commits](https://github.com/cachix/install-nix-action/compare/v26...V27)

---
updated-dependencies:
- dependency-name: cachix/install-nix-action
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-05-16 00:28:23 +00:00
Mitchell Hashimoto
69d4e4f2a7 ci: put debug build in release 2024-03-27 09:58:17 -07:00
Mitchell Hashimoto
b743b797f6 ci: add debug build to release-tip for macos 2024-03-27 09:46:20 -07:00
Mitchell Hashimoto
c2053cba98 ci: release tip moves to namespace 2024-03-26 19:59:20 -07:00
Mitchell Hashimoto
3d704837d0 Merge pull request #1574 from mitchellh/dependabot/github_actions/cachix/install-nix-action-26
build(deps): bump cachix/install-nix-action from 24 to 26
2024-03-10 20:05:01 -07:00
dependabot[bot]
11921c9cd4 build(deps): bump softprops/action-gh-release from 1 to 2
Bumps [softprops/action-gh-release](https://github.com/softprops/action-gh-release) from 1 to 2.
- [Release notes](https://github.com/softprops/action-gh-release/releases)
- [Changelog](https://github.com/softprops/action-gh-release/blob/master/CHANGELOG.md)
- [Commits](https://github.com/softprops/action-gh-release/compare/v1...v2)

---
updated-dependencies:
- dependency-name: softprops/action-gh-release
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-03-11 00:29:40 +00:00
dependabot[bot]
d5eb5a88bc build(deps): bump cachix/install-nix-action from 24 to 26
Bumps [cachix/install-nix-action](https://github.com/cachix/install-nix-action) from 24 to 26.
- [Release notes](https://github.com/cachix/install-nix-action/releases)
- [Commits](https://github.com/cachix/install-nix-action/compare/v24...v26)

---
updated-dependencies:
- dependency-name: cachix/install-nix-action
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-03-11 00:29:36 +00:00
Mitchell Hashimoto
42f77bd985 ci: revert back to using r2 action 2024-03-04 21:17:26 -08:00
Mitchell Hashimoto
a494cf920d ci: test 2024-03-04 21:15:21 -08:00
Mitchell Hashimoto
c37a595b81 ci: test aws for release 2024-03-04 21:10:08 -08:00
Mitchell Hashimoto
6d8fb512a5 ci: rename github release jobs for r2 2024-03-04 20:54:32 -08:00
Mitchell Hashimoto
39934dd7c2 ci: try new gha for r2 upload 2024-03-04 20:47:44 -08:00
Mitchell Hashimoto
76f2b44955 Revert "ci: try to use namespace for macos to see if that fixes builds"
This reverts commit d56bec8b9a7f11c5ed6ada5979399179b1faf794.
2024-03-04 17:41:54 -08:00
Mitchell Hashimoto
d56bec8b9a ci: try to use namespace for macos to see if that fixes builds 2024-03-04 17:34:35 -08:00
Mitchell Hashimoto
1189a0974d ci: switch linux to namespace 2024-02-10 13:41:41 -08:00
dependabot[bot]
0a67718c28 build(deps): bump cachix/cachix-action from 13 to 14
Bumps [cachix/cachix-action](https://github.com/cachix/cachix-action) from 13 to 14.
- [Release notes](https://github.com/cachix/cachix-action/releases)
- [Commits](https://github.com/cachix/cachix-action/compare/v13...v14)

---
updated-dependencies:
- dependency-name: cachix/cachix-action
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-01-16 00:56:58 +00:00
Mitchell Hashimoto
a12ef43441 ci: specifically target the main Ghostty target 2024-01-14 19:06:01 -08:00
Mitchell Hashimoto
f6e93c8748 ci: release should only run with a main main ref 2024-01-07 12:34:36 -08:00
Mitchell Hashimoto
64e3cbf28c ci: explicitly sign our release entitlements on build
Fixes #1169
2023-12-28 10:37:45 -08:00
Mitchell Hashimoto
c2a132c068 ci: remove macos unsigned releases 2023-12-27 22:25:38 -08:00
dependabot[bot]
6a726ed715 build(deps): bump cachix/cachix-action from 12 to 13
Bumps [cachix/cachix-action](https://github.com/cachix/cachix-action) from 12 to 13.
- [Release notes](https://github.com/cachix/cachix-action/releases)
- [Commits](https://github.com/cachix/cachix-action/compare/v12...v13)

---
updated-dependencies:
- dependency-name: cachix/cachix-action
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-12-25 00:57:44 +00:00