Skip to content

Nicer yaml printing, get rid of comment map in ast #64

Nicer yaml printing, get rid of comment map in ast

Nicer yaml printing, get rid of comment map in ast #64

Workflow file for this run

name: CI
on: [push, pull_request]
concurrency: # Cancel stale PR builds (but not push builds)
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}
cancel-in-progress: true
jobs:
build:
strategy:
fail-fast: false
matrix:
target:
- os: linux
triple: x86_64-linux-musl
name: linux_x64
- os: macosx
triple: x86_64-apple-darwin14
name: apple_x64
- os: windows
triple: x86_64-w64-mingw32
name: windows_x64
include:
- target:
os: linux
builder: ubuntu-20.04
- target:
os: macosx
builder: macos-11
- target:
os: windows
builder: windows-2019
defaults:
run:
shell: bash
name: CI '${{ matrix.target.name }}'
runs-on: ${{ matrix.builder }}
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Fetch nimble
uses: robinraju/[email protected]
with:
repository: "nim-lang/nimble"
tag: "latest"
fileName: "nimble-${{matrix.target.name}}.tar.gz"
extract: false
- name: Setup env
run: |
# extract: true doesn't work on osx :/
tar xvf nimble-${{matrix.target.name}}.tar.gz
# needed for nimble on windows
curl -L "https://curl.se/ca/cacert.pem" -o cacert.pem
echo "$PWD" >> $GITHUB_PATH
- name: Build nph
run: |
ls -l
nimble setup -l
nimble build
- name: Check formatting
run: |
find src tests/after -name "*.nim" -print0 | xargs -0 -n1 ./nph
git diff
# find -name "*.nim" ! -path "./tests/before/*" ! -path "./nimbledeps/*" -print0 | xargs -0 -n1 ./nph --check