Commit graph

88 commits

Author SHA1 Message Date
Matt Corallo
0fa18658cd Add CI runs on rustc beta on Windows and MacOS
This should catch any platform-specific behavior changes in rustc
before they land in stable.
2021-08-02 14:52:35 +00:00
Matt Corallo
24ae779652 Drop MSRV for no_std to 1.47 as that's what Ubuntu LTS ships with
...but disable it for now given core2 is broken (it claims an MSRV
of 1.47 but does not build).
2021-07-31 18:31:16 +00:00
Matt Corallo
a7934d7ece Disable fast-fail to let CI actually run even though beta is broken 2021-07-29 17:40:42 +00:00
Devrandom
2e8f4fef2f Test no_std instead of just hashbrown 2021-07-20 20:59:18 +02:00
Gene Ferneau
da7a851d47
Use hashbrown replacements for std equivalents 2021-06-18 21:54:21 +00:00
Matt Corallo
27d9feda58 Only check docs on rustc 1.52 as rustc stable now crashes 2021-06-17 15:41:16 +00:00
Matt Corallo
73576574a9 Update network graph sample used in benchmarks 2021-06-01 21:53:06 +00:00
Matt Corallo
ad20bc7f5a Update net_graph used for benchmarks to use new ser format. 2021-05-27 21:46:38 +00:00
Matt Corallo
3d1c72e73f Update net graph copy used in tests and bench for new format 2021-05-25 20:06:45 +00:00
Matt Corallo
5625c3ab52 Test lightning-persister on rustc 1.36 as well 2021-04-27 00:36:52 +00:00
Matt Corallo
c4ab6756dd Bump MSRV to 1.36.0
Debian is shipping 1.41 on oldstable and rust-bitcoin will likely
move to 1.36 over the coming months, so there's little reason to
wait on this.

cc https://github.com/rust-bitcoin/rust-bitcoin/issues/510
2021-04-27 00:36:52 +00:00
Valentine Wallace
11641fe99e
Test lightning-invoice on 1.30.0 2021-04-20 16:26:56 -04:00
Valentine Wallace
b516b3da19
Add lightning invoice fuzzing to CI 2021-04-09 10:08:27 -04:00
Matt Corallo
b1306b3b5d Run FS bench in CI as well 2021-04-07 22:55:44 -04:00
Matt Corallo
c2cd8d4855 Add a random real-world-network-graph test for the router
This is the same code as was recently failing in our benchmarks,
adapted to use a random starting seed instead of a fixed one and
a smaller iteration to reduce runtime.
2021-04-06 21:41:45 -04:00
Matt Corallo
d793a2fc7a Drop C bindings (which are now in a separate repo)
This allows us to drop the usually-failing C bindings CI check, and
makes Github code search more useful by dropping redundant things.
2021-03-08 13:43:00 -05:00
Matt Corallo
9b7609a8c5 Apply --cfg=fuzzing when fuzzing, as required by new secp256k1
Note that rust-fuzz wrappers (including honggfuzz) already apply
this for us.
2021-02-26 15:15:18 -05:00
Matt Corallo
454e01d30e Fetch network graph cache and run benchmarks on CI 2021-02-15 16:51:51 -05:00
Jeffrey Czyz
9860646e73
Add lightning-block-sync package and library
Defines an interface and related types for fetching block headers and
data from a block source (e.g., Bitcoin Core). Used to keep lightning in
sync with chain activity.
2021-02-03 17:45:54 -08:00
Matt Corallo
11f5e23357 Fix codecov by calling the new binary paths from rust 1.45
Rustc 1.45 moved the paths to test binaries, so we need to update
our CI scripts to run the correct ones under kcov.

The solution to this was pointed out by Val at
https://github.com/rust-bitcoin/rust-lightning/pull/774#issuecomment-763250623
2021-01-26 21:53:04 -05:00
Matt Corallo
07aff06f67 Bump MSRV for net-tokio to 1.45 as tokio 1.0 req very recent rustc 2021-01-26 18:37:04 -05:00
Matt Corallo
e12215ca8a [bindings] Use the same SipHash keys to make C++ header stable 2020-10-21 14:54:51 -04:00
Matt Corallo
36e732879a Ignore cbindgen version in latest-bindings-in-git check.
Currently the check_binidngs GitHub CI job always fails when there
is a new cbindgen release because the cbindgen version is in the
generated header file. When the new version doesn't change the
generated header except for the version number, we should ignore
the difference.
2020-10-12 12:17:26 -04:00
Ryan Loomba
262172cddb add linting to Github CI 2020-10-08 10:47:49 -07:00
Matt Corallo
89e40fe224 Don't let CI fail to check commits b/c git isn't configured in CI
This fixes #733 by just setting a dummy git name/email before
calling `git rebase` in CI.
2020-10-02 16:37:37 -04:00
Valentine Wallace
ce1f4562f5
Update CI to run build and tests on Macos and Windows in addition to Ubuntu.
We only run Macos and Windows on Rust stable, for efficient CI.
2020-09-17 16:07:39 -04:00
Valentine Wallace
b0e9b0107b
Remove unnecessary include in Github Actions script. 2020-09-17 16:07:39 -04:00
Valentine Wallace
b8a06d2945
Only link dead code when necessary in CI. 2020-09-17 16:07:36 -04:00
Matt Corallo
4d9532a165 Check each commit at least builds in CI 2020-09-15 19:24:08 -04:00
Matt Corallo
dbf4f58987 Remove the bindings crate from the root namespace to let it break
Until we get the bindings generation process super stable, let the
bindings get stale with respect to the main repo while still letting
`cargo check` pass.
2020-09-13 20:58:50 -04:00
Matt Corallo
0ab7f90578 Use Debian experimental in CI to match LLVM between rustc and clang 2020-09-10 22:03:32 -04:00
Matt Corallo
9f0fa04f62 Add CI run for bindings generation (though we'll allow it to fail) 2020-09-10 22:03:32 -04:00
Valentine Wallace
0ac5697bb8
Bump MSRV to 1.30.0
We wanted to bump to 1.29 to continue to support mrustc bootstrapping, but on 1.29
there's a bug preventing us from compiling the lightning package only, thus parts
of lightning-net-tokio cause a compilation error.

The advantage of bumping the MSRV is an improved borrow checker which should
enable improved code quality, and not having jump through weird hoops sometimes
to get 1.22 working.
2020-08-19 15:39:03 -04:00
Matt Corallo
7b0483eba8 Set codecov upload token
Docs seem to indicate this should only be required for private
repos, but we have builds failing claiming this needs to be
specified, so just set it manually.
2020-08-03 17:09:27 -04:00
Matt Corallo
21a90245e4 Fix step naming in fuzz tests in GitHub Actions 2020-04-24 16:55:09 -04:00
Matt Corallo
de1e58e1cb Run Github Actions on PRs, too 2020-04-24 16:55:09 -04:00
Franck Royer
06419a2608
Add a pop of colour 2020-04-24 15:06:15 +10:00
Franck Royer
355dbbcde9
Add CI using GitHub Action
Same setup than Travis except for removing
`rm -f target/debug/lightning-*` as I do not believe
such file would exist on a fresh run.

I have not setup caching at this stage. The library is
small so I don't think it'd be that necessary/helpful.

I'd recommend to let both CI run for a bit to compare
performance and stability. The CI setup is straightforward
so I do not foresee any issue with GitHub actions.

Once happy, Travis file can be removed and branch
protection checks can be updated to block on the GitHub
actions.

You can also check the [Coverage report](752a58bc04/lightning/src/chain) to ensure it is as expected.
2020-04-24 14:49:22 +10:00