actions install error #3
Workflow file for this run
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
name: Pi kernel build tests | |
on: | |
pull_request: | |
paths-ignore: | |
- '.github/**' | |
branches: [ "actions_test" ] | |
push: | |
branches: [ "actions_test" ] | |
workflow_dispatch: | |
env: | |
NUM_JOBS: 3 | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
include: | |
- name: bcm2711_arm64_rust | |
arch: arm64 | |
defconfig: bcm2711_rust_defconfig | |
kernel: kernel8 | |
target: aarch64-unknown-linux-gnu | |
# - name: bcm2835 | |
# arch: arm | |
# defconfig: bcm2835_defconfig | |
# kernel: kernel | |
# - name: arm64 | |
# arch: arm64 | |
# defconfig: defconfig | |
# kernel: kernel8 | |
# - name: bcmrpi | |
# arch: arm | |
# defconfig: bcmrpi_defconfig | |
# kernel: kernel | |
# - name: bcm2709 | |
# arch: arm | |
# defconfig: bcm2709_defconfig | |
# kernel: kernel7 | |
# - name: bcm2711 | |
# arch: arm | |
# defconfig: bcm2711_defconfig | |
# kernel: kernel7l | |
# - name: bcm2711_arm64 | |
# arch: arm64 | |
# defconfig: bcm2711_defconfig | |
# kernel: kernel8 | |
# - name: bcm2712 | |
# arch: arm64 | |
# defconfig: bcm2712_defconfig | |
# kernel: kernel_2712 | |
steps: | |
- name: Update install | |
run: | | |
sudo apt-get update | |
sudo apt update | |
- name: Install toolchain | |
run: | |
if [[ "${{matrix.arch}}" == "arm64" ]]; then | |
sudo apt-get install gcc-aarch64-linux-gnu; | |
else | |
sudo apt-get install gcc-arm-linux-gnueabihf; | |
fi | |
# sudo apt install libelf-dev libgmp-dev libmpc-dev bc flex bison u-boot-tools -qqq | |
# sudo apt install llvm-17 lld-17 clang-17 -qqq | |
timeout-minutes: 5 | |
- name: Setup LLVM | |
uses: ZhongRuoyu/setup-llvm@v0 | |
with: | |
llvm-version: 17 | |
- name: Install rust | |
uses: dtolnay/rust-toolchain@stable | |
with: | |
target: ${{matrix.target}} | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 1 | |
clean: true | |
- name: Build kernel ${{matrix.name}} | |
run: | | |
rustup override set $(${{github.workspace}}/scripts/min-tool-version.sh rustc) | |
rustup component add rust-src | |
cargo install --locked --version $(${{github.workspace}}/scripts/min-tool-version.sh bindgen) bindgen-cli | |
export LLVM=1 | |
make rustavailable | |
mkdir ${{github.workspace}}/build | |
export ARCH=${{matrix.arch}} | |
if [[ "$ARCH" == "arm64" ]]; then | |
export CROSS_COMPILE=aarch64-linux-gnu- | |
export DTS_SUBDIR=broadcom | |
export IMAGE=Image.gz | |
else | |
export CROSS_COMPILE=arm-linux-gnueabihf- | |
export DTS_SUBDIR=broadcom | |
export IMAGE=zImage | |
fi | |
make O=${{github.workspace}}/build ${{matrix.defconfig}} | |
scripts/config --file ${{github.workspace}}/build/.config --set-val CONFIG_WERROR y | |
make O=${{github.workspace}}/build -j ${{env.NUM_JOBS}} $IMAGE modules dtbs | |
mkdir -p ${{github.workspace}}/install/boot/overlays | |
make O=${{github.workspace}}/build INSTALL_MOD_PATH=${{github.workspace}}/install modules_install | |
cp ${{github.workspace}}/build/arch/${ARCH}/boot/dts/${DTS_SUBDIR}/*.dtb ${{github.workspace}}/install/boot/ | |
cp ${{github.workspace}}/build/arch/${ARCH}/boot/dts/overlays/*.dtb* ${{github.workspace}}/install/boot/overlays/ | |
cp ${{github.workspace}}/arch/${ARCH}/boot/dts/overlays/README ${{github.workspace}}/install/boot/overlays/ | |
cp ${{github.workspace}}/build/arch/${ARCH}/boot/$IMAGE ${{github.workspace}}/install/boot/${{matrix.kernel}}.img | |
- name: Tar build | |
run: tar -cvf ${{matrix.name}}_build.tar -C ${{github.workspace}}/install . | |
# - name: Upload results | |
# uses: actions/upload-artifact@v4 | |
# with: | |
# name: ${{matrix.name}}_build | |
# path: ${{matrix.name}}_build.tar | |
# retention-days: 90 |