Skip to content

Commit

Permalink
Merge pull request #42 from FL03/v0.1.20
Browse files Browse the repository at this point in the history
V0.1.20
  • Loading branch information
FL03 authored Mar 16, 2024
2 parents 35a5fa8 + 0f7924b commit dd7ad13
Show file tree
Hide file tree
Showing 66 changed files with 1,527 additions and 388 deletions.
4 changes: 2 additions & 2 deletions .artifacts/license/APACHE.LICENSE
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@
same "printed page" as the copyright notice for easier
identification within third-party archives.

Copyright 2023 Scattered-Systems, DAO LLC
Copyright 2024 Scattered-Systems, LLC

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand All @@ -198,4 +198,4 @@
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
limitations under the License.
2 changes: 1 addition & 1 deletion .artifacts/license/MIT.LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
The MIT License (MIT)

Copyright (c) 2023 Scattered-Systems, DAO LLC
Copyright (c) 2024 Scattered-Systems, LLC

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
12 changes: 12 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,14 @@ updates:
directory: /algae
schedule:
interval: daily
- package-ecosystem: cargo
directory: /core
schedule:
interval: daily
- package-ecosystem: cargo
directory: /graph
schedule:
interval: daily
- package-ecosystem: cargo
directory: /merkle
schedule:
Expand All @@ -20,3 +28,7 @@ updates:
directory: /mmr
schedule:
interval: daily
- package-ecosystem: cargo
directory: /queue
schedule:
interval: daily
35 changes: 20 additions & 15 deletions .github/workflows/clippy.yml
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
55 changes: 55 additions & 0 deletions .github/workflows/crates.yml
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 }}
81 changes: 43 additions & 38 deletions .github/workflows/rust.yml
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
64 changes: 47 additions & 17 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,31 +1,67 @@
# Artifacts

### Cache
**/.artifacts/cache/
**/.docker/cache/

### Data
**/.artifacts/data/
**/.docker/data/

### Logs
**/.artifacts/logs/
**/.docker/logs/

*.log
*.log.*

# Config
**/config.*
**/*.config.*

**/*.env
**/*.env.*

# Directories
**/__pycache__/
**/__sapper__/
### Exceptions
!**/default.config.*
!**/*.env.example
!**/*.config.js
!**/*.config.cjs

**/.DS_STORE/
**/.artifacts/data/
**/.docker/data/
# Development

### IDEs
**/.atom/
**/.idea/
**/.pytest_cache/
**/.svelte-kit/
**/.vscode/

# Languages

### Node
**/build/
**/debug/
**/dist/
**/env/
**/node_modules/
**/target/

### Python
**/__pycache__/
**/venv/

# File Extensions
*.pyc
*.pyo

### Rust
**/target/

**/Cargo.lock

*.bk
*.bk.*

# Misc

### File Extensions
**/*.bk
**/*.bk.*

Expand All @@ -49,10 +85,4 @@
**/*.whl.*

**/*.zip
**/*.zip.*

# Exceptions
!**/default.config.*
!**/*.env.example
!**/*.config.js
!**/*.config.cjs
**/*.zip.*
Loading

0 comments on commit dd7ad13

Please sign in to comment.