This is an automated email from the ASF dual-hosted git repository.

pengzheng pushed a commit to branch feature/614-github-cache-build-deps
in repository https://gitbox.apache.org/repos/asf/celix.git


The following commit(s) were added to 
refs/heads/feature/614-github-cache-build-deps by this push:
     new c9b77c5f Avoid `conan create` when testing automatic dependency 
deduction.
c9b77c5f is described below

commit c9b77c5fb347a9ff1a56b67287adb5fbe28dfb27
Author: PengZheng <[email protected]>
AuthorDate: Wed Aug 30 13:43:31 2023 +0800

    Avoid `conan create` when testing automatic dependency deduction.
---
 .github/workflows/conan_create.yml | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/.github/workflows/conan_create.yml 
b/.github/workflows/conan_create.yml
index 3089069e..94a45620 100644
--- a/.github/workflows/conan_create.yml
+++ b/.github/workflows/conan_create.yml
@@ -46,18 +46,18 @@ jobs:
           path: ${{ env.CONAN_HOME }}
           key: ${{ runner.os }}-builder-${{ env.cache-name }}-${{ 
matrix.compiler[0] }}-${{ matrix.type }}-${{ hashFiles('conanfile.py') }}
           restore-keys: ${{ runner.os }}-builder-${{ env.cache-name }}-${{ 
matrix.compiler[0] }}-${{ matrix.type }}-
-      - name: Create All
+      - name: Create Celix
         env:
           CC: ${{ matrix.compiler[0] }}
           CXX: ${{ matrix.compiler[1] }}
         run: |
           conan create . -c tools.cmake.cmaketoolchain:generator=Ninja -b 
missing -o celix/*:build_all=True  -pr:b default -pr:h default -s:h 
build_type=${{ matrix.type }} -tf examples/conan_test_package_v2 -o 
celix/*:celix_cxx17=True -o celix/*:celix_install_deprecated_api=True
-      - name: Create Component
+      - name: Dependency Deduction Test
         env:
           CC: ${{ matrix.compiler[0] }}
           CXX: ${{ matrix.compiler[1] }}
         run: |
-          conan inspect .  | awk 'BEGIN { FS="[\t:]+"; output=0 } /build/ && 
!/build_all/ { if(output) print $1} /^options/ {output=1} 
/^options_definitions/ {output=0}' | while read option; do conan create . -c 
tools.cmake.cmaketoolchain:generator=Ninja -b missing -o celix/*:${option}=True 
 -pr:b default -pr:h default -s:h build_type=${{ matrix.type }} -tf "" -o 
celix/*:celix_cxx17=True -o celix/*:celix_install_deprecated_api=True || exit 
1; done
+          conan inspect .  | awk 'BEGIN { FS="[\t:]+"; output=0 } /build/ && 
!/build_all/ { if(output) print $1} /^options/ {output=1} 
/^options_definitions/ {output=0}' | while read option; do conan build . -c 
tools.cmake.cmaketoolchain:generator=Ninja -b missing -o celix/*:${option}=True 
 -pr:b default -pr:h default -s:h build_type=${{ matrix.type }} -of  
${option}_dir -o celix/*:celix_cxx17=True -o 
celix/*:celix_install_deprecated_api=True || exit 1; done
       - name: Remove Celix
         run: |
           conan remove -c celix/* 
@@ -85,12 +85,12 @@ jobs:
           path: ${{ env.CONAN_USER_HOME }}
           key: ${{ runner.os }}-builder-${{ env.cache-name }}-${{ 
hashFiles('conanfile.py') }}
           restore-keys: ${{ runner.os }}-builder-${{ env.cache-name }}-
-      - name: Create All
+      - name: Create Celix
         run: |
           conan create . -c tools.cmake.cmaketoolchain:generator=Ninja -b 
missing -o celix:build_all=True  -pr:b default -pr:h default -tf 
examples/conan_test_package -tbf test-build -o celix:celix_cxx17=True -o 
celix:celix_install_deprecated_api=True --require-override=libcurl/7.64.1 
--require-override=openssl/1.1.1s --require-override=zlib/1.2.13
-      - name: Create Component
+      - name: Dependency Deduction Test
         run: |
-          conan inspect . -a options | awk 'BEGIN { FS="[\t:]+" } /build/ && 
!/build_all/ { print $1}' | while read option; do conan create . -c 
tools.cmake.cmaketoolchain:generator=Ninja -b missing -o celix:${option}=True  
-pr:b default -pr:h default -tbf test-build -o celix:celix_cxx17=True -o 
celix:celix_install_deprecated_api=True --require-override=libcurl/7.64.1 
--require-override=openssl/1.1.1s --require-override=zlib/1.2.13 || exit 1; done
+          conan inspect . -a options | awk 'BEGIN { FS="[\t:]+" } /build/ && 
!/build_all/ { print $1}' | while read option; do conan install . -c 
tools.cmake.cmaketoolchain:generator=Ninja -b missing -o celix:${option}=True  
-pr:b default -pr:h default -if ${option}_dir -o celix:celix_cxx17=True -o 
celix:celix_install_deprecated_api=True --require-override=libcurl/7.64.1 
--require-override=openssl/1.1.1s --require-override=zlib/1.2.13 || exit 1; 
conan build . -bf ${option}_dir || exit 1; done
       - name: Remove Celix
         run: |
           conan remove -f 'celix/*'

Reply via email to