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 3f8d6d5a Avoid building/running test_package repetitively.
3f8d6d5a is described below
commit 3f8d6d5a234626c965eb8897d989e182e6cd5cd5
Author: PengZheng <[email protected]>
AuthorDate: Tue Aug 29 21:30:20 2023 +0800
Avoid building/running test_package repetitively.
---
.github/workflows/conan_create.yml | 17 +++++++++++++----
1 file changed, 13 insertions(+), 4 deletions(-)
diff --git a/.github/workflows/conan_create.yml
b/.github/workflows/conan_create.yml
index b491cd28..3089069e 100644
--- a/.github/workflows/conan_create.yml
+++ b/.github/workflows/conan_create.yml
@@ -46,12 +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 Celix
+ - name: Create All
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
examples/conan_test_package_v2 -o celix/*:celix_cxx17=True -o
celix/*:celix_install_deprecated_api=True || exit 1; done
+ 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
+ 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
- name: Remove Celix
run: |
conan remove -c celix/*
@@ -79,9 +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 Celix
+ - name: Create All
+ 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
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 -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 || exit 1; done
+ 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
- name: Remove Celix
run: |
conan remove -f 'celix/*'