Commit graph

97 commits

Author SHA1 Message Date
Matthias
d616411668 Update to newest output syntax 2024-01-05 17:53:15 +01:00
Matthias
089c737aeb simplify check 2024-01-05 17:39:35 +01:00
Matthias
d7965aa4fa Check if lychee-lib is already published 2024-01-05 17:32:39 +01:00
Matthias
6fa1ebefc9 Don't rebuild release on edit 2024-01-05 17:11:02 +01:00
Matthias
8a22b9f4fe Don't trigger Docker builds on tags if trigger is not coming through release workflow 2024-01-05 17:10:51 +01:00
Matthias
d2df655fff Only trigger Docker build on release completion
Also clean up other unneeded triggers.
2024-01-05 16:35:27 +01:00
Arkadiusz Skalski
9a89afefb1
ci: fix missing permissions for uploading release assets (#1330) 2024-01-05 15:36:14 +01:00
dependabot[bot]
f3ac86acbd
Bump the dependencies group with 1 update (#1321)
Bumps the dependencies group with 1 update: [actions/upload-artifact](https://github.com/actions/upload-artifact).

- [Release notes](https://github.com/actions/upload-artifact/releases)
- [Commits](https://github.com/actions/upload-artifact/compare/v3...v4)

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

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-12-18 18:17:17 +01:00
dependabot[bot]
0f83890a87
Bump the dependencies group with 5 updates (#1257)
Bumps the dependencies group with 5 updates:

| Package | From | To |
| --- | --- | --- |
| [docker/metadata-action](https://github.com/docker/metadata-action) | `4` | `5` |
| [docker/setup-qemu-action](https://github.com/docker/setup-qemu-action) | `2` | `3` |
| [docker/setup-buildx-action](https://github.com/docker/setup-buildx-action) | `2` | `3` |
| [docker/login-action](https://github.com/docker/login-action) | `2` | `3` |
| [docker/build-push-action](https://github.com/docker/build-push-action) | `4` | `5` |


Updates `docker/metadata-action` from 4 to 5
- [Release notes](https://github.com/docker/metadata-action/releases)
- [Upgrade guide](https://github.com/docker/metadata-action/blob/master/UPGRADE.md)
- [Commits](https://github.com/docker/metadata-action/compare/v4...v5)

Updates `docker/setup-qemu-action` from 2 to 3
- [Release notes](https://github.com/docker/setup-qemu-action/releases)
- [Commits](https://github.com/docker/setup-qemu-action/compare/v2...v3)

Updates `docker/setup-buildx-action` from 2 to 3
- [Release notes](https://github.com/docker/setup-buildx-action/releases)
- [Commits](https://github.com/docker/setup-buildx-action/compare/v2...v3)

Updates `docker/login-action` from 2 to 3
- [Release notes](https://github.com/docker/login-action/releases)
- [Commits](https://github.com/docker/login-action/compare/v2...v3)

Updates `docker/build-push-action` from 4 to 5
- [Release notes](https://github.com/docker/build-push-action/releases)
- [Commits](https://github.com/docker/build-push-action/compare/v4...v5)

---
updated-dependencies:
- dependency-name: docker/metadata-action
  dependency-type: direct:production
  update-type: version-update:semver-major
  dependency-group: dependencies
- dependency-name: docker/setup-qemu-action
  dependency-type: direct:production
  update-type: version-update:semver-major
  dependency-group: dependencies
- dependency-name: docker/setup-buildx-action
  dependency-type: direct:production
  update-type: version-update:semver-major
  dependency-group: dependencies
- dependency-name: docker/login-action
  dependency-type: direct:production
  update-type: version-update:semver-major
  dependency-group: dependencies
- dependency-name: docker/build-push-action
  dependency-type: direct:production
  update-type: version-update:semver-major
  dependency-group: dependencies
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-09-18 23:10:08 +02:00
dependabot[bot]
4ebb475a80
Bump the dependencies group with 1 update (#1254)
Bumps the dependencies group with 1 update: [actions/checkout](https://github.com/actions/checkout).

- [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/v3...v4)

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

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-09-17 21:42:18 +02:00
Keming
4dbbb5e674
ignore the error when deleting nightly tags (#1228)
Signed-off-by: Keming <kemingy94@gmail.com>
2023-08-17 16:23:25 +02:00
Keming
840bd90365
fix nightly release bash script (#1224)
Signed-off-by: Keming <kemingy94@gmail.com>
2023-08-17 14:19:06 +02:00
Keming
a3a058831d
Add nightly release (#1212) 2023-08-12 20:29:47 +02:00
Stefan Kreutz
d6ea7bbbc4
Improve 'cargo tree' check (#1200)
The '! cargo tree -i openssl-sys' command ignores when 'cargo tree'
fails for other reasons than not depending on the openssl-sys crate.
This commit changes the command to propagate such a failure.
2023-08-05 18:11:01 +02:00
Stefan Kreutz
b1b32e7717
Fix rustls-tls feature (#1194)
* Fix rustls-tls feature

Commit 14e74879 (cookie support #1146) re-introduced an unconditional
dependency on the openssl-sys crate. That is, building Lychee with the
Rustls TLS backend now requires OpenSSL. I suppose this change was
unintended, maybe due to automatic conflict resolution. If not, please
let me know.

You can review the re-introduced dependency like so:

```
cargo tree --no-default-features --features rustls-tls -i openssl-sys
```

This commit puts the OpenSSL dependency behind the native-tls feature
flag again.

You can check the TLS features like so:

```
cargo check --workspace --all-targets --features vendored-openssl

cargo check --workspace --all-targets --all-features

cargo check --workspace --all-targets --no-default-features --features rustls-tls
```

Maybe this should be added to CI. But I don't want to waste anybody's
time.

* Check feature flags during CI

Adds a new CI job 'check-feature-flags' to verify the following:

- Lychee with rustls-tls feature only doesn't depend on OpenSSL
- Cargo check passes with default features
- Cargo check passes with all features
- Cargo check passes with rustls-tls feature only
2023-08-04 15:11:29 +02:00
dependabot[bot]
ad7e1d0bfa
Bump actions/checkout from 2 to 3 (#1166)
Bumps [actions/checkout](https://github.com/actions/checkout) from 2 to 3.
- [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/v2...v3)

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

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-07-17 21:31:58 +02:00
Matthias Endler
1a1032f6a6
Set heading level to 2 2023-07-15 16:19:03 +02:00
Matthias Endler
798a7214a7
Update to latest toc-generator 2023-07-15 16:17:55 +02:00
Matthias Endler
df684048f7
Update toc-generator.yml 2023-07-15 16:15:33 +02:00
Manish Kuniyal
8341ab8ec6
Added TOC-generator (#1151) 2023-07-15 16:08:51 +02:00
Matthias Endler
f1adc788cf
Only create link issue on error 2023-06-30 23:46:25 +02:00
Dariusz Porowski
7a35a655d2
Alpine Docker Image Support (#1074) 2023-05-22 12:36:22 +02:00
Matthias
e9812e4295 Change back to macos-latest as there don't seem to be any bigger workers available right now 2023-04-25 17:54:57 +02:00
Matthias
ea077a22d9 Switch to new macOS workers
https://github.blog/changelog/2023-04-24-github-actions-faster-macos-runners-are-now-available-in-open-public-beta/
2023-04-25 15:49:04 +02:00
Matthias
58d6d414ee Add debug build 2023-04-25 15:23:59 +02:00
Matthias
3a594235cb Revert back to old release pipeline 2023-04-25 15:22:30 +02:00
Matthias
f9f2d7bc1d Don't try to upload release binaries on workflow_dispatch 2023-04-25 13:35:44 +02:00
Matthias Endler
942ce2984a
Create on-demand binaries (useful for debugging) (#1054) 2023-04-25 13:31:10 +02:00
Matthias Endler
64a36410b5
Build new Docker image on push to master 2023-04-12 00:56:15 +02:00
Matthias Endler
6c24a22df6
set latest tag for default branch 2023-04-12 00:54:13 +02:00
Matthias Endler
55797071b0
Fix nested URL extraction in verbatim elements (#988)
Skipping URLs in verbatim elements didn't take nested
elements into consideration, which were not verbatim.

For instance, the following HTML snippet would yield
`https://example.com` in non-verbatim mode, even if
it is nested inside a verbatim `<pre>` element:

```html
<pre><a href="https://example.com">link</a></pre>
```

This commit fixes the behavior for both `html5gum` and
`html5ever`.

Note that nested verbatim elements of the same kind
still are not handled correctly.

For instance,  the following HTML snippet would still yield
`https://example.com`:

```html
<pre>
  <pre></pre>
  <a href="https://example.com">link</a>
</pre>
```

The reason is that we currently only keep track of a single
verbatim element and not a stack of elements, which we
would need to unwind and resolve the situation.

Fixes https://github.com/lycheeverse/lychee/issues/986.
2023-03-11 15:18:25 +01:00
Matthias
08d71e6196 Add new test config, which covers all tests 2023-03-03 12:13:09 +01:00
Matthias
257ecd7bc0 disable all features flag (breaks example domain tests) 2023-03-03 12:13:09 +01:00
Matthias Endler
b4cc843f33 Add missing test- and linting flags 2023-03-03 12:13:09 +01:00
Lucius Hu
7abbaa218a
ci: update checkout action to v3 (#927)
Co-authored-by: Lucius Hu <lebensterben@users.noreply.github.com>
2023-01-21 16:13:48 +01:00
Matthias Endler
1c297b43be
Run publish-check in parallel with other jobs (#922)
I don't see the reason why publish-check has to wait for the other jobs to complete. After all, it's yet another "lint".
Running it in parallel might shave of a significant amount of time from our CI builds.
2023-01-17 15:02:30 +01:00
Matthias Endler
ece8b7310f
Try nextest for CI builds (#921) 2023-01-17 14:52:17 +01:00
Matthias Endler
11b693b37c
Add Github Actions cache (#919) 2023-01-17 14:30:16 +01:00
Matthias Endler
20ecb618e4
Fix automerge config (#904)
With the latest changes in https://github.com/lycheeverse/lychee/pull/893 I think I broke automerge.
Reverting some of the changes to fix that.
2023-01-05 14:51:36 +01:00
Matthias Endler
14707d19b3
Don't build Docker image for pushes to arbitrary branches (#894)
Avoids building Docker image twice on pull requests
2023-01-02 14:07:29 +01:00
Matthias Endler
ece6295b82
Update automerge config (#893) 2023-01-02 13:53:23 +01:00
Matthias
9927cc5702
Wait for crates.io publication
crates.io sometimes takes a bit until new releases
are available through the API.
This can break the binary release because it depends
on the lychee binary. Therefore let's wait a bit
instead of immediately publishing to reduce
the risk that this is happening.
2022-11-09 00:23:45 +01:00
Matthias
287624691b
Move back to cargo publish (#814) 2022-11-08 17:11:09 +01:00
Matthias
8a17b9e5c8
Add back execution of CI pipeline on tags 2022-11-08 12:41:48 +01:00
Matthias
cc1b1ce25d
Rename rust.yml to ci.yml 2022-11-03 11:11:40 +01:00
Matthias
5ac22a3207
Merge all updates as long as they pass CI (#737) 2022-08-16 12:21:07 +02:00
Matthias
344ec8120d
Update links.yml 2022-08-10 17:37:24 +02:00
Matthias
e4e8f5703d
Update auto-merge.yml 2022-08-08 16:03:44 +02:00
Matthias
72ed282c86
Create auto-merge.yml 2022-08-05 19:45:15 +02:00
faust
31566419a0
Automatically update Docker description on push (#697) 2022-07-22 17:12:01 +02:00