OpenToonz - An open-source full-featured 2D animation creation software
C
ci: prevent unnecessary cross-platform builds
Anderson Pradoe77ee45a2ad8
diff --git a/.github/workflows/workflow_linux.yml b/.github/workflows/workflow_linux.ymlindex d27ea488b..e45369a22 100644--- a/.github/workflows/workflow_linux.yml+++ b/.github/workflows/workflow_linux.yml@@ -1,6 +1,16 @@name: Linux Build-on: [push, pull_request]+on:+ push:+ paths:+ - '**/*' # Include all files in the repository+ - '!**/.github/workflows/workflow_windows.yml' # Exclude Windows workflow file+ - '!**/.github/workflows/workflow_macos.yml' # Exclude macOS workflow file+ pull_request:+ paths:+ - '**/*' # Include all files in the repository+ - '!**/.github/workflows/workflow_windows.yml' # Exclude Windows workflow file+ - '!**/.github/workflows/workflow_macos.yml' # Exclude macOS workflow filejobs:Ubuntu:@@ -95,4 +105,4 @@ jobs:- uses: actions/upload-artifact@v4with:name: Opentoonz-${{ runner.os }}-${{ matrix.compiler }}-${{ github.sha }}- path: toonz/build/Opentoonz-${{ runner.os }}-${{ matrix.compiler }}-${{ github.sha }}.tar.gz+ path: toonz/build/Opentoonz-${{ runner.os }}-${{ matrix.compiler }}-${{ github.sha }}.tar.gz\ No newline at end of filediff --git a/.github/workflows/workflow_macos.yml b/.github/workflows/workflow_macos.ymlindex e2cbed631..f3c2e3295 100644--- a/.github/workflows/workflow_macos.yml+++ b/.github/workflows/workflow_macos.yml@@ -1,6 +1,16 @@name: MacOS Build-on: [push, pull_request]+on:+ push:+ paths:+ - '**/*' # Include all files in the repository+ - '!**/.github/workflows/workflow_linux.yml' # Exclude Linux workflow file+ - '!**/.github/workflows/workflow_windows.yml' # Exclude Windows workflow file+ pull_request:+ paths:+ - '**/*' # This also includes all files in the repository for pull requests+ - '!**/.github/workflows/workflow_linux.yml' # Exclude Linux workflow file+ - '!**/.github/workflows/workflow_windows.yml' # Exclude Windows workflow filejobs:macOS:@@ -98,22 +108,23 @@ jobs:- name: Create Artifactrun: |cd toonz/build/toonz- echo "Creating DMG..."- for ATTEMPT in {1..10}; do- echo "Attempt $ATTEMPT to build DMG..."- /usr/local/opt/qt@5/bin/macdeployqt OpenToonz.app -dmg -verbose=0-- if [ -f OpenToonz.dmg ]; then- echo "DMG created successfully."- exit 0 # Exit if successful+ echo "Creating DMG..."++ ATTEMPT=1+ until /usr/local/opt/qt@5/bin/macdeployqt OpenToonz.app -dmg -verbose=0 && [ -f OpenToonz.dmg ]; do+ echo "Attempt $ATTEMPT failed to build DMG."++ if [ $ATTEMPT -eq 10 ]; then+ echo ">>> DMG file creation failed after 10 attempts. Aborting!"+ exit 1fi-- echo "DMG creation failed. Retrying in 10 seconds..."- sleep 10++ ATTEMPT=$((ATTEMPT + 1))+ echo "Retrying in 5 seconds..."+ sleep 5done- echo ">>> DMG file creation failed after 10 attempts. Aborting!"- exit 1 # Exit with failure status+ echo "DMG created successfully."- uses: actions/upload-artifact@v4with:diff --git a/.github/workflows/workflow_windows.yml b/.github/workflows/workflow_windows.ymlindex bd74cfdd9..a4faac1cb 100644--- a/.github/workflows/workflow_windows.yml+++ b/.github/workflows/workflow_windows.yml@@ -4,7 +4,15 @@ on:push:branches:- master # Specify branches where the workflow should run+ paths:+ - '**/*' # Include all files in the repository+ - '!**/.github/workflows/workflow_linux.yml' # Exclude Linux workflow file+ - '!**/.github/workflows/workflow_macos.yml' # Exclude macOS workflow filepull_request: # Here no specific branches are listed to allow all pull requests to generate a workflow run+ paths:+ - '**/*' # Include all files in the repository+ - '!**/.github/workflows/workflow_linux.yml' # Exclude Linux workflow file+ - '!**/.github/workflows/workflow_macos.yml' # Exclude macOS workflow filejobs:Windows:@@ -117,4 +125,4 @@ jobs:uses: actions/upload-artifact@v4with:name: Opentoonz-${{ runner.os }}-${{ github.sha }}- path: artifact+ path: artifact\ No newline at end of file