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..01c7f320 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, v8-testing, nightly] steps: - uses: actions/checkout@v4 - uses: ./.github/actions/setup-kicad