From 63883b3b0dbace4ad5480167f0cfa0a536dcfd12 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20Mr=C3=A1zek?= Date: Sat, 24 Feb 2024 10:01:43 +0100 Subject: [PATCH] Update CI to use KiCAD 8 --- .github/actions/setup-kicad/setup.sh | 26 ++++++++++++++++++++++++++ .github/workflows/test-kikit.yml | 2 +- 2 files changed, 27 insertions(+), 1 deletion(-) diff --git a/.github/actions/setup-kicad/setup.sh b/.github/actions/setup-kicad/setup.sh index efaca347..9f9f555d 100755 --- a/.github/actions/setup-kicad/setup.sh +++ b/.github/actions/setup-kicad/setup.sh @@ -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 diff --git a/.github/workflows/test-kikit.yml b/.github/workflows/test-kikit.yml index 74fe518e..2f2bbe2a 100644 --- a/.github/workflows/test-kikit.yml +++ b/.github/workflows/test-kikit.yml @@ -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