Skip to content

Commit

Permalink
Merge pull request #79 from HyperCodec/publish-workflow
Browse files Browse the repository at this point in the history
Create publish workflow
  • Loading branch information
HyperCodec authored Oct 1, 2024
2 parents 3da3a1e + 9536a29 commit 2f9e233
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 1 deletion.
21 changes: 21 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Publish

on: ['workflow_dispatch']

jobs:
publish:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- uses: actions-rust-lang/setup-rust-toolchain@v1
with:
toolchain: nightly
- name: "Login"
run: cargo login --key ${{ secrets.CARGO_TOKEN }}
- name: "Publish common"
run: cargo +nightly publish -p genetic-rs-common
- name: "Publish macros"
run: cargo +nightly publish -p genetic-rs-macros
- name: "Publish main"
run: cargo +nightly publish -p genetic-rs
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ A small crate for quickstarting genetic algorithm projects.
*note: if you are interested in implementing NEAT with this, try out the [neat](https://crates.io/crates/neat) crate*

### Features
First off, this crate comes with the `builtin` and `genrand` features by default. If you want to add the builtin crossover reproduction extension, you can do so by adding the `crossover` feature. If you want it to be parallelized, you can add the `rayon` feature. If you want your crossover to be speciated, you can add the `speciation` feature.
First off, this crate comes with the `builtin`, `crossover`, and `genrand` features by default. If you want it to be parallelized, you can add the `rayon` feature. If you want your crossover to be speciated, you can add the `speciation` feature.

Once you have eveything imported as you wish, you can define your genome and impl the required traits:

Expand Down

0 comments on commit 2f9e233

Please sign in to comment.