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 e0c897b
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .github/actions/setup-kicad/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ author: 'Jan "yaqwsx" Mrázek'
inputs:
kicad-version:
description: "Version of KiCAD, currently supported v5, v6, and nightly"
default: 'v6'
default: 'v8'
runs:
using: 'composite'
steps:
- run: '.github/actions/setup-kicad/setup.sh ${{ inputs.kicad-version }}'
shell: bash
shell: bash
28 changes: 27 additions & 1 deletion .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 All @@ -49,7 +75,7 @@ case $1 in
;;

*)
echo "Invalid version '$1' passed. Only 'v5', 'v6' and 'nightly' supported" >&2
echo "Invalid version '$1' passed. Only 'v5', 'v6', 'v7', 'v7-testing', 'v8', 'v8-testing' and 'nightly' supported" >&2
exit 1
;;
esac
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-testing, nightly]
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/setup-kicad
Expand Down

0 comments on commit e0c897b

Please sign in to comment.