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
66 changes: 40 additions & 26 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -1,26 +1,40 @@

root = true

[*]
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true

[!src/llvm-project]
indent_style = space
indent_size = 4

[*.rs]
max_line_length = 100

[*.md]
# double whitespace at end of line
# denotes a line break in Markdown
trim_trailing_whitespace = false

[*.yml]
indent_size = 2

[Makefile]
indent_style = tab
# EditorConfig is awesome: https://EditorConfig.org

# top-most EditorConfig file
root = true

[*]
charset = utf-8
end_of_line = crlf
indent_style = space
indent_size = 4
insert_final_newline = false
quote_type = double
trim_trailing_whitespace = false

[*.{ts,tsx,js,jsx,cjs,mjs}]
indent_size = 2
quote_type = single

[*.{json,yaml,yml,toml}]
indent_size = 2

[*{toml}]
end_of_line = lf
indent_size = 2

[*.md]
insert_final_newline = true
trim_trailing_whitespace = true

[*.rs]
indent_size = 4

[*.{html,htm,xml}]
indent_size = 2

[*.{css,scss,sass,less}]
indent_size = 2
trim_trailing_whitespace = true
insert_final_newline = true

12 changes: 1 addition & 11 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,7 @@ updates:
schedule:
interval: monthly
directories:
- /
- /concision
- /core
- /data
- /derive
- /init
- /macros
- /neural
- /tensor
- /utils
- /ext
- /*
- /models/*
- package-ecosystem: devcontainers
directory: /
Expand Down
52 changes: 0 additions & 52 deletions .github/workflows/cargo-bench.yml

This file was deleted.

43 changes: 14 additions & 29 deletions .github/workflows/cargo-clippy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,24 +6,15 @@ concurrency:

on:
pull_request:
branches:
- main
- $default-branch
types:
- opened
- reopened
- synchronize
branches: [main, master]
types: [edited, opened, ready_for_review, reopened]
push:
branches:
- main
- $default-branch
tags:
- v*.*.*
- "*-nightly"
branches: [main, master]
tags: [v*.*.*, "*-nightly"]
release:
types: [ created, edited ]
types: [created, edited]
repository_dispatch:
types: [ clippy, cargo-clippy ]
types: [clippy, cargo-clippy]
workflow_dispatch:

jobs:
Expand All @@ -35,30 +26,24 @@ jobs:
security-events: write
statuses: write
steps:
-
name: Checkout
uses: actions/checkout@v4
-
name: Setup Rust
- name: Checkout
uses: actions/checkout@v5
- name: Setup Rust
uses: actions-rust-lang/setup-rust-toolchain@v1
with:
cache-key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
components: clippy, rustfmt
toolchain: nightly
override: true
-
name: Setup the for sarif output
- name: Setup the for sarif output
run: cargo install clippy-sarif sarif-fmt
-
name: Run Clippy
run:
cargo clippy
- name: Run Clippy
run: cargo clippy
--all-features
--workspace
--message-format=json | clippy-sarif | tee rust-clippy-results.sarif | sarif-fmt
-
name: Upload analysis
uses: github/codeql-action/upload-sarif@v3
- name: Upload analysis
uses: github/codeql-action/upload-sarif@v4
continue-on-error: true
with:
sarif_file: rust-clippy-results.sarif
Expand Down
39 changes: 21 additions & 18 deletions .github/workflows/cargo-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,25 +6,26 @@ concurrency:

on:
repository_dispatch:
types: [ deploy, publish, cargo-publish, crates-io ]
types: [deploy, publish, cargo-publish, crates-io]
workflow_dispatch:
inputs:
publish:
default: true
description: 'Publish the crate(s) to crates.io?'
description: "Publish the crate(s) to crates.io?"
type: boolean

env:
CARGO_TERM_COLOR: always
RUST_BACKTRACE: full

jobs:
crates-io:
environment: crates-io
runs-on: ubuntu-latest
env:
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
CARGO_TERM_COLOR: always
RUST_BACKTRACE: full
environment:
name: crates-io
outputs:
url: ${{ steps.results.outputs.url }}
url: ${{ steps.results.outputs.url }}
permissions:
contents: read
deployments: write
Expand All @@ -34,7 +35,9 @@ jobs:
max-parallel: 1
matrix:
package:
- concision-traits
- concision-init
- concision-params
- concision-utils
- concision-core
- concision-data
Expand All @@ -46,23 +49,23 @@ jobs:
# non-sdk packages
- concision-kan
- concision-s4
- concision-snn
- concision-transformer
- concision-models
steps:
-
name: Checkout
uses: actions/checkout@v4
-
name: Setup Rust
- name: Checkout
uses: actions/checkout@v5
with:
fetch-depth: 0
ref: ${{ github.ref }}
token: ${{ secrets.GITHUB_TOKEN }}
- name: Setup Rust
uses: actions-rust-lang/setup-rust-toolchain@v1
with:
cache-key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
-
name: Publish (${{ matrix.package }})
- name: Publish (${{ matrix.package }})
id: publish
run: cargo publish --locked --package ${{ matrix.package }}
-
name: Set output(s)
- name: Set output(s)
id: results
run:
echo "url=https://crates.io/crates/${{ matrix.package }}" >> "$GITHUB_OUTPUT"
run: echo "url=https://crates.io/crates/${{ matrix.package }}" >> "$GITHUB_OUTPUT"
9 changes: 4 additions & 5 deletions .github/workflows/cleanup.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,16 @@ name: Cleanup

on:
pull_request:
types:
- closed
types: [closed]

jobs:
cache_cleanup:
pr_cache_cleanup:
name: Cleanup PR Cache(s)
runs-on: ubuntu-latest
permissions:
actions: write
steps:
-
name: Cleanup
- name: Cleanup
run: |
echo "Fetching list of cache keys"
cacheKeysForPR=$(gh cache list --ref $BRANCH --limit 100 --json id --jq '.[].id')
Expand Down
45 changes: 16 additions & 29 deletions .github/workflows/nix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,24 +6,15 @@ concurrency:

on:
pull_request:
branches:
- main
- $default-branch
types:
- opened
- reopened
- synchronize
branches: [main, master]
types: [edited, opened, ready_for_review, reopened]
push:
branches:
- main
- $default-branch
tags:
- v*.*.*
- "*-nightly"
branches: [main, master]
tags: [v*.*.*, "*-nightly"]
release:
types: [ created, edited ]
types: [created, edited]
repository_dispatch:
types: [ nix, nix-build ]
types: [nix, nix-build]
workflow_dispatch:

permissions:
Expand All @@ -34,17 +25,13 @@ jobs:
continue-on-error: true
runs-on: ubuntu-latest
steps:
-
uses: actions/checkout@v4
-
uses: cachix/install-nix-action@v31
with:
github_access_token: ${{ secrets.GITHUB_TOKEN }}
-
name: Build
id: build
run: nix build
-
name: Check the flake
id: check
run: nix flake check
- uses: actions/checkout@v5
- uses: cachix/install-nix-action@v31
with:
github_access_token: ${{ secrets.GITHUB_TOKEN }}
- name: Build
id: build
run: nix build
- name: Check the flake
id: check
run: nix flake check
Loading