Skip to content

Commit 2f9e233

Browse files
authored
Merge pull request #79 from HyperCodec/publish-workflow
Create publish workflow
2 parents 3da3a1e + 9536a29 commit 2f9e233

File tree

2 files changed

+22
-1
lines changed

2 files changed

+22
-1
lines changed

.github/workflows/publish.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: Publish
2+
3+
on: ['workflow_dispatch']
4+
5+
jobs:
6+
publish:
7+
runs-on: ubuntu-latest
8+
9+
steps:
10+
- uses: actions/checkout@v4
11+
- uses: actions-rust-lang/setup-rust-toolchain@v1
12+
with:
13+
toolchain: nightly
14+
- name: "Login"
15+
run: cargo login --key ${{ secrets.CARGO_TOKEN }}
16+
- name: "Publish common"
17+
run: cargo +nightly publish -p genetic-rs-common
18+
- name: "Publish macros"
19+
run: cargo +nightly publish -p genetic-rs-macros
20+
- name: "Publish main"
21+
run: cargo +nightly publish -p genetic-rs

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ A small crate for quickstarting genetic algorithm projects.
1010
*note: if you are interested in implementing NEAT with this, try out the [neat](https://crates.io/crates/neat) crate*
1111

1212
### Features
13-
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.
13+
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.
1414

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

0 commit comments

Comments
 (0)