enable windows build

This commit is contained in:
Ajitem Sahasrabuddhe 2019-12-06 10:39:25 +05:30
parent bac545cf3d
commit 78bad9b456
No known key found for this signature in database
GPG Key ID: 5B0EE10DAA76876C

View File

@ -14,7 +14,7 @@ jobs:
test: test:
strategy: strategy:
matrix: matrix:
os: [ubuntu-latest, macos-latest] os: [ubuntu-latest, macos-latest, windows-latest]
go: [1.11, 1.12, 1.13] go: [1.11, 1.12, 1.13]
name: ${{ matrix.os }} @ Go ${{ matrix.go }} name: ${{ matrix.os }} @ Go ${{ matrix.go }}
runs-on: ${{ matrix.os }} runs-on: ${{ matrix.os }}
@ -51,6 +51,14 @@ jobs:
chmod +x $GOPATH/bin/gfmrun chmod +x $GOPATH/bin/gfmrun
npm install markdown-toc 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) - name: Run Tests (v1)
if: contains(github.base_ref, 'v1') if: contains(github.base_ref, 'v1')
run: | run: |