mirror of
https://github.com/ruby/ruby.git
synced 2025-09-22 20:14:02 +02:00
[Windows CI] Setup env
This commit is contained in:
parent
ed31bdfeee
commit
76e8cfd158
1 changed files with 11 additions and 9 deletions
20
.github/workflows/windows.yml
vendored
20
.github/workflows/windows.yml
vendored
|
@ -66,13 +66,22 @@ jobs:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
with:
|
with:
|
||||||
path: src
|
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
|
- name: Configure
|
||||||
run: |
|
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"
|
../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
|
- name: nmake
|
||||||
run: |
|
run: |
|
||||||
call %VCVARS%
|
|
||||||
echo ^#^#[group]incs
|
echo ^#^#[group]incs
|
||||||
nmake incs
|
nmake incs
|
||||||
echo ^#^#[endgroup]
|
echo ^#^#[endgroup]
|
||||||
|
@ -85,22 +94,15 @@ jobs:
|
||||||
- name: nmake test
|
- name: nmake test
|
||||||
timeout-minutes: 5
|
timeout-minutes: 5
|
||||||
run: |
|
run: |
|
||||||
call %VCVARS%
|
|
||||||
nmake test
|
nmake test
|
||||||
- name: nmake test-all
|
- name: nmake test-all
|
||||||
timeout-minutes: 60
|
timeout-minutes: 60
|
||||||
run: |
|
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"
|
nmake test-all TESTOPTS="-j%NUMBER_OF_PROCESSORS% --job-status=normal"
|
||||||
continue-on-error: ${{ matrix.continue-on-error }}
|
continue-on-error: ${{ matrix.continue-on-error }}
|
||||||
- name: nmake test-spec
|
- name: nmake test-spec
|
||||||
timeout-minutes: 10
|
timeout-minutes: 10
|
||||||
run: |
|
run: |
|
||||||
call %VCVARS%
|
|
||||||
nmake test-spec
|
nmake test-spec
|
||||||
continue-on-error: ${{ matrix.continue-on-error }}
|
continue-on-error: ${{ matrix.continue-on-error }}
|
||||||
- uses: k0kubun/action-slack@v2.0.0
|
- uses: k0kubun/action-slack@v2.0.0
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue