Loading files
This file is pinned to the selected release. Download the original to open it in your design tool.
#!/bin/bash
set -e
if [[ -z "${GITHUB_WORKFLOW}" ]]; then
>&2 echo "Aborting! This script is meant to be run in CI (Github Actions) only. It may modify/damage your system configuration if run outside of CI."
exit 1
fi
set -v
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
sudo add-apt-repository --yes ppa:kicad/kicad-10.0-releases
sudo apt-get update -qq
sudo DEBIAN_FRONTEND=noninteractive apt install -y kicad kicad-packages3d poppler-utils python3-dev python3-pip imagemagick
sudo python3 -m pip install kikit==1.8.0
mkdir -p ~/.config/kicad/10.0
cp /usr/share/kicad/template/fp-lib-table ~/.config/kicad/10.0/
cp /usr/share/kicad/template/sym-lib-table ~/.config/kicad/10.0/
# Install ImageMagick policy that allows PDF conversion (safe in CI because we control all inputs/outputs)
sudo cp "$DIR/config/policy.xml" /etc/ImageMagick-6/policy.xml
# Install fonts
mkdir -p ~/.local/share/fonts/
cp "$DIR/../fonts/Righteous/Righteous-Regular.ttf" ~/.local/share/fonts9b697becaThis file is pinned to the selected release. Download the original to open it in your design tool.