build-and-push-image:
needs: [build, test]
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- uses: actions/checkout@v2
- uses: actions/download-artifact@v2
DISCLAIMER: Building Linux locally can easily ruin your system. Doing this is at your own risk!
This guide assumes you are using 64bit. If not you have to find the commands that target 32bit for step 3 and 5.
- Install Git and build dependencies
sudo apt install git bc bison flex libssl-dev make
- Clone linux sources
git clone --depth=1 https://github.com/raspberrypi/linux
Linux/MacOS: git ls-files -ci --exclude-standard -z | xargs -0 git rm --cached
Windows (PowerShell): git ls-files -ci --exclude-standard | % { git rm --cached "$_" }
Windows (cmd.exe): for /F "tokens=*" %a in ('git ls-files -ci --exclude-standard') do @git rm --cached "%a"