1
1
mirror of https://github.com/wez/wezterm.git synced 2024-09-11 14:25:57 +03:00
Commit Graph

55 Commits

Author SHA1 Message Date
Wez Furlong
b6cc0382cb
ci: update sccache action
closes: #5751
2024-06-24 06:54:47 -07:00
Bogdan-Cristian Tătăroiu
993eb9f3a9 Fix Windows CI.
It's currently failing when running tests with errors of the form:

> error: creating test list failed
>
> Caused by:
>   for `wezterm-config-derive`, command
>   `'D:\a\wezterm\wezterm\target\debug\deps\wezterm_config_derive-f1c7f0f2de220b6e.exe'
>   --list --format terse` exited with code 0xc0000135: The specified
>   module could not be found. (os error 126)

This seems to have been caused by nextest-rs/nextest#1493, with this comment
as a fix: https://github.com/nextest-rs/nextest/issues/1493#issuecomment-2106331574
2024-05-20 08:39:43 -07:00
Wez Furlong
cce0706b1f
ci: another attempt at fixing up windows path 2024-04-05 18:09:10 -07:00
Wez Furlong
9b082e5355
ci: fixup perl path on windows when running tests 2024-04-05 16:21:13 -07:00
Wez Furlong
58cd230a45
ci: include the bin name in the step name on windows 2024-04-05 14:20:24 -07:00
Wez Furlong
668ac85d75
ci: run tests in debug mode
The original thinking was to build all in release mode so that
there was less overall redundancy between building out the released
binaries and what we need to build for test purposes.  The goal was to
minimize compile time.

I don't believe that that holds up any more, especially with the
prior commit explicitly breaking out the separate binary builds
to manage dependency bloat.
2024-04-05 14:10:36 -07:00
Wez Furlong
4de4061bf3
ci: avoid bundling deps for various sub crates
In particular, strip-ansi-escapes' dep graph is expanded
by the overall set of enabled crate features when doing an
indiscriminate `cargo build` vs. `cargo build -p strip-ansi-escapes`.

This may help to avoid tripping over whatever is problematic
in https://github.com/wez/wezterm/issues/5074
2024-04-05 13:29:18 -07:00
Wez Furlong
9064c1c194
ci: bump cache action
closes: https://github.com/wez/wezterm/pull/4958
2024-02-05 06:34:15 -07:00
Wez Furlong
3d893cbbf7
ci: bump sccache
closes: https://github.com/wez/wezterm/pull/4959
2024-02-05 06:33:28 -07:00
Wez Furlong
26921ced86
ci: bump cargo-install
closes: https://github.com/wez/wezterm/pull/4960
2024-02-05 06:32:43 -07:00
Jalil David Salamé Messina
309b7d1d6a ci: regenerate workflows 2024-02-01 08:53:49 -07:00
Wez Furlong
a95111342c
ci: actions/checkout@v3 -> v4
closes: #4273
2023-09-10 22:14:17 -07:00
Wez Furlong
f73f718098
Revert "ci: don't use release mode for tests"
This reverts commit cc567ab464.

It didn't improve anything and seems to have broken the windows CI.
2023-07-13 08:14:19 -07:00
Wez Furlong
cc567ab464
ci: don't use release mode for tests
The original thinking was that it would be quicker to reuse
the existing release mode deps, but I'm not sure if that is
still true, so let's test it to see.

At the time of writing, the test phase takes 8-12 minutes depending
on the OS, with most of that being compilation.
2023-07-12 08:35:14 -07:00
Jalil Salamé
64b8749eb3
ci: Use nextest (#3342)
* ci: Use cargo-nextest to improve testing times

* chore: Regenerate workflows

* chore: Use nextest in non generated workflows

* fix(nextest): No fail fast

* fix: Caching of nextest ignores conatiner

* chore: Regenerate workflows

* fix(ci): Wrong input to cargo-install action

* fix: Merge conflicts

* fix(flaky-tests): Try updating OpenSUSE Leap to 15.4
2023-03-24 21:11:22 -07:00
Jalil Salamé
66b29c88e0
ci: Use rust-cache instead of the general cache action (#3341)
* feat: Cache Rust artifacts using Swatinem/rust-cache@v2

* chore: Generate workflows

* chore: Modify non generated workflows

* fix: Add caching to workflows that were missing it

* fix: Merge conflicts

* fix(ci): No need to hash files ourselves

* chore: Regenerate workflows

* fix: Only cache workspace (other changes don't invalidate cache)

---------

Co-authored-by: Wez Furlong <wez@wezfurlong.org>
2023-03-24 17:54:36 -07:00
Jalil Salamé
1535d88290
Ci toolchain: Do not use actions-rs/toolchain (#3327)
* fix(generate-workflows): Do not use actions-rs

[actions-rs/toolchain](https://github.com/actions-rs/toolchain) is unsupported:

- Has not recieved updates since November 2020 (~2.5 years)
- It uses Node.js 12 and GitHub will stop supporting it Summer this year(?) see
  this [article](https://github.blog/changelog/2022-09-22-github-actions-all-actions-will-begin-running-on-node16-instead-of-node12/).

[dtolnay/rust-toolchain](https://github.com/dtolnay/rust-toolchain) is
actively supported and its mostly a 1-1 replacement, the differences are:

- Uses the minimal profile always, so no need to specify it.
- There is no need to override the toolchain.

I also removed some things:

- None of the generated actions use `rustfmt` so I removed the component
- The toolchain is always stable, so I specified it in the action itself
  instead of in the action parameters.

* ci: Regenerate workflows

* fix: Remove ALLOW_UNSECURE_COMMANDS from action

* fix(CentOS7): Manually install rustup as CentOS7 uses a very old curl

* fix: Restart shell so that the rustup command is available

* feat: Add exeption to the CentOS workflow to download rustup

* fix: Remove actions-rs/toolchain from remaining workflows

* fix: Address review comment
2023-03-24 10:16:09 -07:00
Wez Furlong
c2fee76638 ci: nth time's the charm for winget tag pr thing 2022-08-07 11:31:46 -07:00
Wez Furlong
306da9d448 ci: tweak winget pr stuff a bit more 2022-08-07 10:51:56 -07:00
Wez Furlong
56aa71331e ci: maybe fixup winget pr submission when tagging a release 2022-08-07 09:38:23 -07:00
Wez Furlong
360b3f3479 ci: try uploading sha256 files alongside release assets
refs: #2114
2022-07-25 08:39:24 -07:00
Wez Furlong
40d346b58f ci: automate updating winget during release time
A slightly simpler alternative to https://github.com/wez/wezterm/pull/2199
2022-06-28 11:47:11 -07:00
Wez Furlong
ce89e33f01 ci: make deterministic again!
dc728b3895 introduced some non-determinism
by mutating the global TARGETS list.

The result is, depending on iteration order, the generated jobs
may inherit the env from earlier jobs.

Notably, if the tag job inherit the schedule reason from a continuous
job, they'll upload assets with an incorrect filename.

This commit restores the determinism by forcing each iteration
of the generation loop to make a deep copy of the statically
defined information in TARGETS.

While we're at it, ensure that the list of env vars is sorted
to avoid non-determinism there as well.

refs: https://github.com/wez/wezterm/issues/2176
2022-06-25 11:40:47 -07:00
Jakub Panek
724baf12b5 ci: update workflows
Signed-off-by: Jakub Panek <me@panekj.dev>
2022-04-18 21:34:34 -07:00
Wez Furlong
8235736ac0 ci: take a stab at working around https://github.com/actions/checkout/issues/760 2022-04-12 20:11:18 -07:00
Wez Furlong
4cf74e3d77 ci: revert b95f453ede
checkout seems to be failing for ubuntu 20 recently:

```
Deleting the contents of '/__w/wezterm/wezterm'
Initializing the repository
  /usr/bin/git init /__w/wezterm/wezterm
  Initialized empty Git repository in /__w/wezterm/wezterm/.git/
  /usr/bin/git remote add origin https://github.com/wez/wezterm
  Error: fatal: unsafe repository ('/__w/wezterm/wezterm' is owned by someone else)
  To add an exception for this directory, call:

  	git config --global --add safe.directory /__w/wezterm/wezterm
  Error: The process '/usr/bin/git' failed with exit code 128
```

Try reverting this as a workaround.
2022-04-12 18:14:41 -07:00
Wez Furlong
1d908457ae ci: (up|down)load-artifact v2 -> v3 2022-04-10 18:36:34 -07:00
Wez Furlong
1cf0a76f3f deps: actions/cache -> v3
closes: https://github.com/wez/wezterm/pull/1782
2022-03-27 19:48:06 -07:00
Wez Furlong
d5998ccb56 bump actions/checkout from 2.4 -> 3
closes: #1694
2022-03-09 07:32:40 -07:00
dependabot[bot]
0ce029fdba build(deps): bump actions/checkout from 1 to 2.4.0
Bumps [actions/checkout](https://github.com/actions/checkout) from 1 to 2.4.0.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v1...v2.4.0)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-01-26 09:51:49 -08:00
Wez Furlong
7edc5b5ab0 ci: urgh, try another way 2022-01-01 13:33:40 -07:00
Wez Furlong
e11b9460ef ci: try alternative way of passing tag name 2022-01-01 13:10:08 -07:00
Wez Furlong
4143d254aa ci: tidy up separate uploader job
Enable it for tags/releases too, and remove some additional git fetches
and installation of the GH CLI inside containers that we no longer need.
2021-12-08 19:57:25 -07:00
Wez Furlong
d98a72f350 ci: also grab artifacts when building a tag 2021-12-06 19:41:10 -07:00
Wez Furlong
1e8ebdadfd ci: switch to GH CLI for uploading to releases
I lost a few hours over the weekend because the GH release uploads
are flakey and the action I was using doesn't internally perform
retries.  I had to manually delete the failed uploads from the release
and then re-trigger the builds across several platforms, several times
for both of the releases I pushed this weekend :-/

This commit speculatively switches over to using the GH cli in the
hopes that the error reporting is better, and also because it is
simpler to externally drive a retry loop.

Let's see how this goes.
2021-12-06 09:14:15 -07:00
Wez Furlong
30fd56c35f ci: actions/cache -> 2.1.7 2021-11-28 19:10:08 -07:00
Wez Furlong
f0f7110dfe ci: windows -> windows-latest
GH are deprecating the version we were using, so let's see if simply
upgrading to latest works out.
2021-11-23 06:57:48 -07:00
Wez Furlong
9a78754961 ci: re-run generate-workflows 2021-10-02 21:25:47 -07:00
Frieder Bluemle
57eebb7997 Format non-generated workflow files 2021-10-02 10:11:54 -07:00
Frieder Bluemle
b56f67579d ci: Simplify and clean up generate-workflows.py 2021-10-02 10:11:54 -07:00
Frieder Bluemle
89e4d7b787 ci: Do not run upload action on forks 2021-09-21 09:43:09 -07:00
Wez Furlong
d54bf21826 update actions/cache -> 2.1.6 2021-05-30 23:07:29 -07:00
Wez Furlong
e9372086ae ci: update actions/cache 2021-04-19 09:24:48 -07:00
Wez Furlong
d28dca4b0a ci: update to actions/cache@v2.1.4 2021-02-07 22:49:52 -08:00
Wez Furlong
9d2df980e7 More fun with actions-rs/toolchain
I don't think that https://github.com/actions-rs/toolchain/issues/124
is 100% fixed, but this should fix our CI in the meantime.
2020-11-17 12:03:24 -08:00
Wez Furlong
8b9f6aed65
speculative fix for CI (#333)
* speculative fix for CI

GitHub made a breaking change, and this may get us through
until this action is updated.

refs: https://github.com/actions-rs/toolchain/pull/114
refs: https://github.com/actions-rs/toolchain/issues/124
2020-11-16 17:28:37 -08:00
Wez Furlong
0547fbb549 ci: set release as pre-release when tagging
also looks like I missed updating the source tarball
generation step in a prior adjustment.
2020-10-30 22:09:58 -07:00
Wez Furlong
bfe87b6bec ci: more messing around with cache on macos
Something seems to poison the cargo cache between the PR
and continuous builds.  Turn off caches for continuous builds.
2020-10-10 09:25:11 -07:00
Wez Furlong
2463510a88 ci: more adjustments for actions/cache@v2 2020-10-10 07:36:34 -07:00
Wez Furlong
4c639c1d54 ci: invalid github caches
The mac builds started to fail with a crate resolution issue that I
can't reproduce locally shortly after I updated the cache action.  Let's
tweak the cache key to see if that clears things up.
2020-10-09 23:53:58 -07:00