-
Notifications
You must be signed in to change notification settings - Fork 244
github actions ci #559
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
Merged
github actions ci #559
Changes from all commits
Commits
Show all changes
21 commits
Select commit
Hold shift + click to select a range
5a68f14
fix no-default-features tests
ordian fc7586e
github actions
ordian ef183b6
remove appveyor and travis configs
ordian 61ab409
fmt
ordian 152bcf7
try to fix windows
ordian f5746ff
try single quotes?
ordian 89b3da9
try resolver=2 ???
ordian 10ce3a3
update the badge
ordian e909926
hmmmm
ordian cc3e037
use use-cross
ordian 29ddf92
Revert "hmmmm"
ordian c1ac1d3
final boss
ordian 385e6f0
Revert "final boss"
ordian 58d88cf
listen
ordian 68abc0f
if you had
ordian c03cb44
one shot
ordian 709b938
one opportunity
ordian 4148c20
5G
ordian 83298b3
run CI on push to master as well
ordian 8f7fde5
review feedback
ordian ca803cc
cache cargo check
ordian File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 | ||
ordian marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| 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' | ||
TriplEight marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
|
||
| - 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 | ||
TriplEight marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| with: | ||
| command: fmt | ||
| args: --all -- --check | ||
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,4 +1,5 @@ | ||
| [workspace] | ||
| resolver = "2" | ||
| members = [ | ||
| "contract-address", | ||
| "fixed-hash", | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 | ||
| [](https://github.com/paritytech/parity-common/actions/workflows/ci.yml) | ||
|
|
||
| # parity-common | ||
| Collection of crates used in [Parity Technologies](https://www.paritytech.io/) projects |
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.