exercises(isogram, nth-prime, pangram, sieve): examples: tweak comments #426
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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@dcaa84c8d3feb17cd7cc10bd124d1658888d9c0e | |
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 |