i’ve managed to set up github actions to build avr32 toolchain and build firmware:
if you open the link you should see 2 artifacts: the tools and the built ansible firmware. i should mention that for public repos github actions and storing artifacts is free.
i’ve updated my fork of avr32_toolchain repo in the process which i think should fix some of the errors reported earlier (i also had to modify one of the download commands in my fork, was getting a cert mismatch error).
this is not a replacement for setting up the toolchain locally however - yet. it takes about 20 minutes to do a full build since it has to build the toolchain each time. this time can be shortened by just storing the built toolchain (~400Mb) somewhere. what i did was take advantage of the fact that you can create artifacts and have separate actions - so you would only need to build the toolchain once (or, more accurately, every 90 days since that’s the max time github allows for storing artifacts in public repos, still not bad). but i ran into another issue and hoping somebody with more knowledge of bash could help me figure it out.
it downloads and unpacks the toolchain artifact, but when it tries to build the firmware it shows this:
CC ../main.o
make: execvp: avr32-gcc: Permission denied
make: *** [../main.o] Error 127
../libavr32/asf/avr32/utils/make/Makefile.avr32.in:402: recipe for target '../main.o' failed
i assume it has something to do with permissions on the unpacked toolchain files? how can i fix it? it runs fine if i use the toolchain after generating it as part of the same job.