Jack Grigg
6898dbf094
Replace `unstable-nu6` and `zfuture` feature flags with cfg flags
...
Neither of these should have been feature flags, as they gate breaking
changes to the Zcash consensus rules (and in some ways are incompatible
with each other), while feature flags should be additive.
2024-03-10 18:42:39 +00:00
Jack Grigg
98c82eb6c6
CI: Stop actively testing ZFuture and instead just check it builds
2024-03-10 18:03:50 +00:00
Jack Grigg
93048c6c46
CI: Separate test "state" from the feature flags activated by it
2024-03-10 18:01:33 +00:00
Jack Grigg
10e1bb6001
CI: Continue tests on error if test failures are in an unstable flag
2024-03-10 01:26:06 +00:00
Jack Grigg
b8b19dfe11
CI: Trigger on pushes to `main` branch
2024-03-08 23:41:50 +00:00
Jack Grigg
e4a8b3abd4
CI: Remove timeouts from rustfmt and clippy
2024-03-08 22:01:48 +00:00
Jack Grigg
f12b2b5a1f
CI: Add caching
2024-03-08 21:23:28 +00:00
Jack Grigg
46f2815ad3
CI: Only run CI workflow once per PR
...
The previous configuration would run CI twice for every PR, on:
- The merge commit with the base branch.
- The tip commit of the PR branch.
The latter is only useful for debugging. However, we still want to run
CI directly on the `main` branch, to ensure that any PRs with runtime
conflicts but not code conflicts get tested in combination.
2024-03-08 20:35:04 +00:00
Jack Grigg
e7be194912
CI: Use faster Ubuntu and Windows runners for testing
2024-03-08 20:35:04 +00:00
Jack Grigg
85095af96e
CI: Also set `RUSTDOCFLAGS`
...
`rustdoc` doesn't support all the same flags as `rustc`, so it doesn't
listen to `RUSTFLAGS` and has its own env variable. We are only setting
flags that both understand.
2024-01-27 00:31:00 +00:00
Jack Grigg
c5af1e0dd2
CI: Fix passing feature flags into preparation action step
2024-01-27 00:03:03 +00:00
dependabot[bot]
fcf66959e4
build(deps): bump codecov/codecov-action from 3.1.4 to 3.1.5
...
Bumps [codecov/codecov-action](https://github.com/codecov/codecov-action ) from 3.1.4 to 3.1.5.
- [Release notes](https://github.com/codecov/codecov-action/releases )
- [Changelog](https://github.com/codecov/codecov-action/blob/main/CHANGELOG.md )
- [Commits](https://github.com/codecov/codecov-action/compare/v3.1.4...v3.1.5 )
---
updated-dependencies:
- dependency-name: codecov/codecov-action
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2024-01-26 05:06:58 +00:00
str4d
6174055fa3
Merge pull request #1134 from zcash/ci-reduce-macos-builds
...
CI: Don't test `unstable-nu6` and `zfuture` feature flags on macOS
2024-01-25 22:26:31 +00:00
Jack Grigg
9456d31f23
CI: Don't test `unstable-nu6` and `zfuture` feature flags on macOS
...
This reduces the number of macOS runner jobs in each PR from 10 to 6, or
from 5 to 3 for external PRs. GitHub's macOS runners are noticeably
slower than their other runners, and our available free runner slots are
being quickly exhausted when we have multiple PRs open.
2024-01-25 21:19:50 +00:00
Jack Grigg
c52a26cd8e
CI: Copy patch directives into synthetic crate
2024-01-25 19:49:46 +00:00
Kris Nuttycombe
184e3c741f
Add `zcash_unstable` compiler flag to fully gate `orchard` functionality
2024-01-24 17:48:10 -07:00
Jack Grigg
5187a2dafb
CI: Replace `--all-features` with common feature config
...
Part of zcash/librustzcash#1123 .
2024-01-24 23:41:43 +00:00
Jack Grigg
c8d4dacfc1
CI: Move testing of unstable features into a separate job
...
Closes zcash/librustzcash#1109 .
2024-01-16 22:36:53 +00:00
Jack Grigg
3789e46700
CI: Add lint to check protobuf consistency with generated files
...
Closes zcash/librustzcash#1098 .
2024-01-05 21:03:01 +00:00
str4d
e4b9d73d0c
Merge pull request #1003 from nuttycom/wallet/reusable_input_selection
...
zcash_client_backend: Factor out `InputSource` from `WalletRead`
2023-11-08 20:20:03 +00:00
Kris Nuttycombe
aa063ae3fd
zcash_client_backend: Factor out input source traits from `WalletRead`
...
Prior to this change, it's necessary to implement the entirety of the
`WalletRead` trait in order to be able to use the input selection
functionality provided by `zcash_client_backend::data_api::input_selection`.
This change factors out the minimal operations required for transaction
proposal construction to better reflect the principle of least authority
and make the input selection code reusable in more contexts.
In order to minimize the operations of the newly-created `InputSource`
and `ShieldingSource` traits, this change also removes the
`min_confirmations` field from transaction proposals, in favor of
storing explicit target and anchor heights. This has the effect of
limiting the lifetime of transaction proposals to `PRUNING_DEPTH -
min_confirmations` blocks.
2023-11-08 12:41:49 -07:00
Kris Nuttycombe
c915c93862
Merge pull request #1017 from nuttycom/test_with_bundled_prover
...
Test with bundled prover instead of local prover.
2023-11-07 13:14:47 -07:00
Jack Grigg
c846fba564
CI: Build `wasm32-wasi` in a synthetic crate
...
This target is incompatible with various crates that we use for testing.
However, when those crates are enabled via dev-dependencies, they become
part of the build graph and prevent us from building the regular code.
Downstream crates don't inherit dev-dependencies, so we simulate this
directly in CI.
2023-11-03 23:57:10 +00:00
Kris Nuttycombe
ea7c608f45
Remove parameters download step from github CI
...
Now that the tests use the bundled prover, we no longer need them to
download the zcash parameters files.
2023-11-03 16:13:38 -06:00
Jack Grigg
7b53b711e2
CI: Fix Codecov job command
...
`cargo tarpaulin` has changed the case of one of its config options.
2023-09-26 23:04:29 +00:00
Kris Nuttycombe
dc62ee149f
Merge branch 'release-lwsdk-2.0.0' into post-lwsdk-2.0.0-merge
2023-09-25 16:23:02 -06:00
Jack Grigg
a3332c4267
CI: Add lint to check UUID validity
2023-09-25 11:57:08 +00:00
str4d
ba8cb2eff5
Merge pull request #954 from zcash/dependabot/github_actions/actions/cache-3.3.2
...
build(deps): bump actions/cache from 3.3.1 to 3.3.2
2023-09-14 23:22:56 +01:00
Jack Grigg
c1dc648cf0
CI: Add job to build with latest Rust and dependencies
...
This ensures that we catch non-MSRV compilation breakages caused by
SemVer updates.
2023-09-11 23:50:11 +00:00
dependabot[bot]
3a7ef20947
build(deps): bump actions/cache from 3.3.1 to 3.3.2
...
Bumps [actions/cache](https://github.com/actions/cache ) from 3.3.1 to 3.3.2.
- [Release notes](https://github.com/actions/cache/releases )
- [Changelog](https://github.com/actions/cache/blob/main/RELEASES.md )
- [Commits](https://github.com/actions/cache/compare/v3.3.1...v3.3.2 )
---
updated-dependencies:
- dependency-name: actions/cache
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2023-09-08 05:24:37 +00:00
dependabot[bot]
75d4f28b9c
build(deps): bump actions/checkout from 3 to 4
...
Bumps [actions/checkout](https://github.com/actions/checkout ) from 3 to 4.
- [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
...
Signed-off-by: dependabot[bot] <support@github.com>
2023-09-05 05:54:36 +00:00
dependabot[bot]
f1a2b95018
Bump codecov/codecov-action from 3.1.3 to 3.1.4
...
Bumps [codecov/codecov-action](https://github.com/codecov/codecov-action ) from 3.1.3 to 3.1.4.
- [Release notes](https://github.com/codecov/codecov-action/releases )
- [Changelog](https://github.com/codecov/codecov-action/blob/main/CHANGELOG.md )
- [Commits](https://github.com/codecov/codecov-action/compare/v3.1.3...v3.1.4 )
---
updated-dependencies:
- dependency-name: codecov/codecov-action
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2023-05-16 05:57:59 +00:00
dependabot[bot]
554c712ac8
Bump codecov/codecov-action from 3.1.2 to 3.1.3
...
Bumps [codecov/codecov-action](https://github.com/codecov/codecov-action ) from 3.1.2 to 3.1.3.
- [Release notes](https://github.com/codecov/codecov-action/releases )
- [Changelog](https://github.com/codecov/codecov-action/blob/main/CHANGELOG.md )
- [Commits](https://github.com/codecov/codecov-action/compare/v3.1.2...v3.1.3 )
---
updated-dependencies:
- dependency-name: codecov/codecov-action
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2023-04-21 05:58:44 +00:00
dependabot[bot]
851bda8612
Bump codecov/codecov-action from 3.1.1 to 3.1.2
...
Bumps [codecov/codecov-action](https://github.com/codecov/codecov-action ) from 3.1.1 to 3.1.2.
- [Release notes](https://github.com/codecov/codecov-action/releases )
- [Changelog](https://github.com/codecov/codecov-action/blob/main/CHANGELOG.md )
- [Commits](https://github.com/codecov/codecov-action/compare/v3.1.1...v3.1.2 )
---
updated-dependencies:
- dependency-name: codecov/codecov-action
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2023-04-12 05:58:13 +00:00
dependabot[bot]
19daa67bbb
Bump actions/cache from 3.2.4 to 3.3.1
...
Bumps [actions/cache](https://github.com/actions/cache ) from 3.2.4 to 3.3.1.
- [Release notes](https://github.com/actions/cache/releases )
- [Changelog](https://github.com/actions/cache/blob/main/RELEASES.md )
- [Commits](https://github.com/actions/cache/compare/v3.2.4...v3.3.1 )
---
updated-dependencies:
- dependency-name: actions/cache
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
2023-03-13 05:18:44 +00:00
Kris Nuttycombe
d456697fa6
Merge pull request #769 from zcash/dependabot/github_actions/actions/cache-3.2.4
...
Bump actions/cache from 3.2.2 to 3.2.4
2023-02-02 11:15:08 -07:00
Jack Grigg
aca56b5d5a
CI: Replace `actions-rs/toolchain` with `dtolnay/rust-toolchain`
...
Now that dtolnay/rust-toolchain#53 has been closed, we can migrate
away from the unmaintained actions-rs/toolchain.
2023-02-02 17:07:39 +00:00
Jack Grigg
a4d7254406
CI: Replace most unmaintained `actions-rs/*` actions
...
The actions-rs/* actions are unmaintained. See actions-rs/toolchain#216
for more information.
- actions-rs/toolchain is replaced by rust-toolchain.toml.
- actions-rs/cargo is replaced by direct cargo usage.
- actions-rs/tarpaulin is replaced by the cargo-tarpaulin container.
We currently retain a few usages due to a current lack of alternatives:
- actions-rs/toolchain to enable beta (for Clippy warnings) and nightly
(for building the book).
- actions-rs/clippy-check so Clippy results are published as annotations
on PRs.
We also now require via rust-toolchain.toml that people building from
the repo have the clippy and rustfmt components installed. This is fine
because they will need to ensure these pass when making PRs.
2023-02-01 17:18:24 +00:00
dependabot[bot]
056f2f0a73
Bump actions/cache from 3.2.2 to 3.2.4
...
Bumps [actions/cache](https://github.com/actions/cache ) from 3.2.2 to 3.2.4.
- [Release notes](https://github.com/actions/cache/releases )
- [Changelog](https://github.com/actions/cache/blob/main/RELEASES.md )
- [Commits](https://github.com/actions/cache/compare/v3.2.2...v3.2.4 )
---
updated-dependencies:
- dependency-name: actions/cache
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2023-01-31 05:02:23 +00:00
Jack Grigg
49b1cb3e69
Bump MSRV for `zcash_primitives` and dependents to 1.60
...
The MSRVs of the component crates are left as-is, partly because our
dependencies don't require us to bump them, and partly because those
crates have no pending changes and are relatively stable. We also plan
to split the component crates out into a separate repository, where it
will be easier to have a separate MSRV.
Closes zcash/librustzcash#759 .
2023-01-19 23:48:24 +00:00
dependabot[bot]
d6b76cc799
Bump actions/cache from 3.0.11 to 3.2.2
...
Bumps [actions/cache](https://github.com/actions/cache ) from 3.0.11 to 3.2.2.
- [Release notes](https://github.com/actions/cache/releases )
- [Changelog](https://github.com/actions/cache/blob/main/RELEASES.md )
- [Commits](https://github.com/actions/cache/compare/v3.0.11...v3.2.2 )
---
updated-dependencies:
- dependency-name: actions/cache
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
2022-12-28 05:05:13 +00:00
Jack Grigg
379b703e6b
zcash_client_backend: Switch from `protobuf 2` to `prost 0.11`
...
The latter is maintained by the Tokio developers, and has easy
integration with the `tonic` gRPC library which is actively maintained.
2022-11-02 06:21:38 +00:00
dependabot[bot]
fb299e2988
build(deps): bump actions/cache from 3.0.10 to 3.0.11
...
Bumps [actions/cache](https://github.com/actions/cache ) from 3.0.10 to 3.0.11.
- [Release notes](https://github.com/actions/cache/releases )
- [Changelog](https://github.com/actions/cache/blob/main/RELEASES.md )
- [Commits](https://github.com/actions/cache/compare/v3.0.10...v3.0.11 )
---
updated-dependencies:
- dependency-name: actions/cache
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2022-10-14 05:14:02 +00:00
Jack Grigg
f27d3bca7f
CI: Switch back to published cargo-tarpaulin releases
...
The llvm-profparser branch has been merged and deleted.
2022-10-11 20:42:52 +00:00
dependabot[bot]
4fe49fd931
build(deps): bump actions/cache from 3.0.8 to 3.0.10
...
Bumps [actions/cache](https://github.com/actions/cache ) from 3.0.8 to 3.0.10.
- [Release notes](https://github.com/actions/cache/releases )
- [Changelog](https://github.com/actions/cache/blob/main/RELEASES.md )
- [Commits](https://github.com/actions/cache/compare/v3.0.8...v3.0.10 )
---
updated-dependencies:
- dependency-name: actions/cache
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2022-10-04 05:13:45 +00:00
dependabot[bot]
dc2118e010
build(deps): bump codecov/codecov-action from 3.1.0 to 3.1.1
...
Bumps [codecov/codecov-action](https://github.com/codecov/codecov-action ) from 3.1.0 to 3.1.1.
- [Release notes](https://github.com/codecov/codecov-action/releases )
- [Changelog](https://github.com/codecov/codecov-action/blob/master/CHANGELOG.md )
- [Commits](https://github.com/codecov/codecov-action/compare/v3.1.0...v3.1.1 )
---
updated-dependencies:
- dependency-name: codecov/codecov-action
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2022-09-20 05:16:17 +00:00
Jack Grigg
d21b18d245
CI: Migrate to `cargo-tarpaulin` branch with LLVM source coverage engine
2022-09-14 15:55:12 +00:00
dependabot[bot]
d784c7b1ec
build(deps): bump actions/cache from 3.0.7 to 3.0.8
...
Bumps [actions/cache](https://github.com/actions/cache ) from 3.0.7 to 3.0.8.
- [Release notes](https://github.com/actions/cache/releases )
- [Changelog](https://github.com/actions/cache/blob/main/RELEASES.md )
- [Commits](https://github.com/actions/cache/compare/v3.0.7...v3.0.8 )
---
updated-dependencies:
- dependency-name: actions/cache
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2022-08-23 05:15:52 +00:00
dependabot[bot]
61e6376c76
build(deps): bump actions/cache from 3.0.5 to 3.0.7
...
Bumps [actions/cache](https://github.com/actions/cache ) from 3.0.5 to 3.0.7.
- [Release notes](https://github.com/actions/cache/releases )
- [Changelog](https://github.com/actions/cache/blob/main/RELEASES.md )
- [Commits](https://github.com/actions/cache/compare/v3.0.5...v3.0.7 )
---
updated-dependencies:
- dependency-name: actions/cache
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2022-08-12 05:15:06 +00:00
dependabot[bot]
d9da63ebb0
build(deps): bump actions/cache from 3.0.4 to 3.0.5
...
Bumps [actions/cache](https://github.com/actions/cache ) from 3.0.4 to 3.0.5.
- [Release notes](https://github.com/actions/cache/releases )
- [Changelog](https://github.com/actions/cache/blob/main/RELEASES.md )
- [Commits](https://github.com/actions/cache/compare/v3.0.4...v3.0.5 )
---
updated-dependencies:
- dependency-name: actions/cache
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2022-07-13 05:20:32 +00:00