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
commit 1ae3151d68494e82a59c058c1bd2547609d45126 Author: PengZheng <howto...@gmail.com> AuthorDate: Tue Aug 29 17:43:32 2023 +0800 Add github cache actions for Conan2 dependencies. Add manual trigger for `conan create` test. --- .github/workflows/conan_create.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/.github/workflows/conan_create.yml b/.github/workflows/conan_create.yml index 47adadf2..815de784 100644 --- a/.github/workflows/conan_create.yml +++ b/.github/workflows/conan_create.yml @@ -5,6 +5,11 @@ on: pull_request: schedule: - cron: '0 0 * * *' + workflow_dispatch: + +env: + CONAN_USER_HOME: "${{ github.workspace }}/release/" + CONAN_USER_HOME_SHORT: "${{ github.workspace }}/release/short" jobs: @@ -30,6 +35,15 @@ jobs: run: | # build profile conan profile detect -f + - name: Using the builtin GitHub Cache Action for .conan + id: cache-conan + uses: actions/cache@v1 + env: + cache-name: cache-conan2-modules + with: + path: ${{ env.CONAN_USER_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 env: CC: ${{ matrix.compiler[0] }} @@ -51,6 +65,15 @@ jobs: run: | conan profile new default --detect conan profile update settings.build_type=Release default + - name: Using the builtin GitHub Cache Action for .conan + id: cache-conan + uses: actions/cache@v1 + env: + cache-name: cache-conan2-modules + with: + path: ${{ env.CONAN_USER_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 env: CC: ${{ matrix.compiler[0] }}