mirror of
https://github.com/DarkFlippers/unleashed-firmware
synced 2024-11-27 06:50:21 +00:00
8073992925
* RFID: pull antenna down when emulating * Rfid: fixed HID emulation by adding zero pulse every 4 bits * Rfid: HID emulation fixed with DSP based FSK oscillator. * Rfid: receive 125KHz clock for emulation timer from antenna and comparator * Rfid: commented unused variable * Firmware: rollback changes in f6. * Add F7 target based on F6. * F7/F6: update cube projects, apply changes to the targets, update linker scripts with correct RAM start values. * FuriHal: RFID init routine. * Scripts: update OTP tool for v11 board Co-authored-by: Aleksandr Kutuzov <alleteam@gmail.com>
62 lines
No EOL
1.6 KiB
YAML
62 lines
No EOL
1.6 KiB
YAML
name: 'Lint C/C++ with clang-format'
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- dev
|
|
- "release*"
|
|
tags:
|
|
- '*'
|
|
pull_request:
|
|
|
|
env:
|
|
TARGETS: f6 f7
|
|
|
|
jobs:
|
|
lint_c_cpp:
|
|
runs-on: [self-hosted]
|
|
steps:
|
|
- name: 'Cleanup workspace'
|
|
uses: AutoModality/action-clean@v1
|
|
|
|
- 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@v2
|
|
with:
|
|
fetch-depth: 0
|
|
submodules: true
|
|
|
|
- name: 'Docker cache'
|
|
uses: satackey/action-docker-layer-caching@v0.0.11
|
|
continue-on-error: true
|
|
with:
|
|
key: docker-cache-${{ hashFiles('docker/**') }}-{hash}
|
|
restore-keys: docker-cache-${{ hashFiles('docker/**') }}-
|
|
|
|
- name: 'Build docker image'
|
|
uses: ./.github/actions/docker
|
|
|
|
- name: 'Check code formatting'
|
|
id: syntax_check
|
|
uses: ./.github/actions/docker
|
|
with:
|
|
run: SET_GH_OUTPUT=1 /syntax_check.sh
|
|
|
|
- name: Report code formatting errors
|
|
if: failure() && steps.syntax_check.outputs.errors && github.event.pull_request
|
|
uses: peter-evans/create-or-update-comment@v1
|
|
with:
|
|
issue-number: ${{ github.event.pull_request.number }}
|
|
body: |
|
|
Please fix following code formatting errors:
|
|
```
|
|
${{ steps.syntax_check.outputs.errors }}
|
|
```
|
|
You might want to run `docker compose exec dev /syntax_check.sh` for an auto-fix. |