Add STM32F411 configuration support - #1 #1
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Build test | |
| on: | |
| workflow_dispatch: | |
| pull_request: | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 15 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: dorny/paths-filter@v2 | |
| id: changes | |
| with: | |
| filters: | | |
| dependencies: | |
| - 'pyproject.toml' | |
| - 'scripts/klippy-requirements.txt' | |
| - 'scripts/requirements_dev.txt' | |
| klipper: | |
| - 'pyproject.toml' | |
| - 'Makefile' | |
| - 'src/**' | |
| - 'lib/**' | |
| - 'test/configs/**' | |
| - 'scripts/Dockerfile-build' | |
| - 'scripts/buildcommands.py' | |
| - 'scripts/check-gcc.sh' | |
| # Always pull the latest image to take advantage of layer caching | |
| - name: Pull docker image | |
| run: docker pull dangerklippers/klipper-build:latest | |
| - name: Test Klipper build (changes to the firmware) | |
| if: steps.changes.outputs.klipper == 'true' | |
| run: | | |
| sudo apt-get update && sudo apt-get install -y expect | |
| # Clean up docker output so that github ::group: instructions | |
| # get recognized | |
| unbuffer docker build --progress=plain -f scripts/Dockerfile-build \ | |
| -t dangerklippers/klipper-build:latest . 2>&1 \ | |
| | sed -u -E 's/^#[0-9]+ [0-9.]+ ?//g' | |
| - name: Ensure scripts/klippy-dependencies.txt is up to date | |
| if: steps.changes.outputs.dependencies == 'true' | |
| uses: nickcharlton/diff-check@main | |
| with: | |
| command: | | |
| docker run -v $PWD:/klipper dangerklippers/klipper-build:latest uv export --frozen -o scripts/klippy-requirements.txt --no-dev --no-hashes | |
| docker run -v $PWD:/klipper dangerklippers/klipper-build:latest uv export --frozen -o scripts/requirements_dev.txt --only-dev --no-hashes | |
| # This *could* be done with a matrix, but then we would have to figure out sharing the docker image between builds | |
| - name: Test Klippy (Python 3.9) | |
| run: docker run -v $PWD:/klipper dangerklippers/klipper-build:latest --python 3.9 py.test -n auto | |
| - name: Test Klippy (Python 3.10) | |
| run: docker run -v $PWD:/klipper dangerklippers/klipper-build:latest --python 3.10 py.test -n auto | |
| - name: Test Klippy (Python 3.11) | |
| run: docker run -v $PWD:/klipper dangerklippers/klipper-build:latest --python 3.11 py.test -n auto | |
| - name: Test Klippy (Python 3.12) | |
| run: docker run -v $PWD:/klipper dangerklippers/klipper-build:latest --python 3.12 py.test -n auto | |
| - name: Test Klippy (Python 3.13) | |
| run: docker run -v $PWD:/klipper dangerklippers/klipper-build:latest --python 3.13 py.test -n auto |