mirror of
https://github.com/commaai/agnos-builder.git
synced 2026-09-29 02:43:50 +08:00
Build kernel in docker (#247)
* build kernel in container * remove ci deps * cleaning * more cleaning * even more cleaning * README.md update for masOS Case-sensitive required volume * README.md more info about macOS * README.md more info about macOS * README.md more info about macOS - M-series vs Intel * README.md more info about macOS - M-series vs Intel * extract_tools should install and pull lfs no matter the ARCH * raise attention on macOS Case-sensitive volume * --privileged not needed in build_kernel.sh * remove docker and git checks * set -e * always build image * updated host user in container * also works with sudo/root * removed deps in ci since they are not needed anymore * agnos-meta-builder * show macOS support only if current path is not on a Case-sensitive APFS volume * more succint * just exit * fixing caching issues * cache kernel out * cleaning * debug out * ccache-action no needed anymore * debug * rebuild * remove out cache * revert ccache action * create-symlink not needed since it's building in the container * simpler ccache key name * cleaning * rebuild * git ignore .ccache --------- Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
This commit is contained in:
@@ -36,7 +36,7 @@ jobs:
|
||||
fi
|
||||
echo EOF
|
||||
} | tee -a $GITHUB_ENV
|
||||
|
||||
|
||||
- name: Get kernel submodule ref
|
||||
id: kernel-submodule
|
||||
run: echo "ref=$(git ls-tree HEAD | awk '$4 == "agnos-kernel-sdm845"' | awk '{print $3}')" | tee -a $GITHUB_OUTPUT
|
||||
@@ -51,17 +51,8 @@ jobs:
|
||||
- name: ccache
|
||||
uses: hendrikmuhs/ccache-action@c92f40bee50034e84c763e33b317c77adaa81c92
|
||||
with:
|
||||
create-symlink: true
|
||||
key: kernel-ccache-${{ steps.kernel-submodule.outputs.ref }}
|
||||
restore-keys: kernel-ccache-
|
||||
|
||||
- name: Install dependencies
|
||||
run: sudo apt-get update && sudo apt-get install -y bc img2simg
|
||||
|
||||
- name: Install python2
|
||||
uses: gabrielfalcao/pyenv-action@2f49ca7587f9d0663d13f1147b78d3361417eaf7
|
||||
with:
|
||||
default: '2.7.18'
|
||||
key: kernel-${{ steps.kernel-submodule.outputs.ref }}
|
||||
restore-keys: kernel-
|
||||
|
||||
- name: Build kernel
|
||||
run: ./build_kernel.sh
|
||||
|
||||
Reference in New Issue
Block a user