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

[Windows CI] Setup env

This commit is contained in:
Nobuyoshi Nakada 2021-08-26 01:01:53 +09:00
parent ed31bdfeee
commit 76e8cfd158
No known key found for this signature in database
GPG key ID: 7CD2805BFA3770C6

View file

@ -66,13 +66,22 @@ jobs:
- uses: actions/checkout@v2
with:
path: src
- name: setup env
# %TEMP% is inconsistent with %TMP% and test-all expects they are consistent.
# https://github.com/actions/virtual-environments/issues/712#issuecomment-613004302
run: |
set | C:\msys64\usr\bin\sort > old.env
call %VCVARS%
set TMP=%USERPROFILE%\AppData\Local\Temp
set TEMP=%USERPROFILE%\AppData\Local\Temp
set | C:\msys64\usr\bin\sort > new.env
C:\msys64\usr\bin\comm -13 old.env new.env >> %GITHUB_ENV%
del *.env
- name: Configure
run: |
call %VCVARS%
../src/win32/configure.bat --disable-install-doc --enable-bundled-libffi --with-opt-dir=C:/vcpkg/installed/x64-windows --with-openssl-dir="C:/Program Files/OpenSSL-Win64"
- name: nmake
run: |
call %VCVARS%
echo ^#^#[group]incs
nmake incs
echo ^#^#[endgroup]
@ -85,22 +94,15 @@ jobs:
- name: nmake test
timeout-minutes: 5
run: |
call %VCVARS%
nmake test
- name: nmake test-all
timeout-minutes: 60
run: |
call %VCVARS%
::- %TEMP% is inconsistent with %TMP% and test-all expects they are consistent.
::- https://github.com/actions/virtual-environments/issues/712#issuecomment-613004302
set TMP=%USERPROFILE%\AppData\Local\Temp
set TEMP=%USERPROFILE%\AppData\Local\Temp
nmake test-all TESTOPTS="-j%NUMBER_OF_PROCESSORS% --job-status=normal"
continue-on-error: ${{ matrix.continue-on-error }}
- name: nmake test-spec
timeout-minutes: 10
run: |
call %VCVARS%
nmake test-spec
continue-on-error: ${{ matrix.continue-on-error }}
- uses: k0kubun/action-slack@v2.0.0