Skip to content

Drop support for Nim < 1.6 #248

Drop support for Nim < 1.6

Drop support for Nim < 1.6 #248

Workflow file for this run

name: CI
on:
push:
branches:
- master
pull_request:
jobs:
test:
name: Nim ${{ matrix.nim }}
runs-on: ubuntu-latest
strategy:
matrix:
# xxx trim to on use latest in each branch eg 1.0.10, 1.2.8 etc
nim: [1.6.18, 2.0.0]
steps:
- uses: actions/checkout@v2
- name: Run Tests
run: |
docker pull nimlang/nim:${{ matrix.nim }}
docker run --rm -v `pwd`:/usr/src/app -w /usr/src/app nimlang/nim:${{ matrix.nim }} /bin/bash -c "git config --global --add safe.directory /usr/src/app; nimble install -y; nimble test"
- name: Build docs
if: matrix.nim == '1.6.18'
run: |
docker pull nimlang/nim:${{ matrix.nim }}
docker run --rm -v `pwd`:/usr/src/app -w /usr/src/app nimlang/nim:${{ matrix.nim }} /bin/bash -c "git config --global --add safe.directory /usr/src/app; nimble install -y; nimble docs"
- name: Deploy docs
# to view docs on your own fork: push a gh-pages branch on your fork,
# enable gh-pages in your fork
# and remove `github.ref == 'refs/heads/master'` below
if: |
github.event_name == 'push' && github.ref == 'refs/heads/master' &&
matrix.nim == '1.6.18'
uses: crazy-max/ghaction-github-pages@v1
with:
build_dir: docs
target_branch: gh-pages
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}