fix: upgrade visualstudio after install #104
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: build-windows | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
build: | |
runs-on: windows-2022 | |
steps: | |
- uses: actions/checkout@v3 | |
# - run: choco upgrade nodejs.install | |
# - run: choco install nodejs --version 20.0.0 | |
- run: choco install python visualstudio2017-workload-vctools -y | |
- run: choco upgrade -y visualstudio2017-workload-vctools | |
- run: npm install | |
- run: npm run prebuild | |
env: | |
GH_TOKEN: ${{ secrets.GH_TOKEN }} | |
- name: upload binaries | |
uses: actions/github-script@v6 | |
with: | |
script: | | |
const zip = require('cross-zip') | |
const script = require('./scripts/upload-binaries.js'); | |
await script({ | |
github, | |
context, | |
core, | |
zip | |
}); |