diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 9427716..0bb73cd 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 tests/all.nim + - run: nim cpp -d:release --gc:arc tests/all.nim diff --git a/README.md b/README.md index 88ef885..08840bc 100644 --- a/README.md +++ b/README.md @@ -2,8 +2,12 @@ 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]