summaryrefslogtreecommitdiff
path: root/.github/workflows/windows.yml
diff options
context:
space:
mode:
author卜部昌平 <shyouhei@ruby-lang.org>2020-10-19 15:32:39 +0900
committer卜部昌平 <shyouhei@ruby-lang.org>2020-10-21 09:24:47 +0900
commitda25affdacc45dd54a1d4c12a5f8394145811276 (patch)
tree72ebfddce08ad5756d14a9af87134978ee5494d7 /.github/workflows/windows.yml
parent1c5f44cd728e8c42fd99a74151752e2980e65d0f (diff)
.github: reduce copy&paste
Found that we can set default working directory for github actions.
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/3675
Diffstat (limited to '.github/workflows/windows.yml')
-rw-r--r--.github/workflows/windows.yml15
1 files changed, 7 insertions, 8 deletions
diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml
index 0ae537959a..98e59ae188 100644
--- a/.github/workflows/windows.yml
+++ b/.github/workflows/windows.yml
@@ -14,6 +14,8 @@ jobs:
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:
+ - run: md build
+ working-directory:
- uses: actions/cache@v2
with:
path: C:\vcpkg\downloads
@@ -41,14 +43,10 @@ jobs:
- uses: actions/checkout@v2
with:
path: src
- - run: md build
- shell: cmd
- name: Configure
run: |
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 "%VCVARS%"
@@ -57,15 +55,11 @@ jobs:
nmake incs
nmake extract-extlibs
nmake
- working-directory: build
- shell: cmd
- name: nmake test
timeout-minutes: 30
run: |
call "%VCVARS%"
nmake ${{ matrix.test_task }}
- working-directory: build
- shell: cmd
- uses: k0kubun/action-slack@v2.0.0
with:
payload: |
@@ -79,3 +73,8 @@ jobs:
env:
SLACK_WEBHOOK_URL: ${{ secrets.SIMPLER_ALERTS_URL }} # ruby-lang slack: ruby/simpler-alerts-bot
if: failure() && github.event_name == 'push'
+
+defaults:
+ run:
+ working-directory: build
+ shell: cmd