Informant Toolchains - Github Actions to Compile Inform 10.1.2 for Linux, Mac, Windows

Informant Toolchains:

My recently released Informant VSCode plugin uses self-contained toolchains rather than depending on an Inform installation elsewhere on the computer. The VS Code extension and
compiler environment are distributed separately, allowing Informant to install and manage the Inform environment used by a project without changing another Inform installation on the system.

  • [inactive link removed]

For what it is worth, the Windows build did require some surgery to inweb in order to get 10.1.2 to compile cleanly and it looks like at that point in the source tree intest verification was broken so your mileage may vary.

An Informant Toolchain contains the native compiler programs together with the Inform resources, documentation, extensions, templates, and player components needed for the normal development workflow. Toolchains are available for each supported operating system and share the same general package organization.

At a high level, a toolchain contains:

PACKAGE/
|
+-- Compilers/
+-- Documentation/
+-- Extensions/
+-- HTML/
+-- Imagery/
+-- Inter/
+-- Languages/
+-- Miscellany/
+-- Pipelines/
+-- Player/
+-- Redist/
+-- Templates/

The exact contents can vary between releases, but each directory has a clear role in providing the complete Inform development environment used by Informant.

Toolchain Components

Compilers/

Contains the native inform7, inform6, and inblorb programs for the target operating system. These programs provide the principal compile and release pipeline used by Informant.

Inter/ and Pipelines/

Contain Inform’s kits and processing definitions used by the compiler. These resources form part of the version-matched Inform environment.

Extensions/ and Languages/

Provide the standard Inform extensions and language resources included with the selected Inform release. Extensions installed separately by the user remain distinct from those supplied by the toolchain.

Documentation/ and Imagery/

Provide Inform documentation and supporting images used by the documentation and generated Index.

Templates/, HTML/, and Miscellany/

Provide release templates, web presentation resources, Index resources, and other supporting material used by Inform during compilation and release.

Player/

Contains the Quixe/GlkOte browser-player resources used by Informant for integrated Glulx playback.

REDIST/

Contains redistribution and licensing material for components included in the packaged toolchain.

Compilation

For Inform 10, the principal compiler pipeline can be summarized as:

Inform 7 source
      |
      v
   inform7
      |
      v
generated Inform 6 source
      |
      v
   inform6
      |
      v
  story file
      |
      +------> inblorb for packaged release output

The compiler programs work with the surrounding kits, extensions, languages, pipelines, and release resources. Informant therefore manages the toolchain as a complete package rather than as a collection of independent executables.

Platform Packages

Informant provides toolchain packages for Windows, macOS, and Linux. The overall package organization is consistent across platforms, while the native programs in Compilers/ are built for the operating system and architecture of each package.

The macOS toolchain is distributed as a universal package supporting Intel and Apple silicon. Windows and Linux use their corresponding native x86-64 packages.

Installing a toolchain does not replace or modify another Inform installation. Informant stores its managed toolchains separately and uses the toolchain selected for the current project.

Versioned Environments

A toolchain represents a matched Inform environment. Its compiler programs and supporting resources belong to the same toolchain release, giving Informant a predictable set of files to use when compiling, playing, documenting, and releasing a project.

Conceptually:

Informant
   |
   v
selected toolchain
   |
   v
PACKAGE/
   |
   +-- compiler programs
   +-- Inform kits and pipelines
   +-- standard extensions and languages
   +-- documentation and imagery
   +-- release resources
   +-- integrated player

This separation also allows more than one toolchain to be installed. A project can select an appropriate installed toolchain without requiring a system-wide change to Inform.

Toolchain Sources and Releases

Informant toolchains are assembled from the Inform ecosystem and packaged for use by Informant. Build automation, source information, and downloadable releases are maintained in the Informant toolchain
repository:

  • [inactive links removed]

The toolchain is distributed separately from the Informant VS Code extension.

Licensing

The GitHub Actions workflows used to build and package the Informant toolchains, including their YAML workflow files, are provided under the Artistic License 2.0.

The toolchains themselves contain components from the Inform ecosystem with their respective licenses. Redistribution and licensing information for components included in a packaged toolchain is provided in the toolchain’s REDIST/ directory.

Licensing for the Informant VS Code extension is separate from the toolchain build automation and packaged toolchain components. Informant itself is licensed under the GNU General Public License, version 3 only (GPL-3.0-only).

I’m not sure if you ran into what I ran into when creating Inform Builder,, specifically this. That was, however, because I was experimenting with the “latest” (10.2), though I think 11 will actually be the latest? I honestly found dealing with the Inform 7 repo a bit of a mess. I’m in the process of incorporating that into my own VS Code extension as well, and it’s been a learning experience, if nothing else.

Kudos on your work here!

Oh absolutely, in fact, one of the more problematic aspects of what you’re describing that I ran into is that there are many points in the tree that will generate a full build and pass intest verification for the most part, may be a few minor regressions here and there, assuming you can even line up the trees properly; however, if you build a large inform seven stress test case and try to feed it through the compiler for all three stages up through packaging many times you will hit an error compiling the source text in either inform seven or six stages. A small test was not always sufficient. I ended up building random generated cases of connected rooms and objects with a header like:

  • Use MAX_PROP_TABLE_SIZE of 10000000.
  • Use MAX_ZCODE_SIZE of 10000000.
  • Use MAX_STATIC_DATA of 10000000.
  • Use MAX_OBJECTS of 500000.

To verify that i7->i6->inblorb was “really” working lol! Not very elegant but it helped weed out builds that worked on small works / passed basic smoke testing. What are you licensing your build process under?

You know, that’s a darn good question. I just realized I didn’t put any license info in there at all. I generally go with the most permissive thing I possibly can. GPL-3 seems like it would fit well here. I’ll get that officially in place.

So if you look at the license that I used on my informant builds and the YAML for the packaging process, you will see that I used the Artistic 2.0 license. The reason I did this is because the bulk of everything for inform is under that license. This allows for my package process to be broadly compatible with licensing architectures similar to what inform uses. My VS code plug-in is GPL 3.0 because for that body of work, I wanted strict copy left in place to encourage unfettered collaboration inside and outside corporate environments. Hope my rationale helps with your decision.

It does indeed. Good points and that makes for a good path to follow. Thank you!