Skip to content

Commit

Permalink
use newer slightly newer dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
scottbez1 committed Mar 9, 2024
1 parent 88e127f commit 3fbd0ce
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 4 deletions.
5 changes: 1 addition & 4 deletions .github/workflows/electronics_v2.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,7 @@ jobs:
run: mkdir -p electronics/build/outputs

- name: Install dependencies
run: ./electronics/scripts/dependencies.sh

- name: Update kikit
run: sudo python3 -m pip install kikit==1.0.5
run: ./electronics/scripts/dependencies_v2.sh

# Sensor board:
- name: Panelize sensor PCB
Expand Down
27 changes: 27 additions & 0 deletions electronics/scripts/dependencies_v2.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
#!/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-6.0-releases
sudo apt-get update -qq
sudo DEBIAN_FRONTEND=noninteractive apt install -y kicad kicad-packages3d inkscape poppler-utils xdotool recordmydesktop python3-dev python3-pip xvfb

sudo python3 -m pip install psutil kikit==1.1.1 xvfbwrapper

mkdir -p ~/.config/kicad
cp /usr/share/kicad/template/fp-lib-table ~/.config/kicad/
cp /usr/share/kicad/template/sym-lib-table ~/.config/kicad/

cp "$DIR/config/eeschema" ~/.config/kicad/
cp "$DIR/config/pcbnew" ~/.config/kicad/

# 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

0 comments on commit 3fbd0ce

Please sign in to comment.