1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Use %VCVARS%

This commit is contained in:
Nobuyoshi Nakada 2020-10-12 16:22:30 +09:00
parent 10e09ccaff
commit a75ab110df
No known key found for this signature in database
GPG key ID: 7CD2805BFA3770C6

View file

@ -11,6 +11,7 @@ jobs:
runs-on: ${{ matrix.os }}
env:
GITPULLOPTIONS: --no-tags origin ${{github.ref}}
VCVARS: C:\Program Files (x86)\Microsoft Visual Studio\${{ matrix.vs }}\Enterprise\VC\Auxiliary\Build\vcvars64.bat
if: "!contains(github.event.head_commit.message, '[ci skip]')"
steps:
- uses: actions/cache@v2
@ -44,13 +45,13 @@ jobs:
shell: cmd
- name: Configure
run: |
call "C:\Program Files (x86)\Microsoft Visual Studio\${{ matrix.vs }}\Enterprise\VC\Auxiliary\Build\vcvars64.bat"
call "%VCVARS%"
../src/win32/configure.bat --disable-install-doc --without-ext=+,dbm,gdbm --enable-bundled-libffi --with-opt-dir=C:/vcpkg/installed/x64-windows --with-openssl-dir="C:/Program Files/OpenSSL-Win64"
working-directory: build
shell: cmd
- name: nmake
run: |
call "C:\Program Files (x86)\Microsoft Visual Studio\${{ matrix.vs }}\Enterprise\VC\Auxiliary\Build\vcvars64.bat"
call "%VCVARS%"
set YACC=win_bison
echo on
nmake incs
@ -61,7 +62,7 @@ jobs:
- name: nmake test
timeout-minutes: 30
run: |
call "C:\Program Files (x86)\Microsoft Visual Studio\${{ matrix.vs }}\Enterprise\VC\Auxiliary\Build\vcvars64.bat"
call "%VCVARS%"
nmake ${{ matrix.test_task }}
working-directory: build
shell: cmd