Let's add windows to the cmake ci

This commit is contained in:
Vincent Stumpf 2023-06-11 03:07:36 +00:00
parent 48b0b082b6
commit 258a8e6be0

View File

@ -31,23 +31,24 @@ jobs:
matrix: matrix:
# The ubuntu-latest label currently points to ubuntu-22.04. # The ubuntu-latest label currently points to ubuntu-22.04.
# Available: ubuntu-22.04, ubuntu-20.04 # Available: ubuntu-22.04, ubuntu-20.04
os: [ubuntu-latest] os: [ubuntu-latest, windows-latest]
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
# Install latest CMake.
- uses: lukka/get-cmake@latest
- name: Create build directory - name: Create build directory
run: mkdir cbuild run: cmake -E make_directory ${{github.workspace}}/build
- name: Create Unix Makefiles - name: Configure CMake
run: | # Use a bash shell so we can use the same syntax for environment variable
cd cbuild # access regardless of the host operating system
cmake -G "Unix Makefiles" .. shell: bash
working-directory: ${{github.workspace}}/build
- name: Command - make run: cmake -S ${{github.workspace}} -B ${{github.workspace}}/build
run: |
cd cbuild - name: Build
make working-directory: ${{github.workspace}}/build
shell: bash
# Execute the build. You can specify a specific target with "--target <NAME>"
run: cmake --build .