3
0
Fork 0
mirror of https://github.com/JulianGro/overte.git synced 2025-04-18 07:37:31 +02:00

👷 Cleanup gh-actions

This commit is contained in:
Edgar 2025-03-03 10:21:54 +01:00 committed by Julian Groß
parent 7bdd2bc210
commit e0b6237e20
2 changed files with 19 additions and 24 deletions

View file

@ -129,6 +129,13 @@ jobs:
submodules: false
fetch-depth: 1
- name: Cache conan
uses: actions/cache@v4
with:
key: conan-${{ matrix.os }}-${{ hashFiles('conanfile.py') }}
path: ~/.conan2/
- name: Install dependencies
shell: bash
if: startsWith(matrix.os, 'ubuntu') || contains(matrix.os, 'debian') || startsWith(matrix.os, 'macOS')
@ -184,21 +191,12 @@ jobs:
run: |
# Run twice to work around OpenSSL not being found. See: https://github.com/overte-org/overte-conan-recipes/issues/1
for counter in {1..2}; do
conan install . -s compiler.cppstd=$CONAN_CPPSTD -s build_type=$BUILD_TYPE -o '&:with_qt='${CONAN_QT^} -b missing -pr:b=default -of build --format=json > build.json
conan install . -s compiler.cppstd=$CONAN_CPPSTD -s build_type=$BUILD_TYPE -o '&:with_qt='${CONAN_QT^} -b missing -pr:b=default -of build
done
- name: Upload Conan dependencies
# Conan isn't glibc aware, so we need to be really careful what we upload to the binary cache on Linux.
# See the upstream discussion: https://github.com/conan-io/conan/issues/7121
if: startsWith(matrix.os, 'windows') || startsWith(matrix.os, 'macOS')
continue-on-error: true
- name: Cleanup Conan dependencies
run: conan cache clean "*" -sbd
shell: bash
env:
CONAN_LOGIN_USERNAME_OVERTE: ${{ secrets.conan_login_username_overte }}
CONAN_PASSWORD_OVERTE: ${{ secrets.conan_password_overte }}
run: |
conan list --graph=build.json --graph-binaries=build --format=json > pkglist.json
conan upload --list=pkglist.json -r=overte -c
- name: Configure CMake
shell: bash

View file

@ -179,6 +179,12 @@ jobs:
submodules: false
fetch-depth: 1
- name: Cache conan
uses: actions/cache@v4
with:
key: conan-${{ matrix.os }}-${{ hashFiles('conanfile.py') }}
path: ~/.conan2/
- name: Install dependencies
shell: bash
if: startsWith(matrix.os, 'Ubuntu') || contains(matrix.os, 'Debian') || startsWith(matrix.os, 'macOS')
@ -241,21 +247,12 @@ jobs:
run: |
# Run twice to work around OpenSSL not being found. See: https://github.com/overte-org/overte-conan-recipes/issues/1
for counter in {1..2}; do
conan install . -s compiler.cppstd=$CONAN_CPPSTD -s build_type=$BUILD_TYPE -o '&:with_qt='${CONAN_QT^} -b missing -pr:b=default -of build --format=json > build.json
conan install . -s compiler.cppstd=$CONAN_CPPSTD -s build_type=$BUILD_TYPE -o '&:with_qt='${CONAN_QT^} -b missing -pr:b=default -of build
done
- name: Upload Conan dependencies
# Conan isn't glibc aware, so we need to be really careful what we upload to the binary cache on Linux.
# See the upstream discussion: https://github.com/conan-io/conan/issues/7121
if: startsWith(matrix.os, 'windows') || startsWith(matrix.os, 'macOS')
continue-on-error: true
- name: Cleanup Conan dependencies
run: conan cache clean "*" -sbd
shell: bash
env:
CONAN_LOGIN_USERNAME_OVERTE: ${{ secrets.conan_login_username_overte }}
CONAN_PASSWORD_OVERTE: ${{ secrets.conan_password_overte }}
run: |
conan list --graph=build.json --graph-binaries=build --format=json > pkglist.json
conan upload --list=pkglist.json -r=overte -c || echo "Credentials cannot be accessed on remote Pull Request builds. Continuing…"
- name: Configure CMake
shell: bash