Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
44 changes: 2 additions & 42 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,12 +39,6 @@ env:
# this fix not yet in stable: https://github.com/rust-lang/rust-clippy/issues/8895.
# Remove the following line again as soon as `clippy` on stable succeeds again.
CLIPPY_ALLOWED: clippy::extra_unused_lifetimes
# We plan to fully support RISC-V as a bytecode for contracts soon.
# RISC-V does not have a standard library in contrast to Wasm. Compiling against
# this target also makes sure that we don't pull in `std` by accident (through dependencies).
# RISC-V is a modular architecture. We might switch to a different flavor with more features
# later. For example, `riscv32imc-unknown-none-elf`.
RISCV_TARGET: riscv32ema-unknown-none-elf

concurrency:
# Cancel in-progress jobs triggered only on pull_requests
Expand Down Expand Up @@ -230,7 +224,7 @@ jobs:
strategy:
fail-fast: false
matrix:
type: [STD, WASM, RISCV]
type: [STD, WASM]
steps:
- name: Checkout
uses: actions/checkout@v4
Expand Down Expand Up @@ -261,17 +255,6 @@ jobs:
--manifest-path ./crates/${crate}/Cargo.toml;
done

- name: Check RISCV
if: ${{ matrix.type == 'RISCV-disabled' }}
env:
RUSTC_BOOTSTRAP: 1
RUSTUP_TOOLCHAIN: rve-nightly
run: |
for crate in ${ALSO_WASM_CRATES}; do
cargo check --no-default-features --target $RISCV_TARGET -Zbuild-std="core,alloc" \
--manifest-path ./crates/${crate}/Cargo.toml;
done

dylint:
runs-on: ubuntu-latest
defaults:
Expand Down Expand Up @@ -617,15 +600,8 @@ jobs:
strategy:
fail-fast: false
matrix:
type: [WASM, RISCV]
type: [WASM]
partition: [1, 2, 3, 4]
exclude:
- type: RISCV
partition: 2
- type: RISCV
partition: 3
- type: RISCV
partition: 4
steps:
- name: Checkout
uses: actions/checkout@v4
Expand Down Expand Up @@ -658,22 +634,6 @@ jobs:
popd
fi

- name: Build Contract RISCV Examples
if: ${{ matrix.type == 'RISCV-disabled' }}
env:
RUSTC_BOOTSTRAP: 1
RUSTUP_TOOLCHAIN: rve-nightly
run: |
rustup component add rust-src --toolchain stable
cargo contract -V
# We skip some examples for those reasons:
# This uses dlmalloc which is only supported on select targets.
# - custom_allocator
# Pulls in sp-std which needlessly requires atomic pointers (TODO: Fix sp-std and enable this example)
# - call-runtime
scripts/for_all_contracts_exec.sh --path integration-tests --ignore public/custom-allocator --ignore public/call-runtime --ignore public/contract-xcm \
-- cargo build --manifest-path {} --no-default-features --target $RISCV_TARGET -Zbuild-std="core,alloc"

examples-docs:
runs-on: ubuntu-latest
needs: [set-image, build]
Expand Down
20 changes: 20 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,26 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Update the v5 lint compiler and Dylint dependencies for current Rust contracts.
- Avoid a generated `clone_on_copy` warning without requiring account IDs to be `Copy`.

### Breaking changes

- Update contract host bindings to UAPI 14. `CallFlags::all()` and flag negation
now include `READ_ONLY`. Select the flags needed by a call explicitly; older
contracts pallets reject the new flag. RISC-V contract builds are no longer
supported; use the Wasm target.
- Update SCALE encoding/decoding traits to `scale-encode` 0.10 and `scale-decode`
0.16. Custom environment types implementing `ink_env::CodecAsType` must use
these versions in `std` builds.
- Update XCM types to 14.1. Builder arguments now accept convertible values;
remove redundant `.into()` calls where type inference becomes ambiguous.
`MAX_XCM_ENCODED_SIZE` is removed, XCM v2 is deprecated, and v3/v4 `OriginKind`
and `GetWeight` no longer share their v2 definitions. Code mixing these
definitions must use the types for its message version.
- Update `ink_e2e` to Subxt 0.51. Custom integrations must update their Subxt
configurations, signers and event decoding. Client and test-node constructors
now require `Config: Default`, and `OnlineClient::tx()` is asynchronous. E2E
tests use `SubstrateConfig` by default; `PolkadotConfig` remains available for
the Polkadot relay chain.

## Version 5.1.1

## Fixed
Expand Down
Loading
Loading