aboutsummaryrefslogtreecommitdiffstats
path: root/.github/workflows/windows.yml
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2019-10-28 18:31:00 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2019-10-28 22:05:57 +0900
commit6e0b40af3da4941b618f018b2c04cee0110ce50c (patch)
tree44d831ba82129c2b34c86d8b12885433b6198b55 /.github/workflows/windows.yml
parent48f982aba7ab5b23af168d3c108e71e3a27c0648 (diff)
downloadruby-6e0b40af3da4941b618f018b2c04cee0110ce50c.tar.gz
Try out-of-place build
Diffstat (limited to '.github/workflows/windows.yml')
-rw-r--r--.github/workflows/windows.yml16
1 files changed, 10 insertions, 6 deletions
diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml
index 6dee27ed6a..f0e65d0f4e 100644
--- a/.github/workflows/windows.yml
+++ b/.github/workflows/windows.yml
@@ -31,29 +31,33 @@ jobs:
# Not using official actions/checkout because it's unstable and sometimes doesn't work for a fork.
- name: Checkout ruby/ruby
run: |
- git clone --depth=50 https://github.com/ruby/ruby .
- git reset --hard ${{ github.sha }}
+ git clone --depth=50 https://github.com/ruby/ruby src
+ git -C src reset --hard ${{ github.sha }}
if: github.event_name == 'push'
- name: Checkout a pull request
run: |
- git clone --depth=50 --branch=${{ github.event.pull_request.head.ref }} https://github.com/${{ github.event.pull_request.head.repo.full_name }} .
- git reset --hard ${{ github.event.pull_request.head.sha }}
+ git clone --depth=50 --branch=${{ github.event.pull_request.head.ref }} https://github.com/${{ github.event.pull_request.head.repo.full_name }} src
+ git -C src reset --hard ${{ github.event.pull_request.head.sha }}
if: github.event_name == 'pull_request'
- - name: configure
+ - name: Configure
run: |
+ md build
+ cd build
call "C:\Program Files (x86)\Microsoft Visual Studio\${{ matrix.vs }}\Enterprise\VC\Auxiliary\Build\vcvars64.bat"
- win32/configure.bat --disable-install-doc --without-ext=+,dbm,gdbm --enable-bundled-libffi --with-opt-dir=C:/vcpkg/installed/x64-windows
+ ../src/win32/configure.bat --disable-install-doc --without-ext=+,dbm,gdbm --enable-bundled-libffi --with-opt-dir=C:/vcpkg/installed/x64-windows
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
nmake up
nmake
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 }}
shell: cmd
- uses: k0kubun/action-slack@v2.0.0