Fixes nim-codex-dht dependency. Sets up CI

This commit is contained in:
Ben 2025-02-04 15:36:16 +01:00
parent 335b4d10f9
commit b766bb6e45
No known key found for this signature in database
GPG Key ID: 0F16E812E736C24B
2 changed files with 23 additions and 1 deletions

22
.github/workflows/main.yml vendored Normal file
View File

@ -0,0 +1,22 @@
name: CI
on: [push, pull_request]
jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macOS-latest, windows-latest]
nim: [2.0.14]
steps:
- uses: actions/checkout@v2
with:
submodules: true
- uses: iffy/install-nim@v4
with:
version: ${{ matrix.nim }}
- name: Build
run: nimble install -y
- name: Test
run: nimble test -y

View File

@ -20,7 +20,7 @@ requires "stew#head"
requires "stint"
requires "https://github.com/codex-storage/nim-datastore >= 0.1.0 & < 0.2.0"
requires "questionable"
requires "https://github.com/codex-storage/nim-codex-dht"
requires "https://github.com/codex-storage/nim-codex-dht#4bd3a39e0030f8ee269ef217344b6b59ec2be6dc" # 7 Jan 2024 - Support for Nim 2.0.14
task test, "Run tests":
exec "nimble install -d -y"