Skip to content

Warning

You're viewing an older version of this GitHub Action. Do you want to see the latest version instead?

Setup Nim environment

Actions
Setup a Nim environment and add it to the PATH
v1.0.2
Star (107)

Tags

 (1)

setup-nim-action

Build Status

This action sets up a Nim environment.

Usage

See action.yml

Basic:

steps:
- uses: actions/checkout@master
- uses: jiro4989/setup-nim-action@v1.0.2
  with:
    nim-version: '1.0.2'
- run: nimble build -Y
- run: nimble test -Y

Use cache:

steps:
- uses: actions/checkout@master
- 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
- uses: jiro4989/setup-nim-action@v1.0.2
- run: nimble build -Y
- run: nimble test -Y

Matrix Testing:

jobs:
  build:
    runs-on: ubuntu-latest
    strategy:
      matrix:
        nim: [ '1.0.2', 'stable' ]
    name: Nim ${{ matrix.nim }} sample
    steps:
      - uses: actions/checkout@master
      - name: Setup nim
        uses: jiro4989/setup-nim-action@v1.0.2
        with:
          nim-version: ${{ matrix.nim }}
      - run: nimble build

License

MIT

Setup Nim environment is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.

About

Setup a Nim environment and add it to the PATH
v1.0.2

Tags

 (1)

Setup Nim environment is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.