Speedup CI checkout (#35)

* Update build.yml to reduce fetch depth
* CI: use self-hosted runner
This commit is contained in:
Sergey Gavrilov 2023-04-28 07:44:24 -07:00 committed by GitHub
parent d686423f48
commit a86460ac75
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 2 deletions

View File

@ -10,7 +10,7 @@ on:
jobs:
build:
runs-on: ubuntu-22.04
runs-on: [self-hosted,FlipperZeroShell]
steps:
- name: 'Store UID'
id: uid
@ -24,7 +24,11 @@ jobs:
uses: actions/checkout@v3
with:
ref: ${{ github.event.pull_request.head.sha }}
submodules: recursive
fetch-depth: 1
- name: 'Checkout submodules'
run:
git submodule update --init --recursive --depth 1 --jobs "$(getconf _NPROCESSORS_ONLN)";
- name: 'Setup python'
uses: actions/setup-python@v4