-
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 #42 from FL03/v0.1.20
V0.1.20
- Loading branch information
Showing
66 changed files
with
1,527 additions
and
388 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
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
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,43 +1,48 @@ | ||
name: Clippy | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: true | ||
|
||
on: | ||
pull_request: | ||
branches: [ main, master, v*.*.*, ] | ||
push: | ||
branches-ignore: [ "beta*", "dev*", "next*" ] | ||
tags: [ "nightly*", "v*.*.*" ] | ||
branches: [ main ] | ||
tags: [ nightly*, v*.*.*] | ||
release: | ||
repository_dispatch: | ||
types: [ clippy ] | ||
schedule: | ||
- cron: "30 9 * * *" # 9:30am UTC | ||
- cron: 30 21 * * 0 # Every Sunday at 9:30PM UTC | ||
workflow_dispatch: | ||
|
||
permissions: | ||
actions: read | ||
contents: read | ||
security-events: write | ||
|
||
jobs: | ||
clippy: | ||
name: Clippy | ||
permissions: | ||
actions: read # only required for a private repository by github/codeql-action/upload-sarif to get the Action run status | ||
contents: read | ||
security-events: write | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/checkout@v4 | ||
- name: Install Rust toolchain | ||
uses: actions-rs/toolchain@16499b5e05bf2e26879000db0c1d13f7e13fa3af #@v1 | ||
with: | ||
profile: minimal | ||
toolchain: stable | ||
components: clippy | ||
override: true | ||
- name: Setup | ||
- name: Setup (langspace) | ||
run: cargo install clippy-sarif sarif-fmt | ||
- name: clippy | ||
- name: Analyze | ||
run: | ||
cargo clippy | ||
--all-features | ||
--message-format=json | clippy-sarif | tee rust-clippy-results.sarif | sarif-fmt | ||
continue-on-error: true | ||
- name: Upload analysis results to GitHub | ||
uses: github/codeql-action/upload-sarif@v2 | ||
- name: Upload results | ||
uses: github/codeql-action/upload-sarif@v3 | ||
with: | ||
sarif_file: rust-clippy-results.sarif | ||
wait-for-processing: true | ||
wait-for-processing: 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
name: Publish | ||
|
||
concurrency: | ||
cancel-in-progress: true | ||
group: ${{ github.event.repository.name }} | ||
|
||
env: | ||
CARGO_TERM_COLOR: always | ||
|
||
on: | ||
release: | ||
types: [ created ] | ||
workflow_dispatch: | ||
inputs: | ||
publish: | ||
default: true | ||
description: 'Publish' | ||
required: true | ||
type: boolean | ||
|
||
permissions: write-all | ||
|
||
jobs: | ||
base: | ||
name: Publish (core) | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
feature: [ core ] | ||
env: | ||
PACKAGE_NAME: ${{ github.event.repository.name }}-${{ matrix.feature }} | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Publish (${{env.PACKAGE_NAME}}) | ||
run: cargo publish --all-features -v -p ${{ env.PACKAGE_NAME }} --token ${{ secrets.CARGO_REGISTRY_TOKEN }} | ||
features: | ||
name: Publish (features) | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
feature: [ graph, merkle, mmr, queue ] | ||
env: | ||
PACKAGE_NAME: ${{ github.event.repository.name }}-${{ matrix.feature }} | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Publish (${{env.PACKAGE_NAME}}) | ||
run: cargo publish --all-features -v -p ${{ env.PACKAGE_NAME }} --token ${{ secrets.CARGO_REGISTRY_TOKEN }} | ||
publish: | ||
name: Publish (sdk) | ||
needs: features | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Publish (sdk) | ||
run: cargo publish --all-features -v -p ${{ github.event.repository.name }} --token ${{ secrets.CARGO_REGISTRY_TOKEN }} |
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,75 +1,80 @@ | ||
name: Rust | ||
|
||
concurrency: | ||
cancel-in-progress: false | ||
group: ${{ github.event.repository.name }}-rust | ||
|
||
env: | ||
CARGO_TERM_COLOR: always | ||
|
||
on: | ||
pull_request: | ||
branches: [ main, master, v*.*.*, ] | ||
push: | ||
branches-ignore: [ "beta*", "dev*", "next*" ] | ||
tags: [ "nightly*", "v*.*.*" ] | ||
branches: [ main ] | ||
tags: [ nightly*, v*.*.*] | ||
release: | ||
types: [created] | ||
types: [ created ] | ||
repository_dispatch: | ||
types: [ rust ] | ||
schedule: | ||
- cron: "30 9 * * *" # 9:30am UTC | ||
- cron: 30 21 * * 0 # Every Sunday at 9:30PM UTC | ||
workflow_dispatch: | ||
inputs: | ||
publish: | ||
default: true | ||
description: 'Publish' | ||
required: true | ||
type: boolean | ||
|
||
permissions: write-all | ||
|
||
jobs: | ||
build: | ||
name: Build and Test | ||
name: Build | ||
strategy: | ||
matrix: | ||
platform: [ ubuntu-latest ] | ||
target: [ wasm32-unknown-unknown, wasm32-wasi ] | ||
toolchain: [ stable, nightly ] | ||
runs-on: ${{ matrix.platform }} | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/checkout@v4 | ||
- name: setup (langspace) | ||
run: | | ||
rustup update | ||
rustup default ${{ matrix.toolchain }} | ||
- name: Set target (${{ matrix.target }}) | ||
if: matrix.toolchain == 'nightly' | ||
run: rustup target add ${{ matrix.target }} | ||
- name: Build | ||
run: cargo build --release -v --workspace | ||
run: cargo build -r -v --workspace | ||
- name: Cache build | ||
uses: actions/cache@v3 | ||
with: | ||
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }} | ||
path: | | ||
~/.cargo/registry | ||
~/.cargo/git | ||
target/release | ||
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }} | ||
- name: Test | ||
run: cargo test --all --release -v | ||
- name: Bench | ||
if: matrix.toolchain == 'nightly' | ||
run: cargo bench --all -v | ||
features: | ||
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v') && github.event_name == 'release' && github.event.action == 'created' || github.event.inputs.publish == 'true' | ||
name: Publish (features) | ||
test: | ||
name: Test | ||
needs: build | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
feature: [ "graph", "merkle", "mmr" ] | ||
env: | ||
PACKAGE_NAME: ${{ github.event.repository.name }}-${{ matrix.feature }} | ||
platform: [ ubuntu-latest ] | ||
target: [ wasm32-unknown-unknown, wasm32-wasi ] | ||
toolchain: [ stable, nightly ] | ||
runs-on: ${{ matrix.platform }} | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Publish (${{ env.PACKAGE_NAME }}) | ||
run: cargo publish --all-features -v -p ${{ env.PACKAGE_NAME }} --token ${{ secrets.CARGO_REGISTRY_TOKEN }} | ||
publish: | ||
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v') && github.event_name == 'release' && github.event.action == 'created' || github.event.inputs.publish == 'true' | ||
name: Publish (sdk) | ||
needs: features | ||
- uses: actions/checkout@v4 | ||
- name: setup (langspace) | ||
run: | | ||
rustup update | ||
rustup default ${{ matrix.toolchain }} | ||
- name: Test | ||
run: cargo test --all-features -r -v --workspace | ||
benchmark: | ||
name: Bench | ||
needs: build | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Publish (${{ github.event.repository.name }}) | ||
run: cargo publish --all-features -v -p ${{ github.event.repository.name }} --token ${{ secrets.CARGO_REGISTRY_TOKEN }} | ||
- uses: actions/checkout@v4 | ||
- name: setup (langspace) | ||
run: | | ||
rustup update | ||
rustup default nightly | ||
- name: Bench | ||
run: cargo bench --features full -v --workspace |
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.