Commit Graph
49 Commits
Author SHA1 Message Date
Wez Furlong 360b3f3479 ci: try uploading sha256 files alongside release assets
refs: #2114
2022-07-25 08:39:24 -07:00
Wez Furlong 156b0ae44c ci: skip full build when updating just the .markdown docs 2022-05-09 21:57:18 -07:00
Wez Furlong 55174056b9 ci: don't rebuild everything when changing no-response config 2022-04-21 08:00:24 -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 c885e5a65b ci: just split into two for now
I'm not confident that the PR filter in the last commit will work,
so just split into two workflows for now.
2021-12-11 23:35:30 -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 20c9badfc8 ci: another pass at uploading, with the repo checked out 2021-12-08 11:19:00 -07:00
Wez Furlong 03c7986bb0 ci: bleh, do retry inline as part of upload 2021-12-08 10:31:56 -07:00
Wez Furlong eeefca0908 ci: add dependency from upload -> build job 2021-12-08 10:16:58 -07:00
Wez Furlong f89f9b5b31 ci: try uploading to tag outside of docker container 2021-12-08 10:14:08 -07:00
Wez Furlong 1c0298c54d ci: capture artifact before uploading to release
This should make it possible to write a script to grab artifacts
and stick them into the appropriate release if something flakes out.
2021-12-06 19:37:33 -07:00
Wez Furlong 2d99e6e816 ci: fixup upload globs for ubuntu 2021-12-06 13:14:16 -07:00
Wez Furlong d19a61ae9c ci: more fun with apt 2021-12-06 10:50:52 -07:00
Wez Furlong 6a310c4bd4 ci: ensure APT can use https sources 2021-12-06 10:40:51 -07:00
Wez Furlong c033160500 ci: try to debug the debian issue 2021-12-06 10:21:06 -07:00
Wez Furlong e1260b2337 ci: another stab at quoting for this GH key stuff
Objectively awful, but avoids a python dep on yaml
2021-12-06 10:12:25 -07:00
Wez Furlong aa200ae8aa ci: try alternate quoting for the GH key install 2021-12-06 10:05:29 -07:00
Wez Furlong 4d5af41f91 ci: fix missing python f"" for "{sudo}" 2021-12-06 09:54:17 -07:00
Wez Furlong c942dbe02d ci: need curl installed before we can do the GH cli install on debian 2021-12-06 09:52:19 -07:00
Wez Furlong be1b54ba33 ci: try installing GH inside containers
`gh` is pre-installed in native runners only; when we build in a
container, we need to install it for ourselves.

This commit drops support for building on centos7 as it is a PITA
to get this working there.
2021-12-06 09:45:14 -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
Chip Senkbeil 7d5c301c66 Ensure /run/sshd exists, explicitly set username in sshd fixture, add back use_privilege_mode no 2021-10-10 14:54:45 -07:00
Chip Senkbeil 68fd2035cd Rebase and re-apply openssh-server addition to CIs 2021-10-10 14:54:45 -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 66f97b0db0 ignore template edits in CI 2021-08-17 17:43:19 -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 1af47804d2 ci: fixup cirrus exclusion 2021-03-28 20:39:49 -07:00
Wez Furlong e7e90c7390 ci: pass PATH into get-deps
I think this will help find rustc for platforms that use sudo
2021-03-28 20:33:32 -07:00
Wez Furlong 951d15f2a1 ci: avoid building binaries just for doc changes 2021-02-20 10:57:37 -08:00
Wez Furlong d28dca4b0a ci: update to actions/cache@v2.1.4 2021-02-07 22:49:52 -08:00
Wez Furlong 89438c2947 more updates for master -> main 2021-02-03 21:51:01 -08:00
Wez Furlong eb8923f3c5 ci: adjust continuous/nightly schedule
This commit reduces the cron schedule for nightly builds down from
hourly and to actually nightly (at ~3am).

The push-to-master flow now triggers effectively the same thing at push
time, so if anything, this will reduce the latency of the continuous
package build and deploy.

The push-to-master flow will now skip builds if it changes only the
docs.
2021-01-30 12:34:54 -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 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
Wez Furlong 22b6123624 ci: update to actions/cache@v2 2020-10-09 21:02:00 -07:00
Wez Furlong 79e5c0e52d CI: set debconf to non-interactive and unblock ubuntu20
Also using sudo in the CI config if we don't need it.
2020-05-03 22:37:31 -07:00
Wez Furlong ba804589fd Generate builds for more platforms
tweak some container names

fixup container names and regenerate the config

Ensure that curl is installed

the rust toolchain stuff wants curl

run apt update before apt install

centralize updating apt, and install sudo

revise get-deps script for slimmer debian images

more container related tweaks

get-deps: Don't require lsb-release on debianish systems

more get-deps improvements

Explicitly ask GH actions to recursively checkout the repo

Explicitly install git

fetch tags and tweak git build for debian systems

moar adjustments

remove deb8 (its wayland is too old), fixup debian publish

Ensure git build deps are installed always, tidy up sudo usage
2020-05-03 15:11:35 -07:00