-
-
Notifications
You must be signed in to change notification settings - Fork 65
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[FL-2649] Drop Docker in CI/CD (#1412)
* enable sparseCheckout, moving github actions from docker to raw shell * fix missing known_hosts while setting ssh priv key * fix build.yml * add ssh key to upload just in time * fixing rsync syntax * fix build.yml * try to fix build.yml again * testing rsync * test rsync again * add linters * add Black Python linter to submodules * add Black submodule * add working python linter target, dirty file list * up toolchain to version 4 * up toolchain to ver 5 * up toolchain version to 6 * fbt: using black 22.6.0 * remove Black submodule, up toolchain to ver 7 * fbt: added lint_py, format_py targets * add pvs_studio workflow * fix pvs_studio segfault * fix pvs_studio command * fix pvs_studio command 2 * show env before run pvs_studio * try to debug pvs_studio * try to strace pvs_studio.. * Add FBT_TOOLCHAIN_PATH, MacOS Rosseta check, and ignore non-x86_64 linux architectures * prevent redownloading toolchain on github-runners * fix toolchain download exitcode * add strace to debug pvs_studio segfault * disable strace to catch full code dump * Add './fbt cli' target to access Flipper CLI via PySerial * remove pvs_studio from this PR * removing clang-format from toolchain due errors * make source easy, and fix some mistakes found by @hedger * Add check_submodules workflow, some fixes * fixing mistakes Co-authored-by: hedger <hedger@nanode.su> Co-authored-by: hedger <hedger@users.noreply.github.com>
- Loading branch information
1 parent
a1637e9
commit 93a4b9c
Showing
17 changed files
with
357 additions
and
340 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,47 @@ | ||
name: 'Check submodules' | ||
name: 'Check submodules branch' | ||
|
||
on: | ||
push: | ||
branches: | ||
- dev | ||
- "release*" | ||
tags: | ||
- '*' | ||
pull_request: | ||
|
||
jobs: | ||
protobuf: | ||
runs-on: ubuntu-latest | ||
check_protobuf: | ||
runs-on: [self-hosted, FlipperZeroShell] | ||
steps: | ||
- name: 'Checkout code' | ||
uses: actions/checkout@v2 | ||
- name: 'Check submodule commit branch' | ||
uses: jtmullen/submodule-branch-check-action@v1 | ||
with: | ||
path: assets/protobuf | ||
branch: dev | ||
fetch_depth: 50 | ||
- 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 | ||
|
||
- name: 'Check protobuf branch' | ||
run: | | ||
SUB_PATH="assets/protobuf"; | ||
SUB_BRANCH="dev"; | ||
SUB_COMMITS_MIN=40; | ||
cd "$SUB_PATH"; | ||
SUBMODULE_HASH="$(git rev-parse HEAD)"; | ||
BRANCHES=$(git branch -r --contains "$SUBMODULE_HASH"); | ||
COMMITS_IN_BRANCH="$(git rev-list --count dev)"; | ||
if [ $COMMITS_IN_BRANCH -lt $SUB_COMMITS_MIN ]; then | ||
echo "::set-output name=fails::error"; | ||
echo "::error::Error: Too low commits in $SUB_BRANCH of submodule $SUB_PATH: $COMMITS_IN_BRANCH(expected $SUB_COMMITS_MIN+)"; | ||
exit 1; | ||
fi | ||
if ! grep -q "/$SUB_BRANCH" <<< "$BRANCHES"; then | ||
echo "::set-output name=fails::error"; | ||
echo "::error::Error: Submodule $SUB_PATH is not on branch $SUB_BRANCH"; | ||
exit 1; | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.