From 78bad9b45637be48624206b06559073ab5a3811d Mon Sep 17 00:00:00 2001 From: Ajitem Sahasrabuddhe Date: Fri, 6 Dec 2019 10:39:25 +0530 Subject: [PATCH] enable windows build --- .github/workflows/cli.yml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/.github/workflows/cli.yml b/.github/workflows/cli.yml index d4f9cdb..66eb6b2 100644 --- a/.github/workflows/cli.yml +++ b/.github/workflows/cli.yml @@ -14,7 +14,7 @@ jobs: test: strategy: matrix: - os: [ubuntu-latest, macos-latest] + os: [ubuntu-latest, macos-latest, windows-latest] go: [1.11, 1.12, 1.13] name: ${{ matrix.os }} @ Go ${{ matrix.go }} runs-on: ${{ matrix.os }} @@ -51,6 +51,14 @@ jobs: chmod +x $GOPATH/bin/gfmrun npm install markdown-toc + - name: Install Dependencies (Windows) + if: matrix.os == 'windows-latest' + run: | + mkdir -p $GOPATH/bin + curl -s https://api.github.com/repos/urfave/gfmrun/releases/latest | grep gfmrun-windows-amd64 | grep download | cut -d '"' -f 4 | wget -O $GOPATH/bin/gfmrun -i - + chmod +x $GOPATH/bin/gfmrun + npm install markdown-toc + - name: Run Tests (v1) if: contains(github.base_ref, 'v1') run: |