From 54c6f644dae5099ddb2f9fcd1e37d405083384f6 Mon Sep 17 00:00:00 2001 From: danemadsen Date: Tue, 6 Aug 2024 09:46:13 +1000 Subject: [PATCH] optimise CI --- .github/workflows/build-android.yml | 8 +++++++- .github/workflows/build-linux.yml | 8 +++++++- .github/workflows/build-macos.yml | 8 +++++++- .github/workflows/build-windows.yml | 8 +++++++- .github/workflows/mirror.yml | 6 ++++++ 5 files changed, 34 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build-android.yml b/.github/workflows/build-android.yml index e309abe25..851f01e11 100644 --- a/.github/workflows/build-android.yml +++ b/.github/workflows/build-android.yml @@ -4,7 +4,13 @@ on: push: branches: - main - - dev + paths: + - '.github/workflows/build-android.yml' + - 'packages/**' + - 'android/**' + - 'lib/**' + - 'assets/**' + - 'pubspec.yaml' jobs: build: diff --git a/.github/workflows/build-linux.yml b/.github/workflows/build-linux.yml index 87311ce4d..b42650ccb 100644 --- a/.github/workflows/build-linux.yml +++ b/.github/workflows/build-linux.yml @@ -4,7 +4,13 @@ on: push: branches: - main - - dev + paths: + - '.github/workflows/build-android.yml' + - 'packages/**' + - 'linux/**' + - 'lib/**' + - 'assets/**' + - 'pubspec.yaml' jobs: build: diff --git a/.github/workflows/build-macos.yml b/.github/workflows/build-macos.yml index 93f68f581..4a7e400a6 100644 --- a/.github/workflows/build-macos.yml +++ b/.github/workflows/build-macos.yml @@ -4,7 +4,13 @@ on: push: branches: - main - - dev + paths: + - '.github/workflows/build-android.yml' + - 'packages/**' + - 'macos/**' + - 'lib/**' + - 'assets/**' + - 'pubspec.yaml' jobs: build: diff --git a/.github/workflows/build-windows.yml b/.github/workflows/build-windows.yml index 34d78f3d6..c4e3cc385 100644 --- a/.github/workflows/build-windows.yml +++ b/.github/workflows/build-windows.yml @@ -4,7 +4,13 @@ on: push: branches: - main - - dev + paths: + - '.github/workflows/build-android.yml' + - 'packages/**' + - 'windows/**' + - 'lib/**' + - 'assets/**' + - 'pubspec.yaml' jobs: build: diff --git a/.github/workflows/mirror.yml b/.github/workflows/mirror.yml index 239c10c51..6cac9def7 100644 --- a/.github/workflows/mirror.yml +++ b/.github/workflows/mirror.yml @@ -1,6 +1,12 @@ name: Mirror to GitLab on: + push: + branches: + - main + paths: + - '.gitlab/**' + - 'pubspec.yaml' workflow_dispatch: jobs: