Update workflows

This commit is contained in:
Willy-JL
2023-03-04 20:04:38 +00:00
parent 46831db533
commit 5d7f5a1ffc
3 changed files with 44 additions and 2 deletions

View File

@@ -10,7 +10,7 @@ on:
pull_request:
env:
TARGETS: f7 f18
TARGETS: f7
DEFAULT_TARGET: f7
FBT_TOOLCHAIN_PATH: /home/runner/work
@@ -47,7 +47,9 @@ jobs:
- name: 'Make artifacts directory'
run: |
rm -rf artifacts
rm -rf map_analyser_files
mkdir artifacts
mkdir map_analyser_files
- name: 'Bundle scripts'
run: |
@@ -81,6 +83,12 @@ jobs:
run: |
cp build/core2_firmware.tgz "artifacts/flipper-z-any-core2_firmware-${SUFFIX}.tgz"
- name: 'Copy map analyser files'
run: |
cp build/f7-firmware-*/firmware.elf.map map_analyser_files/firmware.elf.map
cp build/f7-firmware-*/firmware.elf map_analyser_files/firmware.elf
cp ${{ github.event_path }} map_analyser_files/event.json
- name: 'Updater artifact'
uses: actions/upload-artifact@v3
with:
@@ -156,5 +164,5 @@ jobs:
set -e
for TARGET in ${TARGETS}; do
TARGET="$(echo "${TARGET}" | sed 's/f//')"; \
./fbt TARGET_HW=$TARGET DEBUG=0 COMPACT=1 updater_package
./fbt TARGET_HW=$TARGET DEBUG=0 COMPACT=1 fap_dist updater_package
done

View File

@@ -11,6 +11,7 @@ on:
env:
TARGETS: f7
FBT_TOOLCHAIN_PATH: /home/runner/work
SET_GH_OUTPUT: 1
jobs:

33
.github/workflows/lint_python.yml vendored Normal file
View File

@@ -0,0 +1,33 @@
name: 'Python Lint'
on:
push:
branches:
- dev
- "release*"
tags:
- '*'
pull_request:
env:
FBT_TOOLCHAIN_PATH: /home/runner/work
SET_GH_OUTPUT: 1
jobs:
lint_python:
runs-on: ubuntu-latest
steps:
- name: 'Decontaminate previous build leftovers'
run: |
if [ -d .git ]; then
git submodule status || git checkout "$(git rev-list --max-parents=0 HEAD | tail -n 1)"
fi
- name: 'Checkout code'
uses: actions/checkout@v3
with:
fetch-depth: 0
ref: ${{ github.event.pull_request.head.sha }}
- name: 'Check code formatting'
run: ./fbt lint_py