summaryrefslogtreecommitdiff
path: root/.github/workflows/windows.yml
diff options
context:
space:
mode:
author卜部昌平 <shyouhei@ruby-lang.org>2020-02-26 13:12:46 +0900
committer卜部昌平 <shyouhei@ruby-lang.org>2020-03-02 14:53:05 +0900
commit888e736524ad66369a7cbc065af4a1b5ed591c6a (patch)
tree439606b4929d8e19fae91e3e4302a9f8b643c1ee /.github/workflows/windows.yml
parente06ad731f03ab83b72c15f951d7a5a3c8ac4323c (diff)
.github: make use of working-directory
One can specify working directory of a step, no by `cd foo` inside of the run. See also https://help.github.com/en/actions/reference/workflow-syntax-for-github-actions#jobsjob_idstepsrun
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/2927
Diffstat (limited to '.github/workflows/windows.yml')
-rw-r--r--.github/workflows/windows.yml9
1 files changed, 5 insertions, 4 deletions
diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml
index c2f8f7490a..ed2079a610 100644
--- a/.github/workflows/windows.yml
+++ b/.github/workflows/windows.yml
@@ -46,28 +46,29 @@ jobs:
- run: ./src/tool/actions-commit-info.sh
shell: bash
id: commit_info
+ - run: md build
+ shell: cmd
- name: Configure
run: |
- md build
- cd build
call "C:\Program Files (x86)\Microsoft Visual Studio\${{ matrix.vs }}\Enterprise\VC\Auxiliary\Build\vcvars64.bat"
../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"
set YACC=win_bison
- cd build
echo on
nmake up
nmake extract-gems
nmake
+ working-directory: build
shell: cmd
- name: nmake test
run: |
call "C:\Program Files (x86)\Microsoft Visual Studio\${{ matrix.vs }}\Enterprise\VC\Auxiliary\Build\vcvars64.bat"
- cd build
nmake ${{ matrix.test_task }}
+ working-directory: build
shell: cmd
- uses: k0kubun/action-slack@v2.0.0
with: