forked from rust-bitcoin/rust-bitcoin
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4 from lateminer/rust-qtum-update-to-upstream
Update to upstream
- Loading branch information
Showing
1,162 changed files
with
17,050 additions
and
10,601 deletions.
There are no files selected for viewing
This file contains 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,8 @@ | ||
# Set update schedule for GitHub Actions | ||
version: 2 | ||
updates: | ||
- package-ecosystem: "github-actions" | ||
directory: "/" | ||
schedule: | ||
# Check for updates to GitHub Actions every week | ||
interval: "weekly" |
This file contains 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 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,15 @@ | ||
name: GitHub Release | ||
|
||
on: | ||
push: | ||
tags: | ||
- '*' | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: ncipollo/release-action@v1 | ||
with: | ||
generateReleaseNotes: true |
This file contains 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 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,22 @@ | ||
on: | ||
push: | ||
branches: | ||
- master | ||
- 0.28.x | ||
- 0.29.x | ||
- 'test-ci/**' | ||
pull_request: | ||
|
||
name: Release | ||
|
||
jobs: | ||
release: | ||
name: Release - dry-run | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout Crate | ||
uses: actions/checkout@v4 | ||
- name: Checkout Toolchain | ||
uses: dtolnay/rust-toolchain@stable | ||
- name: run cargo | ||
run: contrib/release.sh |
This file contains 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,9 @@ | ||
on: [push, pull_request] | ||
on: | ||
push: | ||
branches: | ||
- master | ||
- 'test-ci/**' | ||
pull_request: | ||
|
||
name: Continuous integration | ||
|
||
|
@@ -10,16 +15,14 @@ jobs: | |
fail-fast: false | ||
steps: | ||
- name: Checkout Crate | ||
uses: actions/checkout@v3 | ||
uses: actions/checkout@v4 | ||
- name: Checkout Toolchain | ||
# https://github.com/dtolnay/rust-toolchain | ||
uses: dtolnay/rust-toolchain@stable | ||
- name: Running test script | ||
env: | ||
DO_COV: true | ||
DO_LINT: true | ||
AS_DEPENDENCY: false | ||
DO_NO_STD: true | ||
DO_DOCS: true | ||
DO_FEATURE_MATRIX: true | ||
DO_SCHEMARS_TESTS: true # Currently only used in hashes crate. | ||
|
@@ -32,13 +35,12 @@ jobs: | |
fail-fast: false | ||
steps: | ||
- name: Checkout Crate | ||
uses: actions/checkout@v3 | ||
uses: actions/checkout@v4 | ||
- name: Checkout Toolchain | ||
uses: dtolnay/rust-toolchain@beta | ||
- name: Running test script | ||
env: | ||
AS_DEPENDENCY: false | ||
DO_NO_STD: true | ||
run: ./contrib/test.sh | ||
|
||
Nightly: | ||
|
@@ -48,54 +50,43 @@ jobs: | |
fail-fast: false | ||
steps: | ||
- name: Checkout Crate | ||
uses: actions/checkout@v3 | ||
uses: actions/checkout@v4 | ||
- name: Checkout Toolchain | ||
uses: dtolnay/rust-toolchain@nightly | ||
- name: Install clippy | ||
run: rustup component add clippy | ||
- name: Running test script | ||
env: | ||
DO_FMT: true | ||
DO_LINT: true | ||
DO_FMT: false | ||
DO_BENCH: true | ||
AS_DEPENDENCY: false | ||
DO_NO_STD: true | ||
DO_DOCSRS: true | ||
run: ./contrib/test.sh | ||
|
||
MSRV: | ||
name: Test - 1.41.1 toolchain | ||
name: Test - 1.56.1 toolchain | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false | ||
steps: | ||
- name: Checkout Crate | ||
uses: actions/checkout@v3 | ||
uses: actions/checkout@v4 | ||
- name: Checkout Toolchain | ||
uses: dtolnay/[email protected] | ||
uses: dtolnay/rust-toolchain@stable | ||
with: | ||
toolchain: "1.56.1" | ||
- name: Running test script | ||
env: | ||
DO_FEATURE_MATRIX: true | ||
run: ./contrib/test.sh | ||
|
||
NoStd: | ||
name: Test - 1.47 toolchain | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false | ||
steps: | ||
- name: Checkout Crate | ||
uses: actions/checkout@v3 | ||
- name: Checkout Toolchain | ||
uses: dtolnay/[email protected] | ||
- name: Running test script | ||
env: | ||
DO_NO_STD: true | ||
run: ./contrib/test.sh | ||
|
||
Arch32bit: | ||
name: Test 32-bit version | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout Crate | ||
uses: actions/checkout@v3 | ||
uses: actions/checkout@v4 | ||
- name: Checkout Toolchain | ||
uses: dtolnay/rust-toolchain@stable | ||
- name: Add architecture i386 | ||
|
@@ -113,7 +104,7 @@ jobs: | |
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout Crate | ||
uses: actions/checkout@v3 | ||
uses: actions/checkout@v4 | ||
- name: Checkout Toolchain | ||
uses: dtolnay/rust-toolchain@stable | ||
- name: Install target | ||
|
@@ -130,7 +121,7 @@ jobs: | |
CARGO_TARGET_THUMBV7M_NONE_EABI_RUNNER: "qemu-system-arm -cpu cortex-m3 -machine mps2-an385 -nographic -semihosting-config enable=on,target=native -kernel" | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
uses: actions/checkout@v4 | ||
- name: Set up QEMU | ||
run: sudo apt update && sudo apt install -y qemu-system-arm gcc-arm-none-eabi | ||
- name: Checkout Toolchain | ||
|
@@ -151,7 +142,7 @@ jobs: | |
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout Crate | ||
uses: actions/checkout@v3 | ||
uses: actions/checkout@v4 | ||
- name: Checkout Toolchain | ||
uses: dtolnay/rust-toolchain@nightly | ||
- name: Install src | ||
|
@@ -166,7 +157,7 @@ jobs: | |
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout Crate | ||
uses: actions/checkout@v3 | ||
uses: actions/checkout@v4 | ||
- name: Checkout Toolchain | ||
uses: dtolnay/rust-toolchain@stable | ||
- name: Running WASM build | ||
|
This file contains 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,27 @@ | ||
name: Nightly rustfmt | ||
on: | ||
schedule: | ||
- cron: "0 0 * * 0" # runs weekly on Sunday at 00:00 | ||
workflow_dispatch: # allows manual triggering | ||
jobs: | ||
format: | ||
name: Nightly rustfmt | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: dtolnay/rust-toolchain@nightly | ||
with: | ||
components: rustfmt | ||
- name: Run Nightly rustfmt | ||
run: cargo +nightly fmt | ||
- name: Get the current date | ||
run: echo "date=$(date +'%Y-%m-%d')" >> $GITHUB_ENV | ||
- name: Create Pull Request | ||
uses: peter-evans/create-pull-request@v5 | ||
with: | ||
author: Fmt Bot <[email protected]> | ||
title: Automated nightly rustfmt (${{ env.date }}) | ||
body: | | ||
Automated nightly `rustfmt` changes by [create-pull-request](https://github.com/peter-evans/create-pull-request) GitHub action | ||
commit-message: ${{ env.date }} automated rustfmt nightly | ||
labels: rustfmt |
This file contains 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
Oops, something went wrong.