0c7a8edf51
* rename artifacts * add workflow with date * add debug * Add branch name to artifact name and rm genpic job * Add branch name to artifact name for upload job * Add branch restrictions for dev and user branches * Add branch restrictions for dev and user branches * Add cleanup workspace for upload job * Test ignore branch * Test release CI workflow * Rename release CI * Add pre-release trigger * Rm branch restriction for CI * Add release trigger * rm branch restriction for CI * rm genpic job * Github: refactor actions, move linting to parallel actions, separate forlder for artifacts, build cleanup * Github: build date and commit hash on branches and tag on tags * Github: minor artifacts name cleanup * Github: decontaminate previous build leftovers * Github: better decontamination and release build SUFFIX * Github: fetch before decontamitation * Github: change decontamination logic, jump to first commit if submodules are broken * ReadMe: update links to latest firmware and images Co-authored-by: あく <alleteam@gmail.com>
41 lines
971 B
YAML
41 lines
971 B
YAML
name: 'Lint C/C++ with clang-format'
|
|
|
|
on: push
|
|
|
|
env:
|
|
TARGETS: f6
|
|
|
|
jobs:
|
|
lint_c_cpp:
|
|
runs-on: [self-hosted]
|
|
steps:
|
|
- name: 'Cleanup workspace'
|
|
uses: AutoModality/action-clean@v1
|
|
|
|
- name: 'Checkout code'
|
|
uses: actions/checkout@v2
|
|
with:
|
|
fetch-depth: 0
|
|
|
|
- name: 'Checkout submodules: update'
|
|
run: git submodule update --init --recursive
|
|
|
|
- name: 'Checkout submodules: sync'
|
|
run: git submodule sync
|
|
|
|
- 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 syntax'
|
|
uses: ./.github/actions/docker
|
|
continue-on-error: false
|
|
with:
|
|
run: /syntax_check.sh
|