mirror of
https://github.com/cuberite/SQLiteCpp.git
synced 2025-08-07 19:26:10 -04:00
Add an explicit generator to the matrix config of Github Actions to handle MinGW Makefiles
This commit is contained in:
parent
fc92d9cf92
commit
4e03e590c4
34
.github/workflows/build.yml
vendored
34
.github/workflows/build.yml
vendored
@ -13,29 +13,43 @@ jobs:
|
|||||||
- {
|
- {
|
||||||
name: "Windows Latest MSVC",
|
name: "Windows Latest MSVC",
|
||||||
os: windows-latest,
|
os: windows-latest,
|
||||||
build_type: "Debug", cc: "cl", cxx: "cl",
|
generator: "Visual Studio 17 2022",
|
||||||
|
build_type: "Debug",
|
||||||
|
cc: "cl", cxx: "cl",
|
||||||
|
extra_path: "",
|
||||||
|
}
|
||||||
|
- {
|
||||||
|
name: "Windows Latest MinGW",
|
||||||
|
os: windows-latest,
|
||||||
|
generator: "MinGW Makefiles",
|
||||||
|
build_type: "Debug",
|
||||||
|
cc: "gcc", cxx: "g++",
|
||||||
|
extra_path: "C:\\ProgramData\\chocolatey\\lib\\mingw\\tools\\install\\mingw64\\bin",
|
||||||
}
|
}
|
||||||
# TODO: this is not working, since CMake is using generator for latest Visual Studio
|
|
||||||
#- {
|
|
||||||
# name: "Windows Latest MinGW",
|
|
||||||
# os: windows-latest,
|
|
||||||
# build_type: "Debug", cc: "gcc", cxx: "g++"
|
|
||||||
# }
|
|
||||||
- {
|
- {
|
||||||
name: "Ubuntu Latest GCC",
|
name: "Ubuntu Latest GCC",
|
||||||
os: ubuntu-latest,
|
os: ubuntu-latest,
|
||||||
build_type: "Debug", cc: "gcc", cxx: "g++"
|
generator: "Unix Makefiles",
|
||||||
|
build_type: "Debug",
|
||||||
|
cc: "gcc", cxx: "g++",
|
||||||
|
extra_path: ""
|
||||||
}
|
}
|
||||||
- {
|
- {
|
||||||
name: "macOS Latest Clang",
|
name: "macOS Latest Clang",
|
||||||
os: macos-latest,
|
os: macos-latest,
|
||||||
build_type: "Debug", cc: "clang", cxx: "clang++"
|
generator: "Unix Makefiles",
|
||||||
|
build_type: "Debug",
|
||||||
|
cc: "clang", cxx: "clang++",
|
||||||
|
extra_path: ""
|
||||||
}
|
}
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- name: submodule
|
- name: submodule
|
||||||
run: git submodule update --init --recursive
|
run: git submodule update --init --recursive
|
||||||
|
- name: extra_path
|
||||||
|
shell: bash
|
||||||
|
run: echo "${{matrix.config.extra_path}}" >> $GITHUB_PATH
|
||||||
- name: configure
|
- name: configure
|
||||||
shell: cmake -P {0}
|
shell: cmake -P {0}
|
||||||
run: |
|
run: |
|
||||||
@ -45,7 +59,7 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
mkdir build
|
mkdir build
|
||||||
cd build
|
cd build
|
||||||
cmake -DCMAKE_VERBOSE_MAKEFILE=ON -DCMAKE_BUILD_TYPE=${{matrix.config.build_type}} -DSQLITECPP_BUILD_EXAMPLES=ON -DSQLITECPP_BUILD_TESTS=ON -DSQLITECPP_RUN_CPPCHECK=OFF -DSQLITECPP_RUN_CPPLINT=OFF ..
|
cmake -G "${{matrix.config.generator}}" -DCMAKE_VERBOSE_MAKEFILE=ON -DCMAKE_BUILD_TYPE=${{matrix.config.build_type}} -DSQLITECPP_BUILD_EXAMPLES=ON -DSQLITECPP_BUILD_TESTS=ON -DSQLITECPP_RUN_CPPCHECK=OFF -DSQLITECPP_RUN_CPPLINT=OFF ..
|
||||||
- name: build
|
- name: build
|
||||||
run: cmake --build build --config ${{matrix.config.build_type}}
|
run: cmake --build build --config ${{matrix.config.build_type}}
|
||||||
- name: test
|
- name: test
|
||||||
|
Loading…
x
Reference in New Issue
Block a user