From 31f6ed749546f7495c606cba88a0178a9c97cdb6 Mon Sep 17 00:00:00 2001 From: otavepto <153766569+otavepto@users.noreply.github.com> Date: Thu, 9 May 2024 01:11:17 +0300 Subject: [PATCH] * trigger workflows only for corresponding files/folders * allow running them unconditionally for branches matching `ci-build*` --- .../workflows/build-gen_emu_config-linux.yml | 13 +++-------- .../workflows/build-gen_emu_config-win.yml | 13 +++-------- .github/workflows/build-linux.yml | 22 +++++++++---------- .github/workflows/build-migrate_gse-linux.yml | 13 +++-------- .github/workflows/build-migrate_gse-win.yml | 13 +++-------- .github/workflows/build-win.yml | 21 +++++++++--------- 6 files changed, 34 insertions(+), 61 deletions(-) diff --git a/.github/workflows/build-gen_emu_config-linux.yml b/.github/workflows/build-gen_emu_config-linux.yml index 7c6c2c0b..37a1147d 100644 --- a/.github/workflows/build-gen_emu_config-linux.yml +++ b/.github/workflows/build-gen_emu_config-linux.yml @@ -8,19 +8,12 @@ on: ] tags: - release* - paths-ignore: - - '**/*.md' - - 'dev.notes/**' - - 'post_build/**' - - 'z_original_repo_files/**' pull_request: branches: [ "dev" ] - paths-ignore: - - '**/*.md' - - 'dev.notes/**' - - 'post_build/**' - - 'z_original_repo_files/**' + paths: + - '!**/*.md' + - 'tools/generate_emu_config/**' workflow_dispatch: # allows manual trigger diff --git a/.github/workflows/build-gen_emu_config-win.yml b/.github/workflows/build-gen_emu_config-win.yml index 4538e822..a8288d2d 100644 --- a/.github/workflows/build-gen_emu_config-win.yml +++ b/.github/workflows/build-gen_emu_config-win.yml @@ -8,19 +8,12 @@ on: ] tags: - release* - paths-ignore: - - '**/*.md' - - 'dev.notes/**' - - 'post_build/**' - - 'z_original_repo_files/**' pull_request: branches: [ "dev" ] - paths-ignore: - - '**/*.md' - - 'dev.notes/**' - - 'post_build/**' - - 'z_original_repo_files/**' + paths: + - '!**/*.md' + - 'tools/generate_emu_config/**' workflow_dispatch: # allows manual trigger diff --git a/.github/workflows/build-linux.yml b/.github/workflows/build-linux.yml index fa54d3f3..8dd41873 100644 --- a/.github/workflows/build-linux.yml +++ b/.github/workflows/build-linux.yml @@ -8,19 +8,20 @@ on: ] tags: - release* - paths-ignore: - - '**/*.md' - - 'dev.notes/**' - - 'post_build/**' - - 'z_original_repo_files/**' pull_request: branches: [ "dev" ] - paths-ignore: - - '**/*.md' - - 'dev.notes/**' - - 'post_build/**' - - 'z_original_repo_files/**' + paths: + - '!**/*.md' + - '!dev.notes/**' + - '!post_build/**' + - '!z_original_repo_files/**' + - '!sdk/*.txt' + - '!LICENSE' + # tools + - '!tools/generate_emu_config/**' + - '!tools/migrate_gse/**' + - '!tools/steamclient_loader/linux/**' # these are just shell scripts, not compiled workflow_dispatch: # allows manual trigger @@ -29,7 +30,6 @@ permissions: contents: write env: - DEPS_CACHE_KEY: emu-deps-linux DEPS_CACHE_DIR: build/deps/linux diff --git a/.github/workflows/build-migrate_gse-linux.yml b/.github/workflows/build-migrate_gse-linux.yml index d9b4f7d4..9c2bd246 100644 --- a/.github/workflows/build-migrate_gse-linux.yml +++ b/.github/workflows/build-migrate_gse-linux.yml @@ -8,19 +8,12 @@ on: ] tags: - release* - paths-ignore: - - '**/*.md' - - 'dev.notes/**' - - 'post_build/**' - - 'z_original_repo_files/**' pull_request: branches: [ "dev" ] - paths-ignore: - - '**/*.md' - - 'dev.notes/**' - - 'post_build/**' - - 'z_original_repo_files/**' + paths: + - '!**/*.md' + - 'tools/migrate_gse/**' workflow_dispatch: # allows manual trigger diff --git a/.github/workflows/build-migrate_gse-win.yml b/.github/workflows/build-migrate_gse-win.yml index 26dd0731..e6de1d40 100644 --- a/.github/workflows/build-migrate_gse-win.yml +++ b/.github/workflows/build-migrate_gse-win.yml @@ -8,19 +8,12 @@ on: ] tags: - release* - paths-ignore: - - '**/*.md' - - 'dev.notes/**' - - 'post_build/**' - - 'z_original_repo_files/**' pull_request: branches: [ "dev" ] - paths-ignore: - - '**/*.md' - - 'dev.notes/**' - - 'post_build/**' - - 'z_original_repo_files/**' + paths: + - '!**/*.md' + - 'tools/migrate_gse/**' workflow_dispatch: # allows manual trigger diff --git a/.github/workflows/build-win.yml b/.github/workflows/build-win.yml index 08edd95f..242cab13 100644 --- a/.github/workflows/build-win.yml +++ b/.github/workflows/build-win.yml @@ -8,19 +8,20 @@ on: ] tags: - release* - paths-ignore: - - '**/*.md' - - 'dev.notes/**' - - 'post_build/**' - - 'z_original_repo_files/**' pull_request: branches: [ "dev" ] - paths-ignore: - - '**/*.md' - - 'dev.notes/**' - - 'post_build/**' - - 'z_original_repo_files/**' + paths: + - '!**/*.md' + - '!dev.notes/**' + - '!post_build/**' + - '!z_original_repo_files/**' + - '!sdk/*.txt' + - '!LICENSE' + # tools + - '!tools/generate_emu_config/**' + - '!tools/migrate_gse/**' + - '!tools/steamclient_loader/linux/**' workflow_dispatch: # allows manual trigger