Browse Source

cmake CI tweaks

Signed-off-by: falkTX <falktx@falktx.com>
pull/1780/head
falkTX 1 year ago
parent
commit
78500f0834
Signed by: falkTX <falktx@falktx.com> GPG Key ID: CDBAA37ABC74FBA0
1 changed files with 10 additions and 6 deletions
  1. +10
    -6
      .github/workflows/cmake.yml

+ 10
- 6
.github/workflows/cmake.yml View File

@@ -42,12 +42,13 @@ jobs:
run: cmake -S cmake -B build \ run: cmake -S cmake -B build \
-DCMAKE_CROSSCOMPILING=ON \ -DCMAKE_CROSSCOMPILING=ON \
-DCMAKE_CROSSCOMPILING_EMULATOR=wine \ -DCMAKE_CROSSCOMPILING_EMULATOR=wine \
-DCMAKE_SHARED_LIBRARY_SUFFIX=".dll" \
-DCMAKE_SYSTEM_NAME=Windows \ -DCMAKE_SYSTEM_NAME=Windows \
-DCMAKE_SYSTEM_PROCESSOR=i686 \ -DCMAKE_SYSTEM_PROCESSOR=i686 \
-DCMAKE_C_COMPILER=i686-w64-mingw32-gcc \ -DCMAKE_C_COMPILER=i686-w64-mingw32-gcc \
-DCMAKE_CXX_COMPILER=i686-w64-mingw32-g++ \ -DCMAKE_CXX_COMPILER=i686-w64-mingw32-g++ \
-DCMAKE_AR=$(which i686-w64-mingw32-ar) \
-DCMAKE_RANLIB=$(which i686-w64-mingw32-ranlib)
-DCMAKE_RANLIB=i686-w64-mingw32-ranlib \
-DCMAKE_AR=$(which i686-w64-mingw32-ar)
- name: build - name: build
run: cmake --build build -j $(nproc) run: cmake --build build -j $(nproc)
- name: install - name: install
@@ -69,12 +70,13 @@ jobs:
run: cmake -S cmake -B build \ run: cmake -S cmake -B build \
-DCMAKE_CROSSCOMPILING=ON \ -DCMAKE_CROSSCOMPILING=ON \
-DCMAKE_CROSSCOMPILING_EMULATOR=wine \ -DCMAKE_CROSSCOMPILING_EMULATOR=wine \
-DCMAKE_SHARED_LIBRARY_SUFFIX=".dll" \
-DCMAKE_SYSTEM_NAME=Windows \ -DCMAKE_SYSTEM_NAME=Windows \
-DCMAKE_SYSTEM_PROCESSOR=x86_64 \ -DCMAKE_SYSTEM_PROCESSOR=x86_64 \
-DCMAKE_C_COMPILER=x86_64-w64-mingw32-gcc \ -DCMAKE_C_COMPILER=x86_64-w64-mingw32-gcc \
-DCMAKE_CXX_COMPILER=x86_64-w64-mingw32-g++ \ -DCMAKE_CXX_COMPILER=x86_64-w64-mingw32-g++ \
-DCMAKE_AR=$(which x86_64-w64-mingw32-ar) \
-DCMAKE_RANLIB=$(which x86_64-w64-mingw32-ranlib)
-DCMAKE_RANLIB=x86_64-w64-mingw32-ranlib \
-DCMAKE_AR=$(which x86_64-w64-mingw32-ar)
- name: build - name: build
run: cmake --build build -j $(nproc) run: cmake --build build -j $(nproc)
- name: install - name: install
@@ -118,5 +120,7 @@ jobs:
run: cmake -S cmake -B build run: cmake -S cmake -B build
- name: build - name: build
run: cmake --build build run: cmake --build build
- name: install
run: cmake --install build --verbose
# FIXME fails with error
# https://github.com/falkTX/Carla/actions/runs/5137608233/jobs/9245932221
#- name: install
#run: cmake --install build --verbose

Loading…
Cancel
Save