Skip to content

Commit

Permalink
chore: fix Appveyor
Browse files Browse the repository at this point in the history
  • Loading branch information
jdkato committed Apr 8, 2024
1 parent 808a710 commit 58ef6a7
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 39 deletions.
39 changes: 0 additions & 39 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,45 3,6 @@ name: Build Lint
on: push

jobs:
windows:
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: "1.21"

- name: Install Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: 2.4

- name: Install Sphinx
run: pip install sphinx

- name: Install Asciidoctor
run: gem install asciidoctor

- name: Install XSLTProc
run: choco install xsltproc

- name: Install DITA-OT
run: |
curl -fsSL -o C:\dita-ot-3.4.zip
7z x C:\dita-ot-3.4.zip -y -r -oC:\dita
set PATH=C:\dita\dita-ot-3.4\bin;%PATH%
- name: Test
run: |
make setup
make build os=windows exe=vale.exe
make test
goreleaser:
runs-on: ubuntu-latest
steps:
Expand Down
38 changes: 38 additions & 0 deletions appveyor.yml
Original file line number Diff line number Diff line change
@@ -0,0 1,38 @@
version: "{build}"
image: Visual Studio 2019
clone_folder: c:\GOPATH\src\github.com\errata-ai\vale
environment:
GOPATH: c:\GOPATH
GOROOT: C:\go
GOVERSION: 1.21.0
init:
- cmd: set PATH=C:\MinGW\bin;�%/bin;%PATH%
install:
- set PATH=%GOPATH%\bin;c:\go\bin;C:\Ruby24\bin;�%;%PATH%

- rmdir C:\go /s /q
- appveyor DownloadFile https://storage.googleapis.com/golang/go%GOVERSION%.windows-amd64.zip
- 7z x go%GOVERSION%.windows-amd64.zip -y -oC:\ > NUL
- go version
- go env

- cinst ansicon

- pip install sphinx
- gem install asciidoctor

- choco install xsltproc
# Git on AppVeyor includes a non-functional xsltproc. Remove this.
- if exist "%ProgramFiles%\Git\usr\bin\xsltproc.exe" del "%ProgramFiles%\Git\usr\bin\xsltproc.exe"

- curl -fsSL -o C:\dita-ot-3.4.zip https://github.com/dita-ot/dita-ot/releases/download/3.4/dita-ot-3.4.zip
- 7z x C:\dita-ot-3.4.zip -y -r -oC:\dita
- set PATH=C:\dita\dita-ot-3.4\bin;%PATH%
build_script:
- cmd: go version
- cmd: C:\msys64\usr\bin\make.exe setup
- cmd: C:\msys64\usr\bin\make.exe build os=windows exe=vale.exe
test_script:
- cmd: C:\msys64\usr\bin\make.exe test
# after_test:
# - cmd: make compare

0 comments on commit 58ef6a7

Please sign in to comment.