CSR (#51) #4
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Build and run tests on the Windows x64 platform | |
name: windows | |
on: | |
push: | |
branches: arch | |
pull_request: | |
branches: arch | |
jobs: | |
build: | |
name: Build and test | |
runs-on: windows-latest | |
strategy: | |
matrix: | |
include: | |
- BUILD_TYPE: Release | |
BUILD_FAST: OFF | |
BASH_PLATFORM: BASH_64 | |
steps: | |
- name: Get source | |
uses: actions/checkout@v3 | |
- name: Set up MinGW | |
uses: egor-tensin/setup-mingw@v2 | |
with: | |
platform: x64 | |
- name: Get CMake | |
uses: symbitic/install-cmake@master | |
- name: Configure CMake | |
run: > | |
cmake -B ${{github.workspace}}/build | |
-DCMAKE_BUILD_TYPE=${{matrix.BUILD_TYPE}} | |
-DBUILD_FAST=${{matrix.BUILD_FAST}} | |
-DBASH_PLATFORM=${{matrix.BASH_PLATFORM}} -G "MinGW Makefiles" | |
- name: Build | |
run: cmake --build ${{github.workspace}}/build | |
- name: Test | |
working-directory: ${{github.workspace}}/build | |
run: ctest --verbose | |
- name: Test bee2cmd | |
working-directory: ${{github.workspace}}/build/cmd | |
run: cp ../../cmd/test/* . && ./test.sh | |
shell: bash |