mirror of
https://github.com/Xahau/xahaud.git
synced 2025-12-06 17:27:52 +00:00
[GA] conan mac os build
This commit is contained in:
21
.github/actions/dependencies/action.yml
vendored
21
.github/actions/dependencies/action.yml
vendored
@@ -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 }}
|
||||
|
||||
Reference in New Issue
Block a user