Skip to content

Commit

Permalink
e Revert Windows build and test steps back to original code
Browse files Browse the repository at this point in the history
As building in bash shell was giving invalid paths.
  • Loading branch information
claremacrae committed Dec 26, 2020
1 parent da57130 commit 2b1332c
Showing 1 changed file with 19 additions and 2 deletions.
21 changes: 19 additions & 2 deletions .github/workflows/github_actions_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ jobs:

name: Windows ${{ matrix.job-name }}
env:
BUILD_PATH: build_space
BUILD_PATH: ${{ github.workspace }}/build_space
steps:
- uses: actions/checkout@master

Expand All @@ -229,4 +229,21 @@ jobs:
echo "BOOST_INCLUDEDIR=${boostroot}\include" >> ${env:GITHUB_ENV}
echo "BOOST_LIBRARYDIR=${boostroot}\lib" >> ${env:GITHUB_ENV}
- uses: ./.github/actions/build-and-test
# DOS paths - with backslashes - are not compatible with the github bash
# shell that is invoked in build-and-test/actions.yml - so sadly the code
# in that file is pasted in here
# - uses: ./.github/actions/build-and-test
- name: configure
run: |
mkdir ${{ env.BUILD_PATH }}
cd ${{ env.BUILD_PATH }}
cmake --version
cmake -G ${{ matrix.generator }} ${{ github.workspace }} -DCMAKE_BUILD_TYPE=Debug
- name: build
run: |
cd ${{ env.BUILD_PATH }}
cmake --build . --parallel 4
- name: test
run: |
cd ${{ env.BUILD_PATH }}
ctest --verbose --output-on-failure -C Debug

0 comments on commit 2b1332c

Please sign in to comment.