update changelog, push v0.6.0 #57
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: shell CI | |
on: | |
push: | |
paths: | |
- 'tests/**' | |
- '.github/workflows/ci.yml' | |
pull_request: | |
paths: | |
- 'tests/**' | |
- '.github/workflows/ci.yml' | |
jobs: | |
build: | |
strategy: | |
fail-fast: false | |
matrix: | |
branch: [version-1-2, version-1-4, devel] | |
target: [linux, macos, windows] | |
include: | |
- target: linux | |
builder: ubuntu-18.04 | |
- target: macos | |
builder: macos-10.15 | |
- target: windows | |
builder: windows-2019 | |
name: '${{ matrix.target }} (${{ matrix.branch }})' | |
runs-on: ${{ matrix.builder }} | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
with: | |
path: shell | |
- name: Setup Nim | |
uses: alaviss/[email protected] | |
with: | |
path: nim | |
version: ${{ matrix.branch }} | |
- name: Run tests | |
shell: bash | |
run: | | |
cd shell | |
nimble test | |
- name: Build docs | |
if: ${{ matrix.docs == 'true' && matrix.target == 'linux' }} | |
shell: bash | |
run: | | |
cd shell | |
branch=${{ github.ref }} | |
branch=${branch##*/} | |
nimble doc --project --outdir:docs \ | |
'--git.url:https://github.com/${{ github.repository }}' \ | |
'--git.commit:${{ github.sha }}' \ | |
"--git.devel:$branch" \ | |
shell.nim | |
# Ignore failures for older Nim | |
cp docs/{the,}index.html || true | |
- name: Publish docs | |
if: > | |
github.event_name == 'push' && github.ref == 'refs/heads/master' && | |
matrix.target == 'linux' && matrix.branch == 'devel' | |
uses: crazy-max/ghaction-github-pages@v1 | |
with: | |
build_dir: shell/docs | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |