CI: Fix artifacts naming (#654)

* Fix artifacts naming
* Github: build on pull requests
* Github: narrow build trigger criteria.

Co-authored-by: Aleksandr Kutuzov <alleteam@gmail.com>
This commit is contained in:
Anna Prosvetova 2021-08-17 17:45:23 +03:00 committed by GitHub
parent ac5c1cb4a0
commit fe2b9718e1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 24 additions and 6 deletions

View File

@ -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

View File

@ -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

View File

@ -1,6 +1,12 @@
name: 'Python Lint'
on: pull_request
on:
push:
branches:
- dev
- "release*"
tags:
pull_request:
jobs:
lint_python: