Skip to content

Commit

Permalink
Merge branch 'main' into deps/bump
Browse files Browse the repository at this point in the history
  • Loading branch information
robomics committed Nov 28, 2024
2 parents 92d14c0 + 51f5f0b commit d45bb8c
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 2 deletions.
30 changes: 29 additions & 1 deletion .github/workflows/build-conan-deps.yml
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,30 @@ jobs:
path: ${{ env.CONAN_HOME }}/p
lookup-only: true

- name: Configure Conan
if: steps.cache-conan.outputs.cache-hit != 'true'
run: |
cat << 'EOF' | tee script.sh > /dev/null
#!usr/bin/env bash
set -u
set -e
conan_version="$1"
PATH="/opt/python/cp312-cp312/bin:$PATH"
pip install "conan==$conan_version"
conan remote update conancenter --url https://center2.conan.io
EOF
chmod 755 script.sh
docker run \
-e "CONAN_HOME=$CONAN_HOME" \
-v "$PWD/script.sh:/tmp/script.sh:ro" \
-v "$CONAN_HOME:$CONAN_HOME" \
"$IMAGE" /tmp/script.sh '${{ inputs.conan-version }}'
- name: Clean Conan cache (pre-build)
if: steps.cache-conan.outputs.cache-hit != 'true'
run: |
Expand Down Expand Up @@ -269,7 +293,9 @@ jobs:

- name: Configure Conan
if: steps.cache-conan.outputs.cache-hit != 'true'
run: conan profile detect --force
run: |
conan profile detect --force
conan remote update conancenter --url https://center2.conan.io
- name: Clean Conan cache (pre-build)
if: steps.cache-conan.outputs.cache-hit != 'true'
Expand Down Expand Up @@ -380,6 +406,8 @@ jobs:
sed -i 's/compiler\.cppstd=.*/compiler.cppstd=${{ inputs.cppstd }}/' "$conan_profile"
conan remote update conancenter --url https://center2.conan.io
- name: Clean Conan cache (pre-build)
if: steps.cache-conan.outputs.cache-hit != 'true'
run: |
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/fuzzy-testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,10 @@ jobs:
key: conan-${{ steps.cache-key.outputs.key }}
path: ${{ env.CONAN_HOME }}/p

- name: Configure Conan
if: steps.cache-conan.outputs.cache-hit != 'true'
run: conan remote update conancenter --url https://center2.conan.io

- name: Clean Conan cache (pre-build)
if: steps.cache-conan.outputs.cache-hit != 'true'
run: |
Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/pip.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ jobs:
python-version: ${{ matrix.python-version }}

- name: Add requirements
run: python -m pip install --upgrade wheel setuptools
run: python -m pip install --upgrade conan wheel setuptools

- name: Generate cache key
id: cache-key
Expand All @@ -69,6 +69,9 @@ jobs:
echo "conan-key=pip-${{ matrix.os }}-$hash" >> $GITHUB_OUTPUT
- name: Configure Conan
run: conan remote update conancenter --url https://center2.conan.io

- name: Restore Conan cache
id: cache-conan
uses: actions/cache/restore@v4
Expand Down

0 comments on commit d45bb8c

Please sign in to comment.