From eb1b6dca9a897c2d5a4fafc4dee9ecb3db922b5e Mon Sep 17 00:00:00 2001 From: Regis Caillaud Date: Wed, 18 Sep 2024 13:55:14 +0200 Subject: [PATCH] run ci.yml on multiple Nim version --- .github/workflows/ci.yml | 23 +++++++++++++++-------- 1 file changed, 15 insertions(+), 8 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 90a93f1..90d8ff9 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -9,26 +9,33 @@ on: jobs: tests: + runs-on: ubuntu-latest strategy: matrix: - os: [ubuntu-latest] - # os: [ubuntu-latest, macos-latest, windows-latest] + nim: + - '2.0.x' + - 'stable' + - devel - runs-on: ${{ matrix.os }} - # runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 - - name: "install_nim" - id: install_nim - uses: iffy/install-nim@v3.2.2 + - uses: actions/checkout@v4 + - name: Setup nim + uses: jiro4989/setup-nim-action@v2 + with: + use-nightlies: true + nim-version: ${{ matrix.nim }} + repo-token: ${{ secrets.GITHUB_TOKEN }} + - name: "install_julia" id: install_julia uses: julia-actions/setup-julia@latest with: show-versioninfo: 'true' + - run: nimble install -y env: JULIA_PATH: ${{ steps.install_julia.outputs.julia-bindir }}/.. + - run: nimble test env: JULIA_PATH: ${{ steps.install_julia.outputs.julia-bindir }}/..