Add clean step

This commit is contained in:
Martin Raiber 2025-06-30 01:46:15 +02:00
parent 8a57d756f2
commit 0aadfd43a7
3 changed files with 17 additions and 1 deletions

View File

@ -70,6 +70,9 @@ jobs:
buildPreset: 'ninja-vcpkg-release'
testPreset: 'test-release'
- name: Cleaning
run: bash clean.sh
- name: Set up Python 3.11
uses: actions/setup-python@v4
with:

View File

@ -56,7 +56,7 @@ jobs:
- name: Build
env:
VCPKG_BINARY_SOURCES: "clear;http,https://vcpkg:${{ secrets.VCPKG_WEBDAV_PW }}@vcpkg.urbackup.org,readwrite"
run: bash build.sh
run: bash build.sh && bash clean.sh
- name: Install Python dependencies
run: pip install -r test/requirements.txt

13
clean.sh Executable file
View File

@ -0,0 +1,13 @@
#!/bin/bash
set -e
CDIR="$(cd -P -- "$(dirname -- "${BASH_SOURCE[0]}")" && pwd -P)"
cd "$CDIR"
if [ -e ./vcpkg/buildtrees ]
then
echo "Cleaning vcpkg buildtrees"
rm -Rf ./vcpkg/buildtrees/*
fi