BusPirate / Bus_Pirate

Community driven firmware and hardware for Bus Pirate version 3 and 4
625 stars 130 forks source link

CI: Build on CircleCI with XC16 1.36B and MPLABX 5.10 #118

Open Rondom opened 5 years ago

Rondom commented 5 years ago

This adds automatic building of both the firmware and the bootloader for BPv4 and BPv3 via CircleCI.

Example build here: https://circleci.com/workflow-run/2a0843b0-7009-4b1b-a3bd-6c6d7ac33b40

To enable it for this repository, one of the owners has to set it up at CircleCI.

Let's discuss this first before merging.

Ideas:

Rondom commented 5 years ago

Can someone test the following on Windows and paste the output? I have tried it in wine (because I do not have a Windows machine, but encountered weird behaviour (changes in header-files did not make the project rebuild properly).

make
make # second invocation won't rebuild the project
# now create some tag as follows
git tag -a some-test-tag
make # should rebuild
git tag --delete some-test-tag
make # should rebuild
andersm commented 5 years ago

This may be a bug in MPLAB X 5: https://www.microchip.com/forums/m1061336.aspx

Rondom commented 5 years ago

I have worked around the Windows-only-bug in the Makefile. From my perspective, this PR is ready. https://circleci.com/workflow-run/2a0843b0-7009-4b1b-a3bd-6c6d7ac33b40

It is a first step. In the future one could think of: