mirror of
https://github.com/overte-org/overte.git
synced 2025-07-29 07:10:15 +02:00
👷 Cleanup gh-actions
This commit is contained in:
parent
5aa32e6878
commit
b235eec7e6
2 changed files with 19 additions and 24 deletions
22
.github/workflows/master_build.yml
vendored
22
.github/workflows/master_build.yml
vendored
|
@ -129,6 +129,13 @@ jobs:
|
||||||
submodules: false
|
submodules: false
|
||||||
fetch-depth: 1
|
fetch-depth: 1
|
||||||
|
|
||||||
|
- name: Cache conan
|
||||||
|
uses: actions/cache@v4
|
||||||
|
with:
|
||||||
|
key: conan-${{ matrix.os }}-${{ hashFiles('conanfile.py') }}
|
||||||
|
path: ~/.conan2/
|
||||||
|
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
shell: bash
|
shell: bash
|
||||||
if: startsWith(matrix.os, 'ubuntu') || contains(matrix.os, 'debian') || startsWith(matrix.os, 'macOS')
|
if: startsWith(matrix.os, 'ubuntu') || contains(matrix.os, 'debian') || startsWith(matrix.os, 'macOS')
|
||||||
|
@ -184,21 +191,12 @@ jobs:
|
||||||
run: |
|
run: |
|
||||||
# Run twice to work around OpenSSL not being found. See: https://github.com/overte-org/overte-conan-recipes/issues/1
|
# 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
|
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
|
done
|
||||||
|
|
||||||
- name: Upload Conan dependencies
|
- name: Cleanup Conan dependencies
|
||||||
# Conan isn't glibc aware, so we need to be really careful what we upload to the binary cache on Linux.
|
run: conan cache clean "*" -sbd
|
||||||
# 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
|
|
||||||
shell: bash
|
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
|
- name: Configure CMake
|
||||||
shell: bash
|
shell: bash
|
||||||
|
|
21
.github/workflows/pr_build.yml
vendored
21
.github/workflows/pr_build.yml
vendored
|
@ -179,6 +179,12 @@ jobs:
|
||||||
submodules: false
|
submodules: false
|
||||||
fetch-depth: 1
|
fetch-depth: 1
|
||||||
|
|
||||||
|
- name: Cache conan
|
||||||
|
uses: actions/cache@v4
|
||||||
|
with:
|
||||||
|
key: conan-${{ matrix.os }}-${{ hashFiles('conanfile.py') }}
|
||||||
|
path: ~/.conan2/
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
shell: bash
|
shell: bash
|
||||||
if: startsWith(matrix.os, 'Ubuntu') || contains(matrix.os, 'Debian') || startsWith(matrix.os, 'macOS')
|
if: startsWith(matrix.os, 'Ubuntu') || contains(matrix.os, 'Debian') || startsWith(matrix.os, 'macOS')
|
||||||
|
@ -241,21 +247,12 @@ jobs:
|
||||||
run: |
|
run: |
|
||||||
# Run twice to work around OpenSSL not being found. See: https://github.com/overte-org/overte-conan-recipes/issues/1
|
# 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
|
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
|
done
|
||||||
|
|
||||||
- name: Upload Conan dependencies
|
- name: Cleanup Conan dependencies
|
||||||
# Conan isn't glibc aware, so we need to be really careful what we upload to the binary cache on Linux.
|
run: conan cache clean "*" -sbd
|
||||||
# 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
|
|
||||||
shell: bash
|
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
|
- name: Configure CMake
|
||||||
shell: bash
|
shell: bash
|
||||||
|
|
Loading…
Reference in a new issue