Re: Best way to run xa65 in GitHub Actions?

From: groepaz <groepaz_at_gmx.net>
Date: Sun, 29 Nov 2026 16:53:55 +0100
Message-ID: <299330950.PPqbVaVNJ2_at_zweitrakete>
Am Sonntag, 29. November 2026, 16:24:57 Mitteleuropäische Normalzeit schrieb 
Marko Mäkelä:
> Sun, Nov 29, 2026 at 09:56:12AM +0200, Marko Mäkelä wrote:
> >Thank you. In https://github.com/VICE-Team/svn-mirror/actions I can see
> >some results of processing the .github/workflows/ defined in the
> >https://github.com/VICE-Team/svn-mirror repository. It defines steps to
> >install xa65 on windows-latest (based on MinGW) or ubuntu-latest. I may
> >start only with the latter, to keep it simple for me.
> 
> For the record, I got the actions themselves to work. On both Ubuntu and
> Windows, xa65 is being installed. What does not work yet is the Makefile
> on Windows: it tells me that the Microsoft compiler cl cannot be found.
> 
> I think that the only reasonably future-proof way is to convert the
> Makefile to CMakeLists.txt and invoke CMake for the build. The build
> recipe gets more verbose than I would have liked. I'm afraid I will have
> to expand this kind of pattern rules for each source and target file:
> 
> .s.prg:
> 	xa -o $_at_ $<
> 
> In CMake, I can invoke xa65 and other generator tools like this:
> 
> ADD_CUSTOM_TARGET(foo.prg DEPENDS foo.s
>   COMMAND "${XA}" -o "${CMAKE_CURRENT_BINARY_DIR}/foo.prg" foo.s
>   WORKING_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}")
> 
> I guess I could define a macro to remove some duplication. For a small
> number of sources and targets, this is kind of acceptable. I also
> experimented with CMAKE_TOOLCHAIN_FILE, but I failed to override
> CMAKE_ASM_COMPILER to xa; the host assembler compiled loudly about the
> 6502 mnemonics.

One annoying problem you are probably running into is the shell used by the 
GHA to execute commands. For cc65 we wanted the GHA to test the "windows way" 
of building it (using cmd.exe and native tools), which really turned out to be 
a bit tricky (maybe Oliver is reading here and can tell more, i forgot the 
details). In any case, you might want to have a look in the GHA files for cc65 
as well for some more inspiration :) I am not sure if using cmake would even 
help with this for that matter (maybe it does)

-- 

https://cc65.github.io            https://rr.pokefinder.org
https://vice-emu.sourceforge.net  https://magicdisk.untergrund.net

Es ist schon unglaublich, wie ungeniert eine Regierung, die aus angeblicher 
Geldnot ALG-II-Empfnger und Rentner um ein menschenwrdiges Leben bringt, 
maroden Banken weitere Milliarden an Kapitalhilfen und Garantien hinterher 
wirft. 
<Sahra Wagenknecht, Die Linke>
Received on 2026-11-29 17:00:10

Archive generated by hypermail 2.4.0.