-
-
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 #34 from FL03/v0.1.12
V0.1.12
- Loading branch information
Showing
312 changed files
with
20,219 additions
and
494 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
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 \ |
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 @@ | ||
github: [FL03] |
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,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 |
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,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 }} |
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,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 |
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 |
---|---|---|
|
@@ -58,3 +58,5 @@ | |
!**/*.env.example | ||
!**/*.config.js | ||
!**/*.config.cjs | ||
|
||
!**/config.rs |
Oops, something went wrong.