Add script (and CI check) to check / update the autogenerated pioasm outputs #4
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: CMake | |
on: [push, pull_request] | |
jobs: | |
build: | |
# Prevent running twice for PRs from same repo | |
if: github.repository_owner == 'raspberrypi' && (github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.event.pull_request.base.repo.full_name) | |
runs-on: [self-hosted, Linux, X64] | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Checkout pico-sdk/develop | |
uses: actions/checkout@v4 | |
with: | |
repository: raspberrypi/pico-sdk | |
ref: develop | |
path: pico-sdk | |
- name: Check autogenerated pioasm outputs | |
run: | | |
PICO_SDK_PATH=${{github.workspace}}/pico-sdk ./update_pioasm_outputs.sh | |
if git status --porcelain | grep -q '^ M'; then | |
echo "::error title=outdated-files::Autogenerated pioasm output files are out of date - update by running update_pioasm_outputs.sh" | |
exit 1 | |
fi | |