Skip to content

Merge pull request #2 from Koistinen/patch-1 #61

Merge pull request #2 from Koistinen/patch-1

Merge pull request #2 from Koistinen/patch-1 #61

Workflow file for this run

name: Nim CI
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
Test:
if: |
!contains(github.event.head_commit.message, '[skip ci]')
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest]
compiler:
- name: nim
version: devel
- name: nimskull
version: "*"
name: ${{ matrix.os }}-${{ matrix.nim-channel }}
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- name: Compiler (nim)
if: matrix.compiler.name == 'nim'
uses: alaviss/[email protected]
with:
path: nim
version: ${{ matrix.nim }}
version: ${{ matrix.compiler.version }}

Check failure on line 35 in .github/workflows/nim.yml

View workflow run for this annotation

GitHub Actions / Nim CI

Invalid workflow file

The workflow is not valid. .github/workflows/nim.yml (Line: 35, Col: 9): 'version' is already defined
- name: Compiler (nimskull)
id: nimskull
if: matrix.compiler.name == 'nimskull'
uses: alaviss/setup-nimskull@f6e8ade8ac51191024616216e5da0ee968d9da48
with:
version: ${{ matrix.compiler.version }}
- if: matrix.compiler.name == 'nimskull'
name: Build nimble and add to PATH
shell: bash
run: |
cd nimble
nim c -d:release -o:nimble src/nimble.nim
cp nimble "$NIMSKULL_BIN/nimble"
# Add nimble binary folder to PATH too
echo "$HOME/.nimble/bin" >> $GITHUB_PATH
env:
NIMSKULL_BIN: ${{ steps.nimskull.outputs.binPath }}
- name: Test
shell: bash
run: |
nim --version
nimble test