stop using ubuntu-latest as CI #715
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
name: Windows | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
env: | |
# Customize the CMake build type here (Release, Debug, etc.) | |
BUILD_TYPE: Release | |
jobs: | |
build_with_cmake: | |
runs-on: windows-2019 | |
strategy: | |
matrix: | |
mode: [ Release ] | |
arch: [ x86 ] | |
env: | |
CXX: cl.exe | |
CC: cl.exe | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Generate Project | |
run: cmake -B Build/${{ matrix.mode }} -DCMAKE_BUILD_TYPE=${{ matrix.mode }} -DRFK_DEV=1 -G "Visual Studio 16 2019" -A x64 | |
- name: Build async_simple | |
run: cmake --build Build/${{ matrix.mode }} --config ${{ matrix.mode }} --verbose | |
- name: Test | |
working-directory: ${{github.workspace}}/Build/${{ matrix.mode }} | |
# Execute tests defined by the CMake configuration. | |
# See https://cmake.org/cmake/help/latest/manual/ctest.1.html for more detail | |
run: ctest -C ${{ matrix.mode }} --output-on-failure | |
build_with_bazel: | |
runs-on: windows-2019 | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Build | |
working-directory: ${{github.workspace}} | |
run: bazel build ... | |
- name: Test | |
working-directory: ${{github.workspace}} | |
run: bazel test --test_output=errors ... |