Skip to content

Commit 403921c

Browse files
authored
add nim (#281)
* add choosenim-install * avoid choosenim * try again * install nimpy * nimpy * oops
1 parent 4024f4e commit 403921c

File tree

2 files changed

+22
-0
lines changed

2 files changed

+22
-0
lines changed

.github/workflows/test.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,14 @@ jobs:
2323
uses: actions/setup-python@v5
2424
with:
2525
python-version: "3.10"
26+
- name: Install Nim
27+
uses: jiro4989/setup-nim-action@v2
28+
with:
29+
nim-version: '2.0.8'
30+
repo-token: ${{ secrets.GITHUB_TOKEN }}
31+
- name: Install Nimpy
32+
run: |
33+
nimble install nimpy
2634
- name: Install dependencies
2735
run: |
2836
python -m pip install uv

install-nim.sh

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
#!/bin/bash
2+
3+
os_type=$(uname)
4+
5+
if [[ "$os_type" == "Darwin" ]]; then
6+
brew install nim
7+
elif [[ "$os_type" == "Linux" ]]; then
8+
apt-get install nim
9+
else
10+
echo "This is not a Mac or Linux system."
11+
exit
12+
fi
13+
14+
nimble install nimpy

0 commit comments

Comments
 (0)