Skip to content

Commit

Permalink
Update CI to use KiCAD 8
Browse files Browse the repository at this point in the history
  • Loading branch information
yaqwsx committed Feb 26, 2024
1 parent 611dc10 commit 63883b3
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 1 deletion.
26 changes: 26 additions & 0 deletions .github/actions/setup-kicad/setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,32 @@ case $1 in
echo "PYTHONPATH=/usr/lib/kicad/lib/python3/dist-packages:${PYTHONPATH}" >> $GITHUB_ENV
echo "LD_LIBRARY_PATH=/usr/lib/kicad/lib/x86_64-linux-gnu/:${LD_LIBRARY_PATH}" >> $GITHUB_ENV
;;
'v8')
sudo add-apt-repository --yes ppa:kicad/kicad-8.0-releases
sudo apt-get update
sudo apt-get install --yes --no-install-recommends kicad
# The Pcbnew module is located in
# - /usr/lib/kicad/lib/python3/dist-packages
# - instead of /usr/lib/python3/dist-packages/pcbnew.py
# Let's add it to PYTHONPATH and also set LD_LIBRARY_PATH
echo "PYTHONPATH=/usr/lib/kicad/lib/python3/dist-packages:${PYTHONPATH}" >> $GITHUB_ENV
echo "LD_LIBRARY_PATH=/usr/lib/kicad/lib/x86_64-linux-gnu/:${LD_LIBRARY_PATH}" >> $GITHUB_ENV
echo "PYTHONPATH=/usr/lib/kicad/lib/python3/dist-packages/:/usr/lib/kicad/local/lib/python3.10/dist-packages:/usr/lib/kicad/local/lib/python3.11/dist-packages:/usr/lib/kicad/local/lib/python3.12/dist-packages" >> $GITHUB_ENV
echo "LD_LIBRARY_PATH=/usr/lib/kicad/lib/x86_64-linux-gnu:/usr/lib/kicad/lib/" >> $GITHUB_ENV
;;
'v8-testing')
sudo add-apt-repository --yes ppa:kicad/kicad-8.0-nightly
sudo apt-get update
sudo apt-get install --yes --no-install-recommends kicad
# The Pcbnew module is located in
# - /usr/lib/kicad/lib/python3/dist-packages
# - instead of /usr/lib/python3/dist-packages/pcbnew.py
# Let's add it to PYTHONPATH and also set LD_LIBRARY_PATH
echo "PYTHONPATH=/usr/lib/kicad/lib/python3/dist-packages:${PYTHONPATH}" >> $GITHUB_ENV
echo "LD_LIBRARY_PATH=/usr/lib/kicad/lib/x86_64-linux-gnu/:${LD_LIBRARY_PATH}" >> $GITHUB_ENV
echo "PYTHONPATH=/usr/lib/kicad/lib/python3/dist-packages/:/usr/lib/kicad/local/lib/python3.10/dist-packages:/usr/lib/kicad/local/lib/python3.11/dist-packages:/usr/lib/kicad/local/lib/python3.12/dist-packages" >> $GITHUB_ENV
echo "LD_LIBRARY_PATH=/usr/lib/kicad/lib/x86_64-linux-gnu:/usr/lib/kicad/lib/" >> $GITHUB_ENV
;;
'nightly')
sudo add-apt-repository --yes ppa:kicad/kicad-dev-nightly
sudo apt-get update
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test-kikit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
runs-on: ubuntu-22.04
strategy:
matrix:
kicad-version: [v6, v7, v7-testing, nightly]
kicad-version: [v7, v7-testing, v8, nightly]
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/setup-kicad
Expand Down

0 comments on commit 63883b3

Please sign in to comment.