Commit graph

87 commits

Author SHA1 Message Date
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
Matthias
005ce05c24
Trigger CI on push or pull request, but not both (#689)
See
https://github.community/t/how-to-trigger-an-action-on-push-or-pull-request-but-not-both/16662
for more info
2022-07-11 18:07:46 +02:00
MichaIng
fb4c6d5559
Skip Docker login on PRs from forks (#586)
Since github.repository_owner refers to the base repository on pull request events, while secrets need to exist on the head repository, the Docker Hub login fails for pull requests opened from forks. This commit assures that this step in case of pull request events only runs for internal pull requests, i.e. when head and base repository are the same.

For the actual Docker Hub upload, no change is required: The build can run in every case, the upload is not done on pull request events in general.

Signed-off-by: MichaIng <micha@dietpi.com>
2022-04-06 19:35:28 +02:00
Matthias
8d9619fb67
Only build release image when release workflow was completed 2022-03-22 20:11:15 +01:00
Matthias
8067e74053
Fix default branch 2022-03-22 19:43:08 +01:00
Matthias
6887543105
Skip Docker push for dependabot PRs 2022-02-18 16:29:26 +01:00
Matthias
21c92ef977
Disable Docker login for dependabot (#519)
See https://github.com/docker/login-action/issues/65
2022-02-18 16:08:48 +01:00
Matthias
d821168f24
Only login to Dockerhub on image push (#515) 2022-02-18 10:49:47 +01:00
Matthias
812663d832
Prevent flaky tests (#514)
Move from example.org to example.com, which seems to be more permissive for testing
2022-02-18 10:29:49 +01:00
Matthias
97e89d7f7b
Multiarch for main Docker workflow (#506) 2022-02-11 16:12:07 +01:00
Matthias
71f3877933
Start pushing on non-pull request 2022-02-11 09:45:40 +01:00