Skip to content

Commit

Permalink
Merge pull request #34 from FL03/v0.1.12
Browse files Browse the repository at this point in the history
V0.1.12
  • Loading branch information
FL03 authored Jan 30, 2024
2 parents 9917c2d + 1c33396 commit 51bf6c9
Show file tree
Hide file tree
Showing 312 changed files with 20,219 additions and 494 deletions.
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 2022 Scattered-Systems, DAO LLC
Copyright 2023 Scattered-Systems, DAO LLC

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand Down
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) 2022 Scattered-Systems, DAO LLC
Copyright (c) 2023 Joe McCain III

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
19 changes: 19 additions & 0 deletions .docker/env.dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
FROM debian

RUN apt-get update -y && apt-get upgrade -y

RUN apt-get install -y \
build-essential \
curl \
git \
gnupg \
libprotobuf-dev \
libssl-dev \
pkg-config \
unzip \
zip \
&& rm -rf /var/lib/apt/lists/*

RUN apt-get install -y \
liblapack-dev \
libopenblas-dev \
1 change: 1 addition & 0 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
github: [FL03]
36 changes: 34 additions & 2 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,42 @@ updates:
schedule:
interval: daily
- package-ecosystem: cargo
directory: /concision-derive
directory: /core
schedule:
interval: daily
- package-ecosystem: cargo
directory: /concision-macros
directory: /data
schedule:
interval: daily
- package-ecosystem: cargo
directory: /derive
schedule:
interval: daily
- package-ecosystem: cargo
directory: /macros
schedule:
interval: daily
- package-ecosystem: cargo
directory: /ml/ml
schedule:
interval: daily
- package-ecosystem: cargo
directory: /ml/neural
schedule:
interval: daily
- package-ecosystem: cargo
directory: /ml/nlp
schedule:
interval: daily
- package-ecosystem: cargo
directory: /ml/optim
schedule:
interval: daily
- package-ecosystem: cargo
directory: /ml/s4
schedule:
interval: daily
- package-ecosystem: cargo
directory: /ml/transformers
schedule:
interval: daily
37 changes: 19 additions & 18 deletions .github/workflows/clippy.yml
Original file line number Diff line number Diff line change
@@ -1,45 +1,46 @@
name: Clippy

on:
pull_request:
branches-ignore: [ "beta*", "dev*", "next*" ]
push:
branches: [ "main", "master", "prod" ]
tags: ["v*.*.*"]
branches-ignore: [ "beta*", "dev*", "next*" ]
tags: [ "nightly*", "v*.*.*" ]
release:
repository_dispatch:
types: [ analysis ]
schedule:
- cron: "30 9 * * 5"
- cron: "30 21 * * *" # 9:30pm UTC
workflow_dispatch:

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

jobs:
rust-clippy-analyze:
name: Run rust-clippy analyzing
clippy:
name: Clippy
runs-on: ubuntu-latest
permissions:
contents: read
security-events: write
actions: read # only required for a private repository by github/codeql-action/upload-sarif to get the Action run status
steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Install Rust toolchain
- uses: actions/checkout@v4
- name: Setup rust toolchain
uses: actions-rs/toolchain@16499b5e05bf2e26879000db0c1d13f7e13fa3af #@v1
with:
profile: minimal
toolchain: stable
components: clippy
override: true

- name: Install required cargo
run: cargo install clippy-sarif sarif-fmt

- name: Run rust-clippy
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
- name: Upload analysis
uses: github/codeql-action/upload-sarif@v2
with:
sarif_file: rust-clippy-results.sarif
wait-for-processing: true
wait-for-processing: true
60 changes: 60 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
name: Publish

concurrency:
cancel-in-progress: true
group: ${{ github.event.repository.name }}

env:
CARGO_TERM_COLOR: always
CRATE_BASENAME: ${{ github.event.repository.name }}

on:
release:
types: [ created ]
workflow_dispatch:
inputs:
publish:
default: true
description: 'Publish'
required: true
type: boolean

permissions:
contents: read
packages: write
pull-requests: write
statuses: write

jobs:
features:
name: Publish (features)
runs-on: ubuntu-latest
strategy:
matrix:
feature: [ core, derive, macros ]
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 }}
dependents:
name: Publish (dependents)
runs-on: ubuntu-latest
strategy:
matrix:
feature: [ neural, transformers ]
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 }}
108 changes: 71 additions & 37 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
@@ -1,59 +1,93 @@
name: Rust

concurrency:
cancel-in-progress: false
group: ${{ github.event.repository.name }}-rust

env:
CARGO_TERM_COLOR: always

on:
pull_request:
branches: [ "main", "v*.*.*" ]
push:
branches: [ "main", "master", "prod" ]
tags: [ "v*.*.*" ]
branches: [ "main" ]
tags: [ "nightly*", "v*.*.*" ]
release:
repository_dispatch:
types: [ rust ]
schedule:
- cron: "30 9 * * 5"
- cron: "30 21 * * *" # 9:30pm UTC
workflow_dispatch:
inputs:
publish:
default: true
description: 'Publish'
required: true
type: boolean

permissions: write-all

jobs:
build:
name: Build and Test
runs-on: ubuntu-latest
name: Build
strategy:
matrix:
toolchain:
- stable
- nightly
platform: [ ubuntu-latest ]
target: [ wasm32-unknown-unknown, wasm32-wasi ]
toolchain: [ stable, nightly ]
runs-on: ${{ matrix.platform }}
steps:
- uses: actions/checkout@v3
- run: rustup update ${{ matrix.toolchain }} && rustup default ${{ matrix.toolchain }}
- run: cargo build -v
- run: cargo test --all --all-features -v
features:
if: ${{ github.event.inputs.publish }}
name: Features
- uses: actions/checkout@v4
- name: setup (langspace)
run: |
rustup default ${{ matrix.toolchain }}
rustup update
- name: Build (release)
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
bench:
name: Bench
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: setup (langspace)
run: |
rustup default nightly
rustup update
- name: Bench
run: cargo bench --all -v
test:
name: Test
strategy:
matrix:
package:
- concision-derive
- concision-macros
platform: [ ubuntu-latest ]
target: [ wasm32-unknown-unknown, wasm32-wasi ]
toolchain: [ stable, nightly ]
runs-on: ${{ matrix.platform }}
steps:
- uses: actions/checkout@v3
- name: Publish (${{matrix.package}})
run: cargo publish --all-features --package ${{ matrix.package }} --verbose --token ${{ secrets.CARGO_REGISTRY_TOKEN }}
publish:
if: ${{ github.event.inputs.publish }}
name: Publish
needs: features
runs-on: ubuntu-latest
- uses: actions/checkout@v4
- name: setup (langspace)
run: |
rustup default ${{ matrix.toolchain }}
rustup update
- name: Test
run: cargo test --features full -v --workspace
blas:
name: Test (blas)
strategy:
matrix:
package:
- concision
platform: [ ubuntu-latest ]
target: [ wasm32-unknown-unknown, wasm32-wasi ]
toolchain: [ stable, nightly ]
runs-on: ${{ matrix.platform }}
steps:
- uses: actions/checkout@v3
- name: Publish (${{matrix.package}})
run: cargo publish --all-features --package ${{ matrix.package }} --verbose --token ${{ secrets.CARGO_REGISTRY_TOKEN }}
- uses: actions/checkout@v4
- name: setup (langspace)
run: |
rustup default ${{ matrix.toolchain }}
rustup update
- name: Test
run: cargo test --features blas -v --workspace
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -58,3 +58,5 @@
!**/*.env.example
!**/*.config.js
!**/*.config.cjs

!**/config.rs
Loading

0 comments on commit 51bf6c9

Please sign in to comment.