Skip to content

Commit

Permalink
ci: add nimskull to matrix
Browse files Browse the repository at this point in the history
  • Loading branch information
alaviss committed Jan 18, 2024
1 parent 480fc83 commit 5ca25e3
Showing 1 changed file with 37 additions and 5 deletions.
42 changes: 37 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,20 +53,52 @@ jobs:
fail-fast: false
matrix:
os: [ubuntu-latest]
nim: [devel]
name: '${{ matrix.os }} (${{ matrix.nim }})'
compiler:
- name: nim
version: devel

- name: nimskull
version: "*"

name: "${{ matrix.os }} (${{ matrix.compiler.name }} ${{ matrix.compiler.version }})"
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@v4
with:
path: project

- name: Compiler
- name: Compiler (nim)
if: matrix.compiler.name == 'nim'
uses: alaviss/[email protected]
with:
path: nim
version: ${{ matrix.nim }}
version: ${{ matrix.compiler.version }}

- 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: Fetch nimble's fork for nimskull
uses: actions/checkout@v4
with:
path: nimble
repository: alaviss/nimble
ref: nimskull

- 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"
env:
NIMSKULL_BIN: ${{ steps.nimskull.outputs.binPath }}

- name: Valgrind
shell: bash
Expand All @@ -79,7 +111,7 @@ jobs:
run: |
cd project
nimble --accept develop
nimble --accept install "https://github.com/disruptek/balls"
nimble --accept install "https://github.com/disruptek/balls@3.9.10"
- name: Examples
shell: bash
Expand Down

0 comments on commit 5ca25e3

Please sign in to comment.