summaryrefslogtreecommitdiff
path: root/.github/workflows/windows.yml
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2021-08-26 01:01:53 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2021-08-28 18:21:39 +0900
commit76e8cfd1588e5a787f579063d66cba001e54380a (patch)
treee2ec831f2838b97d94a8c0da1de25bac5ad2634b /.github/workflows/windows.yml
parented31bdfeee3396bd703ba432630bc31933a08feb (diff)
[Windows CI] Setup env
Diffstat (limited to '.github/workflows/windows.yml')
-rw-r--r--.github/workflows/windows.yml20
1 files changed, 11 insertions, 9 deletions
diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml
index 495789fe17..6f2e237dcd 100644
--- a/.github/workflows/windows.yml
+++ b/.github/workflows/windows.yml
@@ -66,13 +66,22 @@ jobs:
- uses: actions/checkout@v2
with:
path: src
- - name: Configure
+ - 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: |
../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