Skip to content

Commit f348d0e

Browse files
committed
build: toolchains change
build: prebuild script build: cargo toml and workflow changes build: permissions build: archive names for targets build: archive name corrected build: archive name corrected docs: readme update
1 parent 6df872a commit f348d0e

File tree

5 files changed

+33
-820
lines changed

5 files changed

+33
-820
lines changed

.github/workflows/release.yml

Lines changed: 20 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ on:
55
jobs:
66
sim_ann_release:
77
name: sim_ann_release ${{ matrix.target }}
8+
permissions: write-all
89
runs-on: ubuntu-latest
910
strategy:
1011
fail-fast: false
@@ -18,11 +19,13 @@ jobs:
1819
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
1920
with:
2021
RUSTTARGET: ${{ matrix.target }}
21-
EXTRA_FILES: "README.md LICENSE"
22+
EXTRA_FILES: "README.md"
2223
SRC_DIR: "sim-ann"
23-
TOOLCHAIN_VERSION: "nightly-x86_64-unknown-linux-gnu"
24+
TOOLCHAIN_VERSION: "nightly"
25+
ARCHIVE_NAME: "sim-ann-release-${{matrix.target}}"
2426
art_1_release:
2527
name: art_1_release ${{ matrix.target }}
28+
permissions: write-all
2629
runs-on: ubuntu-latest
2730
strategy:
2831
fail-fast: false
@@ -36,11 +39,13 @@ jobs:
3639
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3740
with:
3841
RUSTTARGET: ${{ matrix.target }}
39-
EXTRA_FILES: "README.md LICENSE"
42+
EXTRA_FILES: "README.md"
4043
SRC_DIR: "art-1"
41-
TOOLCHAIN_VERSION: "nightly-x86_64-unknown-linux-gnu"
44+
TOOLCHAIN_VERSION: "nightly"
45+
ARCHIVE_NAME: "art-1-release-${{matrix.target}}"
4246
ant_release:
4347
name: ant_release ${{ matrix.target }}
48+
permissions: write-all
4449
runs-on: ubuntu-latest
4550
strategy:
4651
fail-fast: false
@@ -54,11 +59,13 @@ jobs:
5459
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
5560
with:
5661
RUSTTARGET: ${{ matrix.target }}
57-
EXTRA_FILES: "README.md LICENSE"
62+
EXTRA_FILES: "README.md"
5863
SRC_DIR: "ant"
59-
TOOLCHAIN_VERSION: "nightly-x86_64-unknown-linux-gnu"
64+
TOOLCHAIN_VERSION: "nightly"
65+
ARCHIVE_NAME: "ant-release-${{matrix.target}}"
6066
neuro_release:
6167
name: neuro_release ${{ matrix.target }}
68+
permissions: write-all
6269
runs-on: ubuntu-latest
6370
strategy:
6471
fail-fast: false
@@ -72,11 +79,13 @@ jobs:
7279
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
7380
with:
7481
RUSTTARGET: ${{ matrix.target }}
75-
EXTRA_FILES: "README.md LICENSE"
82+
EXTRA_FILES: "README.md"
7683
SRC_DIR: "neuro"
77-
TOOLCHAIN_VERSION: "nightly-x86_64-unknown-linux-gnu"
84+
TOOLCHAIN_VERSION: "nightly"
85+
ARCHIVE_NAME: "neuro-release-${{matrix.target}}"
7886
genetic_release:
7987
name: genetic_release ${{ matrix.target }}
88+
permissions: write-all
8089
runs-on: ubuntu-latest
8190
strategy:
8291
fail-fast: false
@@ -91,6 +100,7 @@ jobs:
91100
with:
92101
RUSTTARGET: ${{ matrix.target }}
93102
PRE_BUILD: "genetic/prebuild.sh"
94-
EXTRA_FILES: "README.md LICENSE"
103+
EXTRA_FILES: "README.md"
95104
SRC_DIR: "genetic"
96-
TOOLCHAIN_VERSION: "nightly-x86_64-unknown-linux-gnu"
105+
TOOLCHAIN_VERSION: "nightly"
106+
ARCHIVE_NAME: "genetic-release-${{matrix.target}}"

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
AI algorithms visualizations made with Rust and [egui](https://github.com/emilk/egui).
44

5+
Executables can be downloaded from [Release page](https://github.com/DanArmor/ai-algorithms/releases).
6+
57
Contains:
68
* Simulated annealing ([what it is](https://en.wikipedia.org/wiki/Simulated_annealing))
79
* ART-1 ([what it is](https://en.wikipedia.org/wiki/Adaptive_resonance_theory))

genetic/prebuild.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
1-
git clone https://github.com/DanArmor/weighted_rand
1+
cd genetic
2+
git clone https://github.com/DanArmor/weighted_rand
3+
cd ..

0 commit comments

Comments
 (0)