Add Skip-Check For Action Runner

This commit is contained in:
XXXXRT666 2025-04-29 21:29:16 +01:00
parent 1537537459
commit 99b74c8bea
3 changed files with 21 additions and 3 deletions

View File

@ -72,6 +72,7 @@ jobs:
USE_FASTERWHISPER=${{ matrix.use_fasterwhisper }} USE_FASTERWHISPER=${{ matrix.use_fasterwhisper }}
CUDA_VERSION=${{ matrix.cuda_version }} CUDA_VERSION=${{ matrix.cuda_version }}
WGET_CMD=wget -nv --tries=25 --wait=5 --read-timeout=40 --retry-on-http-error=404 WGET_CMD=wget -nv --tries=25 --wait=5 --read-timeout=40 --retry-on-http-error=404
SKIP_CHECK=true
tags: | tags: |
xxxxrt666/gpt-sovits:${{ matrix.tag_prefix }}-${{ needs.generate-meta.outputs.tag }} xxxxrt666/gpt-sovits:${{ matrix.tag_prefix }}-${{ needs.generate-meta.outputs.tag }}
xxxxrt666/gpt-sovits:latest-${{ matrix.tag_prefix }} xxxxrt666/gpt-sovits:latest-${{ matrix.tag_prefix }}

View File

@ -70,9 +70,12 @@ ENV PATH="/usr/local/cuda/bin:$PATH"
ENV CUDA_HOME="/usr/local/cuda" ENV CUDA_HOME="/usr/local/cuda"
ENV MAKEFLAGS="-j$(nproc)" ENV MAKEFLAGS="-j$(nproc)"
ARG SKIP_CHECK = false
ENV SKIP_CHECK=${SKIP_CHECK}
RUN source /root/anaconda3/etc/profile.d/conda.sh && \ RUN source /root/anaconda3/etc/profile.d/conda.sh && \
conda activate GPTSoVITS && \ conda activate GPTSoVITS && \
bash install.sh --device CU${CUDA_VERSION//./} --source HF --download-uvr5 && \ bash install.sh --device CU${CUDA_VERSION//./} --source HF --skip-check ${SKIP_CHECK} --download-uvr5 && \
pip cache purge pip cache purge
RUN rm -rf /root/anaconda3/pkgs RUN rm -rf /root/anaconda3/pkgs

View File

@ -17,6 +17,7 @@ trap 'echo "Error Occured at \"$BASH_COMMAND\" with exit code $?"; exit 1' ERR
USE_CUDA=false USE_CUDA=false
USE_ROCM=false USE_ROCM=false
USE_CPU=false USE_CPU=false
SKIP_CHECK=false
USE_HF=false USE_HF=false
USE_HF_MIRROR=false USE_HF_MIRROR=false
@ -65,6 +66,17 @@ while [[ $# -gt 0 ]]; do
esac esac
shift 2 shift 2
;; ;;
--skip-check)
case "$2" in
true)
SKIP_CHECK=true
;;
*)
:
;;
esac
shift 2
;;
--device) --device)
case "$2" in case "$2" in
CU124) CU124)
@ -195,17 +207,18 @@ conda install zip -y
git-lfs install git-lfs install
if [ "$USE_CUDA" = true ]; then if [ "$USE_CUDA" = true ] && [ $SKIP_CHECK = false ]; then
echo "Checking for CUDA installation..." echo "Checking for CUDA installation..."
if command -v nvidia-smi &>/dev/null; then if command -v nvidia-smi &>/dev/null; then
echo "CUDA found." echo "CUDA found."
else else
USE_CUDA=false USE_CUDA=false
USE_CPU=true
echo "CUDA not found." echo "CUDA not found."
fi fi
fi fi
if [ "$USE_ROCM" = true ]; then if [ "$USE_ROCM" = true ] && [ $SKIP_CHECK = false ]; then
echo "Checking for ROCm installation..." echo "Checking for ROCm installation..."
if [ -d "/opt/rocm" ]; then if [ -d "/opt/rocm" ]; then
echo "ROCm found." echo "ROCm found."
@ -218,6 +231,7 @@ if [ "$USE_ROCM" = true ]; then
fi fi
else else
USE_ROCM=false USE_ROCM=false
USE_CPU=true
echo "ROCm not found." echo "ROCm not found."
fi fi
fi fi