Skip to content

.github: Bump iffy/install-nim from 5.0.2 to 5.0.3 #746

.github: Bump iffy/install-nim from 5.0.2 to 5.0.3

.github: Bump iffy/install-nim from 5.0.2 to 5.0.3 #746

Workflow file for this run

name: exercises
on: [push, pull_request]
jobs:
exercises:
strategy:
fail-fast: false
matrix:
include:
- nim: '2.0.0'
os: linux
- nim: '2.0.0'
os: macOS
- nim: '2.0.0'
os: windows
- nim: devel
os: linux
- nim: '1.6.0'
os: linux
name: nim-${{ matrix.nim }}-${{ matrix.os }}
runs-on: ${{ matrix.os == 'linux' && 'ubuntu-22.04' || (matrix.os == 'macOS' && 'macos-12' || 'windows-2022') }}
steps:
- name: Checkout exercism/nim
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
- name: Install Nim (devel)
if: matrix.nim == 'devel'
uses: alaviss/setup-nim@f81f2a6d1505ab32f440ec9d8adbb81e949d3bf0 # 0.1.1
with:
path: 'nim'
version: ${{ matrix.nim }}
- name: Install Nim (non-devel)
if: matrix.nim != 'devel'
uses: iffy/install-nim@0ed218de08059d18507144e6aee70e6bad0bc148
with:
version: "binary:${{ matrix.nim }}"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Show versions of Nim and Nimble
run: |
nim --version
printf '\n\n\n\n'
nimble --version
- name: Compile `check_exercises.nim`
run: nim c --styleCheck:error _test/check_exercises.nim
- name: Run `check_exercises`
run: _test/check_exercises
- name: Compile `check_stubs.nim`
run: nim c --styleCheck:error _test/check_stubs.nim
- name: Run `check_stubs`
run: _test/check_stubs