Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Standardised verifiable builds #1148

Merged
merged 73 commits into from
Jul 13, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
73 commits
Select commit Hold shift + click to select a range
b3eafd3
docker image + tokio
Jun 5, 2023
a11bb5b
docker client draft
Jun 5, 2023
ade7003
refactoring execute func
Jun 6, 2023
26328c6
successful docker build
Jun 6, 2023
773a2ff
persist flags in the main execution context
Jun 6, 2023
763cc77
docker readme + respect host flags
Jun 7, 2023
300b725
add build steps
Jun 7, 2023
7dca32b
better image, custom image arg, container reuse
Jun 8, 2023
55b72f1
fix readme example
Jun 8, 2023
f63a53e
Merge branch 'master' into gn/verifiable-build
Jun 8, 2023
9955f25
fix docs
Jun 8, 2023
5fe03fb
update README
Jun 8, 2023
47d63d0
docs fixes
Jun 12, 2023
6d3d7fd
clarification in the docs
Jun 12, 2023
334ed7c
use locked for cargo install
Jun 12, 2023
55ce730
concat install and cleanup commands
Jun 12, 2023
54e0291
use arg instead of env in dockerfile
Jun 13, 2023
e28ddcb
add version labels
Jun 13, 2023
a51ea03
update comments
Jun 13, 2023
80c9252
decompose the function
Jun 13, 2023
fd4773a
correct argument passing in dockerfile
Jun 13, 2023
b2eb769
refactoring
Jun 13, 2023
23bd332
more fixes
Jun 13, 2023
5bb5ca4
Merge branch 'master' into gn/verifiable-build
Jun 13, 2023
c706c83
using remote registry + bell & whistles (progress bars)
Jun 13, 2023
4c69b28
changelog entry
Jun 13, 2023
427f27b
fixes
Jun 13, 2023
000d302
refactoring
Jun 14, 2023
a8db873
explicitly specify versions of apt packages
Jun 15, 2023
8264529
refactoring
Jun 20, 2023
a86dcce
add module docs
Jun 20, 2023
5722084
Merge branch 'master' into gn/verifiable-build
Jun 20, 2023
2c419eb
refactoring
Jun 20, 2023
085a744
doc fix and optionally use git in docker image
Jun 20, 2023
913d2a9
Error handling for builds
Jun 20, 2023
1d84b3c
use single var in docker and refactor docker module
Jun 21, 2023
d237d73
notes on apple silicon
Jun 21, 2023
d0e00dd
remove unused arg in dockerfile
Jun 21, 2023
2f35698
use target path correctly
Jun 21, 2023
3e157f4
handle building with relative paths + permissions
Jun 26, 2023
b78d91e
Merge branch 'master' into gn/verifiable-build
Jun 26, 2023
9800402
more flags in docker image + fixes
Jun 26, 2023
e489c74
Merge branch 'master' into gn/verifiable-build
Jun 26, 2023
2fd00cf
remove unused code
Jun 26, 2023
02aa0af
add git info to docker metadata
Jun 26, 2023
fa95d79
use env to detect running OS
Jun 26, 2023
ea251da
detect host OS
Jun 26, 2023
696a5d1
non-root docker user
Jun 28, 2023
acf89ad
mount contract to home dir in docker
Jun 28, 2023
217ab6a
give permission to target to everyone
Jun 28, 2023
707bfb1
fix typo
Jun 28, 2023
f620dcc
use current uid and gid for docker
Jun 29, 2023
37ae55d
conditional compilation
Jun 29, 2023
dd6a89d
dont cache ci template and use musl in docker
Jun 29, 2023
5ec303b
OS specific code blocks
Jun 29, 2023
7209fa3
print error logs
Jul 3, 2023
85aceb1
Merge branch 'master' into gn/verifiable-build
Jul 3, 2023
6b8a028
remove the message
Jul 3, 2023
00d82b4
calculate digest in separate func
Jul 3, 2023
14d1236
filter our status msgs in error
Jul 3, 2023
b2faaff
update comments
Jul 4, 2023
73b7166
Merge branch 'master' into gn/verifiable-build
Jul 4, 2023
4700472
resolve other merge conflicts
Jul 4, 2023
0c40092
display container name
Jul 10, 2023
14ab832
Merge branch 'master' into gn/verifiable-build
Jul 10, 2023
92a7867
properly trancate error output
Jul 10, 2023
517b4bf
Merge branch 'master' into gn/verifiable-build
Jul 12, 2023
b6b66e9
apply Andrews suggestions
Jul 12, 2023
590b5b8
proper build step logs
Jul 12, 2023
d515504
fix generation of ABI
Jul 12, 2023
44958e3
hash the cmd, not entrypoint for digest
Jul 12, 2023
ad1ddc6
fix args parsing and add docs
Jul 13, 2023
6e02958
clippy fix
Jul 13, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

### Added
- Standardised verifiable builds - [#1148](https://github.com/paritytech/cargo-contract/pull/1148)

### Changed
- Dry-run result output improvements [1123](https://github.com/paritytech/cargo-contract/pull/1123)
- Dry-run result output improvements - [1123](https://github.com/paritytech/cargo-contract/pull/1123)
- Display build progress with --output-json, print to stderr [1211](https://github.com/paritytech/cargo-contract/pull/1211)

### Fixed
Expand All @@ -17,7 +20,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## [3.0.1]

### Fixed
- `[contract-build]` flush the remaining buffered bytes [1118](https://github.com/paritytech/cargo-contract/pull/1118)
- `[contract-build]` flush the remaining buffered bytes - [1118](https://github.com/paritytech/cargo-contract/pull/1118)

## [3.0.0]

Expand All @@ -28,7 +31,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Contracts are build as `bin` crate now (we used `cdylib` before) - [#1076](https://github.com/paritytech/cargo-contract/pull/1076)
- BREAKING CHANGE: Make sure that your contract is `no_main` by having this on top of your contract:
- `#![cfg_attr(not(feature = "std"), no_std, no_main)]`
- This will be detected and suggested for `error[E0601]` [#1113](https://github.com/paritytech/cargo-contract/pull/1113)
- This will be detected and suggested for `error[E0601]` - [#1113](https://github.com/paritytech/cargo-contract/pull/1113)
- Update contracts node metadata (#1105)
- Compatible with `substrate-contracts-node 0.25.0-a2b09462c7c`

Expand Down
Loading
Loading