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
160 changes: 160 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,160 @@
on:
pull_request:
push:
branches:
- master

name: Continuous integration

jobs:
check:
name: Check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true

- name: Rust Cache
uses: Swatinem/rust-cache@v1.3.0

- uses: actions-rs/cargo@v1
with:
command: check
args: --workspace --all-targets

test:
name: Test
runs-on: ${{ matrix.os }}
strategy:
matrix:
os:
- ubuntu-latest
- windows-latest
- macOS-latest
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true

- name: Rust Cache
uses: Swatinem/rust-cache@v1.3.0

- name: Remove msys64 # Workaround to resolve link error with C:\msys64\mingw64\bin\libclang.dll
if: runner.os == 'Windows'
run: Remove-Item -LiteralPath "C:\msys64\" -Force -Recurse

- name: Install dependencies
if: runner.os == 'Windows'
run: choco install llvm -y

- run: rustup target add wasm32-unknown-unknown

- name: Test no-default-features
uses: actions-rs/cargo@v1
with:
command: test
args: --workspace --no-default-features

- name: Test default features
uses: actions-rs/cargo@v1
with:
command: test
args: --workspace

- name: Test uint
uses: actions-rs/cargo@v1
with:
command: test
args: -p uint --all-features

- name: Test fixed-hash no_std
run: cargo test -p fixed-hash --no-default-features --features='byteorder,rustc-hex'

- name: Test fixed-hash all-features
uses: actions-rs/cargo@v1
with:
command: test
args: -p fixed-hash --all-features

- name: Test primitive-types no_std
run: cargo test -p primitive-types --no-default-features --features='scale-info,num-traits,serde_no_std'

- name: Test primitive-types all-features
uses: actions-rs/cargo@v1
with:
command: test
args: -p primitive-types --all-features

- name: Build ethereum-types no_std
run: cargo build -p ethereum-types --no-default-features --features='serialize,rlp' --target=wasm32-unknown-unknown

- name: Test ethereum-types all-features
uses: actions-rs/cargo@v1
with:
command: test
args: -p ethereum-types --all-features

- name: Test ethbloom all-features
uses: actions-rs/cargo@v1
with:
command: test
args: -p ethbloom --all-features

- name: Test parity-crypto all-features
uses: actions-rs/cargo@v1
with:
command: test
args: -p parity-crypto --all-features

- name: Test uint on bigendian
if: runner.os == 'Linux'
uses: actions-rs/cargo@v1
with:
use-cross: true
command: test
args: -p uint --target=mips64-unknown-linux-gnuabi64

- name: Test parity-util-mem on Android
if: runner.os == 'Linux'
uses: actions-rs/cargo@v1
with:
use-cross: true
command: test
args: -p parity-util-mem --target=aarch64-linux-android

- name: Test parity-util-mem estimate-heapsize
run: cargo test -p parity-util-mem --features='estimate-heapsize'

- name: Test parity-util-mem jemalloc-global
run: cargo test -p parity-util-mem --features='jemalloc-global'

- name: Test parity-util-mem mimalloc-global
if: runner.os != 'Windows'
run: cargo test -p parity-util-mem --features='mimalloc-global'

- name: Test parity-util-mem dlmalloc-global
if: runner.os != 'Windows'
run: cargo test -p parity-util-mem --no-default-features --features='dlmalloc-global'

fmt:
name: Rustfmt
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
- run: rustup component add rustfmt
- uses: actions-rs/cargo@v1
with:
command: fmt
args: --all -- --check
69 changes: 0 additions & 69 deletions .travis.yml

This file was deleted.

1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
[workspace]
resolver = "2"
members = [
"contract-address",
"fixed-hash",
Expand Down
8 changes: 1 addition & 7 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,4 @@
[![Build Status travis][travis-image]][travis-url]
[![Build Status appveyor][appveyor-image]][appveyor-url]

[travis-image]: https://travis-ci.org/paritytech/parity-common.svg?branch=master
[travis-url]: https://travis-ci.org/paritytech/parity-common
[appveyor-image]: https://ci.appveyor.com/api/projects/status/github/paritytech/parity-common?branch=master&svg=true
[appveyor-url]: https://ci.appveyor.com/project/paritytech/parity-common/branch/master
[![Continuous integration](https://github.com/paritytech/parity-common/actions/workflows/ci.yml/badge.svg)](https://github.com/paritytech/parity-common/actions/workflows/ci.yml)

# parity-common
Collection of crates used in [Parity Technologies](https://www.paritytech.io/) projects
32 changes: 0 additions & 32 deletions appveyor.yml

This file was deleted.

1 change: 1 addition & 0 deletions parity-util-mem/tests/derive.rs
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ fn derive_ignore() {
}

#[test]
#[cfg(all(feature = "lru", feature = "hashbrown"))]
fn derive_morecomplex() {
#[derive(MallocSizeOf)]
struct Trivia {
Expand Down
4 changes: 3 additions & 1 deletion triehash/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,9 @@ where

#[cfg(test)]
mod tests {
use super::{hex_prefix_encode, shared_prefix_len, trie_root};
use super::*;
#[cfg(not(feature = "std"))]
use alloc::vec;
use ethereum_types::H256;
use hex_literal::hex;
use keccak_hasher::KeccakHasher;
Expand Down