[GA] conan mac os build

This commit is contained in:
Denis Angell
2025-03-25 10:06:17 +01:00
parent 58e3840345
commit 40dc69d642
7 changed files with 139 additions and 1 deletions

View File

@@ -2,7 +2,8 @@ name: dependencies
inputs:
configuration:
required: true
# An implicit input is the environment variable `build_dir`.
cache-key:
required: true
runs:
using: composite
steps:
@@ -11,7 +12,18 @@ runs:
run: |
conan export external/snappy snappy/1.1.9@
conan export external/soci soci/4.0.3@
- name: Restore Conan cache
id: cache-restore
uses: actions/cache/restore@v4
with:
path: ~/.conan/data
key: ${{ inputs.cache-key }}-${{ inputs.configuration }}-conan-${{ hashFiles('conanfile.py') }}
restore-keys: |
${{ runner.os }}-conan-
- name: install dependencies
if: steps.cache-restore.outputs.cache-hit != 'true'
shell: bash
run: |
mkdir ${build_dir}
@@ -21,3 +33,10 @@ runs:
--build missing \
--settings build_type=${{ inputs.configuration }} \
..
- name: Save Conan cache
if: steps.cache-restore.outputs.cache-hit != 'true' && success()
uses: actions/cache/save@v4
with:
path: ~/.conan/data
key: ${{ steps.cache-restore.outputs.cache-primary-key }}