Skip to content

Commit

Permalink
Merge pull request #42 from FL03/v0.1.12
Browse files Browse the repository at this point in the history
v0.1.12
  • Loading branch information
FL03 authored May 7, 2024
2 parents 51bf6c9 + f908803 commit 8a8bcef
Show file tree
Hide file tree
Showing 379 changed files with 7,167 additions and 8,195 deletions.
19 changes: 0 additions & 19 deletions .docker/env.dockerfile

This file was deleted.

Empty file removed .env.example
Empty file.
22 changes: 2 additions & 20 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,26 +29,8 @@ updates:
schedule:
interval: daily
- package-ecosystem: cargo
directory: /ml/ml
directory: /models/linear
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
directory: /models/gnn
9 changes: 3 additions & 6 deletions .github/workflows/clippy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,12 @@ name: Clippy

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

permissions:
Expand Down
56 changes: 56 additions & 0 deletions .github/workflows/crates.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
name: crates.io

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: false

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

on:
release:
types: [ published ]
repository_dispatch:
types: [ crates-io ]
workflow_dispatch:

jobs:
core:
name: Publish (core)
runs-on: ubuntu-latest
env:
CARGO_PACKAGE_NAME: ${{ github.event.repository.name }}-core
steps:
- uses: actions/checkout@v4
- name: Publish (${{ env.CARGO_PACKAGE_NAME }})
run: cargo publish --all-features -v -p ${{ env.CARGO_PACKAGE_NAME }} --token ${{ secrets.CARGO_REGISTRY_TOKEN }}
features:
name: Publish (features)
needs: core
runs-on: ubuntu-latest
strategy:
matrix:
features: [ data, derive, macros ]
steps:
- uses: actions/checkout@v4
- name: Publish (${{ github.event.repository.name }}-${{ matrix.features }})
run: cargo publish --all-features -v -p ${{ github.event.repository.name }}-${{ matrix.features }} --token ${{ secrets.CARGO_REGISTRY_TOKEN }}
models:
name: Publish (models)
needs: features
runs-on: ubuntu-latest
strategy:
matrix:
features: [ gnn, linear ]
steps:
- uses: actions/checkout@v4
- name: Publish (${{ github.event.repository.name }}-${{ matrix.features }})
run: cargo publish --all-features -v -p ${{ github.event.repository.name }}-${{ matrix.features }} --token ${{ secrets.CARGO_REGISTRY_TOKEN }}
publish:
name: Publish (${{ github.event.repository.name }})
needs: models
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: cargo publish --all-features -v -p ${{ github.event.repository.name }} --token ${{ secrets.CARGO_REGISTRY_TOKEN }}
60 changes: 0 additions & 60 deletions .github/workflows/publish.yml

This file was deleted.

32 changes: 15 additions & 17 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,16 @@ env:

on:
pull_request:
branches: [ "main", "v*.*.*" ]
branches: [ main ]
push:
branches: [ "main" ]
tags: [ "nightly*", "v*.*.*" ]
branches: [ main ]
tags: [ v*.*.* ]
release:
types: [ created ]
repository_dispatch:
types: [ rust ]
schedule:
- cron: "30 21 * * *" # 9:30pm UTC
- cron: "30 21 * * 0" # Every Sunday at 9:30pm UTC
workflow_dispatch:

permissions: write-all
Expand All @@ -28,7 +29,6 @@ jobs:
strategy:
matrix:
platform: [ ubuntu-latest ]
target: [ wasm32-unknown-unknown, wasm32-wasi ]
toolchain: [ stable, nightly ]
runs-on: ${{ matrix.platform }}
steps:
Expand All @@ -40,7 +40,7 @@ jobs:
- name: Build (release)
run: cargo build -r -v --workspace
- name: Cache build
uses: actions/cache@v3
uses: actions/cache@v4
with:
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
path: |
Expand All @@ -49,7 +49,7 @@ jobs:
target/release
bench:
name: Bench
name: Benchmark
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand All @@ -63,10 +63,8 @@ jobs:
name: Test
strategy:
matrix:
platform: [ ubuntu-latest ]
target: [ wasm32-unknown-unknown, wasm32-wasi ]
toolchain: [ stable, nightly ]
runs-on: ${{ matrix.platform }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: setup (langspace)
Expand All @@ -76,18 +74,18 @@ jobs:
- name: Test
run: cargo test --features full -v --workspace
blas:
continue-on-error: true
name: Test (blas)
strategy:
matrix:
platform: [ ubuntu-latest ]
target: [ wasm32-unknown-unknown, wasm32-wasi ]
toolchain: [ stable, nightly ]
runs-on: ${{ matrix.platform }}
crate: [ core, data, gnn, linear ]
toolchain: [ stable ]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: setup (langspace)
- name: rustup
run: |
rustup default ${{ matrix.toolchain }}
rustup update
- name: Test
run: cargo test --features blas -v --workspace
- name: test
run: cargo test --features blas -v --package ${{ github.event.repository.name }}-${{ matrix.crate }}
Loading

0 comments on commit 8a8bcef

Please sign in to comment.