Skip to content

Commit

Permalink
Add Radxa APT repository
Browse files Browse the repository at this point in the history
  • Loading branch information
seriyps committed Oct 4, 2024
1 parent 96ac196 commit 245223d
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,20 @@ jobs:
device=$(sudo losetup -P --show -f disk.raw)
sudo mount ${device}p1 $output
keyring="$output/home/keyring.deb"
version="$(curl -L https://github.com/radxa-pkg/radxa-archive-keyring/releases/latest/download/VERSION)"
sudo curl -L --output "$keyring" "https://github.com/radxa-pkg/radxa-archive-keyring/releases/latest/download/radxa-archive-keyring_${version}_all.deb"
cat > build.sh << EOL
#!/bin/bash
cd /home
# install radxa APT repo, see https://radxa-repo.github.io/bullseye/
sudo dpkg -i keyring.deb
# Add apt package repo
sudo tee /etc/apt/sources.list.d/70-radxa.list <<< "deb [signed-by=/usr/share/keyrings/radxa-archive-keyring.gpg] https://radxa-repo.github.io/bullseye/ bullseye main"
apt-get update
apt-get install -y cmake g++ git pkg-config librockchip-mpp-dev libcairo-dev libdrm-dev libgstreamer1.0-dev libgstreamer-plugins-base1.0-dev
cd /home
cmake -B build
cmake --build build -j4
EOL
Expand Down

0 comments on commit 245223d

Please sign in to comment.