From fe2b9718e1ab405acdc93208b34d7abec1da9a40 Mon Sep 17 00:00:00 2001 From: Anna Prosvetova Date: Tue, 17 Aug 2021 17:45:23 +0300 Subject: [PATCH] CI: Fix artifacts naming (#654) * Fix artifacts naming * Github: build on pull requests * Github: narrow build trigger criteria. Co-authored-by: Aleksandr Kutuzov --- .github/workflows/build.yml | 14 ++++++++++---- .github/workflows/lint_c.yml | 8 +++++++- .github/workflows/lint_python.yml | 8 +++++++- 3 files changed, 24 insertions(+), 6 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 2847c284..9092cf27 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -1,6 +1,12 @@ name: 'Build' -on: push +on: + push: + branches: + - dev + - "release*" + tags: + pull_request: env: TARGETS: f6 @@ -146,15 +152,15 @@ jobs: lib/STM32CubeWB/Projects/STM32WB_Copro_Wireless_Binaries/STM32WB5x/stm32wb5x_FUS_fw_for_fus_0_5_3.bin \ lib/STM32CubeWB/Projects/STM32WB_Copro_Wireless_Binaries/STM32WB5x/stm32wb5x_BLE_Stack_full_fw.bin \ core2_firmware - tar czpf artifacts/flipper-z-core2_firmware-${SUFFIX}.tgz core2_firmware + tar czpf artifacts/flipper-z-any-core2_firmware-${SUFFIX}.tgz core2_firmware - name: 'Bundle scripts' run: | - tar czpf artifacts/flipper-z-scripts-${SUFFIX}.tgz scripts + tar czpf artifacts/flipper-z-any-scripts-${SUFFIX}.tgz scripts - name: 'Bundle resources' run: | - tar czpf artifacts/flipper-z-resources-${SUFFIX}.tgz -C assets resources + tar czpf artifacts/flipper-z-any-resources-${SUFFIX}.tgz -C assets resources - name: 'Upload artifacts to update server' uses: burnett01/rsync-deployments@4.1 diff --git a/.github/workflows/lint_c.yml b/.github/workflows/lint_c.yml index 39a7eabe..b094a1dd 100644 --- a/.github/workflows/lint_c.yml +++ b/.github/workflows/lint_c.yml @@ -1,6 +1,12 @@ name: 'Lint C/C++ with clang-format' -on: pull_request +on: + push: + branches: + - dev + - "release*" + tags: + pull_request: env: TARGETS: f6 diff --git a/.github/workflows/lint_python.yml b/.github/workflows/lint_python.yml index 4a70d48b..82f746ab 100644 --- a/.github/workflows/lint_python.yml +++ b/.github/workflows/lint_python.yml @@ -1,6 +1,12 @@ name: 'Python Lint' -on: pull_request +on: + push: + branches: + - dev + - "release*" + tags: + pull_request: jobs: lint_python: