Re: Best way to run xa65 in GitHub Actions?

From: Marko Mäkelä <marko.makela_at_iki.fi>
Date: Sun, 29 Nov 2026 17:24:57 +0200
Message-ID: <awxDyf652aGkDwGD_at_kehys.lan>
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.

Best regards,

	Marko
Received on 2026-11-29 17:00:01

Archive generated by hypermail 2.4.0.