Skip to content

Commit

Permalink
Fix ganache in windows CI (#3105)
Browse files Browse the repository at this point in the history
## Issue Addressed

Hopefully makes windows ganache installation more reliable.

## Proposed Changes

- use `chocolatey` to install windows build tools. This seems to often be the prescribed solution for `node gyp` issues. `chocolatey` is used here because `npm install --global --production windows-build-tools` hangs in github actions

## Additional Info
I still haven't found why the prior installation technique would sometimes work, the `windows-2019` environments seem to be identical across successes and failures.  I think this should be re-run a few times to see if it can consistently pass


Co-authored-by: realbigsean <[email protected]>
  • Loading branch information
realbigsean and realbigsean committed Mar 21, 2022
1 parent 2aabcaa commit ec08b08
Showing 1 changed file with 4 additions and 10 deletions.
14 changes: 4 additions & 10 deletions .github/workflows/test-suite.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,16 +62,10 @@ jobs:
- uses: actions/checkout@v1
- name: Get latest version of stable Rust
run: rustup update stable
- name: Add msbuild to PATH
uses: microsoft/[email protected]
- name: Use Python 2.7
uses: actions/setup-python@v2
with:
python-version: "2.7"
- name: Set node config to use python2.7
run: npm config set python %pythonLocation%
- name: Set msvs_version to 2019
run: npm config set msvs_version 2019 --global
- name: Install windows build tools
run: |
choco install python visualstudio2019-workload-vctools -y
npm config set msvs_version 2019
- name: Install ganache
run: npm install -g ganache
- name: Install make
Expand Down

0 comments on commit ec08b08

Please sign in to comment.