Skip to content

Commit

Permalink
[eclipse-iceoryx#264] Fix Windows cmake CI
Browse files Browse the repository at this point in the history
  • Loading branch information
elBoberido committed Jul 4, 2024
1 parent 0e67e92 commit c60bb24
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions .github/workflows/build-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -190,10 +190,12 @@ jobs:
mode:
- name: "release"
arg: "--release"
cmake-build-type: "-DCMAKE_BUILD_TYPE=Release"
cmake-build-type: "-DCMAKE_BUILD_TYPE=Release" # required for Makefile Generators at config time
cmake-build-config: "--config Release" # required for Visual Studio at build and install time
- name: "debug"
arg: ""
cmake-build-type: "-DCMAKE_BUILD_TYPE=Debug"
cmake-build-type: "-DCMAKE_BUILD_TYPE=Debug" # required for Makefile Generators at config time
cmake-build-config: "--config Debug" # required for Visual Studio at build and install time
include:
- toolchain: stable-gnu
cmake-build-system-generator: '-G "MinGW Makefiles"'
Expand Down Expand Up @@ -244,8 +246,8 @@ jobs:
- name: Build language bindings
run: |
cmake -S . -B target/ffi/build -DCMAKE_INSTALL_PREFIX=target/ffi/install -DBUILD_EXAMPLES=ON -DBUILD_TESTING=ON ${{ matrix.mode.cmake-build-type }} ${{ matrix.cmake-build-system-generator }}
cmake --build target/ffi/build
cmake --install target/ffi/build
cmake --build target/ffi/build ${{ matrix.mode.cmake-build-config }}
cmake --install target/ffi/build ${{ matrix.mode.cmake-build-config }}
- name: Run language binding tests
run: target/ffi/build/tests/iceoryx2-c-tests
Expand All @@ -260,7 +262,7 @@ jobs:
- name: Build language binding examples in out-of-tree configuration
run: |
cmake -S examples/c -B target/ffi/out-of-tree -DCMAKE_PREFIX_PATH=${{ github.workspace }}/target/ffi/install ${{ matrix.mode.cmake-build-type }} ${{ matrix.cmake-build-system-generator }}
cmake --build target/ffi/out-of-tree
cmake --build target/ffi/out-of-tree ${{ matrix.mode.cmake-build-config }}
x86_64_unstable:
needs: [preflight-check, static-code-analysis, cargo-nextest]
Expand Down

0 comments on commit c60bb24

Please sign in to comment.