From cc114eeb73e96dcb7645988d4cc4570c84aa5a72 Mon Sep 17 00:00:00 2001 From: treeform Date: Wed, 2 Jun 2021 07:35:04 -0700 Subject: [PATCH 1/2] Add more github actions tests. --- .github/workflows/build.yml | 30 +++++++++++------------------- README.md | 3 +++ 2 files changed, 14 insertions(+), 19 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 9427716..641b206 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -1,26 +1,18 @@ -name: Run tests +name: Github Actions on: [push, pull_request] jobs: build: - runs-on: ubuntu-latest + strategy: + fail-fast: false + matrix: + os: [ubuntu-latest, windows-latest] - steps: - - uses: actions/checkout@v1 - - - name: Cache choosenim - id: cache-choosenim - uses: actions/cache@v1 - with: - path: ~/.choosenim - key: ${{ runner.os }}-choosenim-stable - - - name: Cache nimble - id: cache-nimble - uses: actions/cache@v1 - with: - path: ~/.nimble - key: ${{ runner.os }}-nimble-stable + runs-on: ${{ matrix.os }} + steps: + - uses: actions/checkout@v2 - uses: jiro4989/setup-nim-action@v1 - - run: nimble test -y + - run: nimble test --gc:orc -y + - run: nim js all.nim + - run: nim cpp -d:release --gc:arc all.nim diff --git a/README.md b/README.md index 88ef885..149474c 100644 --- a/README.md +++ b/README.md @@ -2,6 +2,9 @@ Pure nim module with no other dependencies. +![Github Actions](https://github.com/treeform/vmath/workflows/Github%20Actions/badge.svg) + + `nimble install jsony` ```nim From bda15f415746e6bdf19ac440674cd44e96ba8373 Mon Sep 17 00:00:00 2001 From: treeform Date: Wed, 2 Jun 2021 07:37:54 -0700 Subject: [PATCH 2/2] fixes --- .github/workflows/build.yml | 4 ++-- README.md | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 641b206..0bb73cd 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -14,5 +14,5 @@ jobs: - uses: jiro4989/setup-nim-action@v1 - run: nimble test -y - run: nimble test --gc:orc -y - - run: nim js all.nim - - run: nim cpp -d:release --gc:arc all.nim + - run: nim js tests/all.nim + - run: nim cpp -d:release --gc:arc tests/all.nim diff --git a/README.md b/README.md index 149474c..08840bc 100644 --- a/README.md +++ b/README.md @@ -4,9 +4,10 @@ Pure nim module with no other dependencies. ![Github Actions](https://github.com/treeform/vmath/workflows/Github%20Actions/badge.svg) - `nimble install jsony` +Check out the [Api Reference](https://nimdocs.com/treeform/jsony/jsony.html). + ```nim @[1, 2, 3].toJson() -> "[1,2,3]" "[1,2,3]".fromJson(seq[int]) -> @[1, 2, 3]