Skip to content

Commit

Permalink
CI ARM: build armhf still on Buster
Browse files Browse the repository at this point in the history
Effectively reverted bca2809 for armhf but keeping Bullseye for arm64.
  • Loading branch information
MartinPulec committed Oct 12, 2023
1 parent d056a17 commit ad20719
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 4 deletions.
26 changes: 23 additions & 3 deletions .github/scripts/Linux/arm/bootstrap.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# If changing the file, do not forget to regenerate cache in ARM Build GitHub action

OLDPWD=$(pwd)
readonly debver=bullseye
debver=$(. /etc/os-release; echo "$VERSION_CODENAME")

apt -y install curl gnupg
echo -k > ~/.curlrc
Expand All @@ -23,12 +23,32 @@ http://archive.raspberrypi.org/debian $debver main
EOF
apt -y update

apt -y install autoconf automake build-essential cmake git pkg-config libtool sudo
if [ "$debver" = buster ]; then
# 3.16 in the added repository is broken with chrooted qemu-user-static
apt -y install cmake=3.13.4-1 cmake-data=3.13.4-1
raspbian_build_sdl2() {(
sed -i '/^deb /p;s/deb /deb-src /' /etc/apt/sources.list
apt -y update
apt-get -y build-dep libsdl2-dev
apt -y install libgbm-dev
SDL_VER=2.0.10 # 2.0.14 doesn't compile with Rasbpian 10
curl -k -LO https://www.libsdl.org/release/SDL2-$SDL_VER.tar.gz
tar xaf SDL2-$SDL_VER.tar.gz
cd SDL2-$SDL_VER
./configure --enable-video-kmsdrm
make -j "$(nproc)" install
)}
raspbian_build_sdl2
else
apt -y install cmake libsdl2-dev
fi

apt -y install autoconf automake build-essential git pkg-config libtool sudo
apt -y install libcurl4-openssl-dev libsoxr-dev libspeexdsp-dev libssl-dev
apt -y install libasound2-dev portaudio19-dev libjack-dev
apt -y install libglew-dev libglfw3-dev libglm-dev
apt -y install libcaca-dev libmagickwand-dev libnatpmp-dev libopencv-core-dev libopencv-imgproc-dev
apt -y install libavcodec-dev libavformat-dev libsdl2-dev libswscale-dev libraspberrypi-dev
apt -y install libavcodec-dev libavformat-dev libswscale-dev libraspberrypi-dev

/.github/scripts/install-common-deps.sh
/.github/scripts/Linux/install_others.sh ndi
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/arm-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,12 @@ jobs:
repo: http://mirrordirector.raspbian.org/raspbian/
keyring: /etc/apt/trusted.gpg
qemu_bin_arch: arm
deb_release: buster
- arch: arm64
repo: https://deb.debian.org/debian
keyring: /usr/share/keyrings/debian-archive-keyring.gpg
qemu_bin_arch: aarch64
deb_release: bullseye

steps:
- uses: actions/checkout@v3
Expand Down Expand Up @@ -60,7 +62,7 @@ jobs:
sudo mkdir -p ~/chroot/var/tmp
sudo mv /var/tmp/*NDI* ~/chroot/var/tmp
wget http://archive.raspbian.org/raspbian.public.key -O - | sudo apt-key add -q
sudo debootstrap --keyring=${{ matrix.keyring }} --arch ${{ matrix.arch }} bullseye ~/chroot ${{ matrix.repo }}
sudo debootstrap --keyring=${{ matrix.keyring }} --arch ${{ matrix.arch }} ${{ matrix.deb_release }} ~/chroot ${{ matrix.repo }}
sudo cp -r $GITHUB_WORKSPACE/.github ~/chroot
sudo cp /usr/bin/qemu-${{ matrix.qemu_bin_arch }}-static ~/chroot/usr/bin
sudo chroot ~/chroot /.github/scripts/Linux/arm/bootstrap.sh ${{ matrix.arch }}
Expand Down

0 comments on commit ad20719

Please sign in to comment.