You're viewing an older version of this GitHub Action. Do you want to see the latest version instead?
GitHub Action
Setup Nim environment
v1.0.5
This action sets up a Nim environment.
See action.yml
Basic:
steps:
- uses: actions/checkout@master
- uses: jiro4989/setup-nim-action@v1
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
- 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
with:
nim-version: ${{ matrix.nim }}
- run: nimble build
MIT