Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CI: test cmake
Browse files Browse the repository at this point in the history
Signed-off-by: Rosen Penev <rosenp@gmail.com>
neheb committed Jan 13, 2024
1 parent 8fcb461 commit f718e34
Showing 2 changed files with 19 additions and 43 deletions.
54 changes: 15 additions & 39 deletions .github/workflows/on_PR_linux_matrix.yml
Original file line number Diff line number Diff line change
@@ -10,48 +10,24 @@ on:
- "*.md"

jobs:
Linux:
name: 'Ubuntu 22.04 - GCC, BuildType:${{matrix.build_type}}, SHARED:${{matrix.shared_libraries}}'
runs-on: ubuntu-22.04

Alpine:
runs-on: ubuntu-20.04
strategy:
fail-fast: false
matrix:
build_type: [Release, Debug]
shared_libraries: [ON, OFF]

build_type: ['Release', 'Debug']
platform: ['x86','armhf','armv7','aarch64','ppc64le','riscv64']
steps:
- uses: actions/checkout@v4

- name: install dependencies
run: |
sudo apt install -y tree
python3 -m pip install conan==1.59.0 ninja
- name: Conan common config
run: |
conan profile new --detect default
conan profile update settings.build_type=${{matrix.build_type}} default
conan profile update settings.compiler.libcxx=libstdc++11 default
- name: Run Conan
- uses: jirutka/setup-alpine@v1
with:
branch: v3.18
arch: ${{matrix.platform}}
packages: >
build-base cmake samurai pkgconf curl-dev expat-dev gettext-tiny-dev gtest-dev inih-inireader-dev zlib-dev
- name: Compile and Test
run: |
mkdir build-base_linux && cd build-base_linux
conan profile list
conan profile show default
conan install .. -o webready=True --build missing
- name: Build
run: |
cmake --preset base_linux -S . -DCMAKE_BUILD_TYPE=${{matrix.build_type}} -DBUILD_SHARED_LIBS=${{matrix.shared_libraries}}
python -m pip install conan==1.59.0
cmake --preset base_linux -S . -DCMAKE_BUILD_TYPE=${{matrix.build_type}}
cmake --build build-base_linux --parallel
- name: Install
run: |
cd build-base_linux
cmake --install .
- name: Test
run: |
cd build-base_linux
ctest --output-on-failure
ctest --output-on-failure build-base_linux
shell: alpine.sh {0}
8 changes: 4 additions & 4 deletions CMakePresets.json
Original file line number Diff line number Diff line change
@@ -44,7 +44,7 @@
"rhs": "Linux"
},
"cacheVariables": {
"BUILD_WITH_CCACHE": true
"BUILD_WITH_CCACHE": false
}
},
{
@@ -57,9 +57,9 @@
"lhs": "${hostSystemName}",
"rhs": "Darwin"
},
"cacheVariables": {
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Release",
"CONAN_AUTO_INSTALL": false
"CONAN_AUTO_INSTALL": false
}
},

@@ -140,7 +140,7 @@
"displayName": "Same as linux-release-NoConan and with rest of things enabled (doc + NLS)",
"description": "requires installation of packages: doxygen graphviz gettext",
"inherits": "linux-release-NoConan",
"cacheVariables": {
"cacheVariables": {
"EXIV2_ENABLE_NLS": true,
"EXIV2_ENABLE_VIDEO": false,
"EXIV2_BUILD_DOC": true

0 comments on commit f718e34

Please sign in to comment.