Skip to content

Commit fc96adc

Browse files
Merge pull request #34 from HugoGranstrom/nimv2
add converter from new default set type
2 parents 216d3c8 + 8608f4c commit fc96adc

File tree

3 files changed

+19
-7
lines changed

3 files changed

+19
-7
lines changed

.github/workflows/valid.yml

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,27 @@
1-
name: Generate nimiSlides docs
1+
name: Tests
22

33
on:
44
pull_request:
55
branches:
66
- main
77

88
jobs:
9-
gen:
10-
name: Validate PR
11-
runs-on: ubuntu-latest
12-
9+
tests:
10+
runs-on: ubuntu-latest
11+
strategy:
12+
matrix:
13+
nim:
14+
- '1.6.x'
15+
- 'stable'
16+
- 'devel'
17+
fail-fast: false
18+
name: Nim ${{ matrix.nim }}
1319
steps:
1420
- uses: actions/checkout@v2
15-
- uses: iffy/install-nim@v4
21+
- uses: jiro4989/setup-nim-action@v1
22+
with:
23+
version: ${{ matrix.nim }}
24+
repo-token: ${{ secrets.GITHUB_TOKEN }}
1625
- name: Install deps
1726
run: |
1827
nimble install -y

nimiSlides.nimble

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Package
22

3-
version = "0.2.3"
3+
version = "0.2.4"
44
author = "Hugo Granström"
55
description = "Reveal.js theme for nimib"
66
license = "MIT"

src/nimiSlides.nim

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -411,6 +411,9 @@ proc toSet*(x: Slice[int]): set[range[0..65535]] =
411411
proc toSet*(x: seq[Slice[int]]): set[range[0..65535]] =
412412
for s in x:
413413
result.incl s.toSet()
414+
proc toSet*(x: set[range[0..255]]): set[range[0..65535]] =
415+
for y in x:
416+
result.incl y
414417

415418

416419
template animateCode*(lines: string, body: untyped) =

0 commit comments

Comments
 (0)