platform: x64 cache: - "c:\\sr" - .stack-work environment: global: STACK_ROOT: "c:\\sr" GOPATH: c:\gopath test: off skip_non_tags: true skip_branch_with_pr: true branches: only: - master install: - set PATH=C:\Program Files\PostgreSQL\9.6\bin\;%PATH% - curl -sS -ostack.zip -L --insecure http://www.stackage.org/stack/windows-x86_64 - 7z x stack.zip stack.exe - set PATH=%GOPATH%\bin;c:\go\bin;%PATH% - go get -u github.com/tcnksm/ghr build_script: - stack setup --no-terminal > nul - stack build -j1 --copy-bins --local-bin-path . artifacts: - path: postgrest.exe deploy_script: - 7z a -tzip postgrest-%APPVEYOR_REPO_TAG_NAME%-windows-x64.zip postgrest.exe - bash -lc "exec 0