std-action icon indicating copy to clipboard operation
std-action copied to clipboard

Forge independence

Open aschrijver opened this issue 1 year ago • 1 comments

This is just a consideration to support more than (the overly dominant) Github.

There are other code forges who use actions. Both Gitea and Forgejo have adopted (and adapted) the Github Actions codebase in their own project. Forgejo is widely used for self-hosted forges and by the FOSS community. Here's the user documentation of their actions impl. The largest Forgejo instance is Codeberg, who offer a true alternative to Github exclusivey for open source projects.

(Also Forgejo is likely to be among first forges to get federation support (via ForgeFed) and will interoperate with Gitlab instances (based on their ActivityPub efforts). This will bring interesting decentralized and SLDC-wide collaboration scenario's into the picture.)

Forgejo / Gitea are not 1-to-1 compatible with Github Actions. I don't know if Gitlab has an Actions-equivalent. In terms of supporting these forges a kind of adapter pattern might be used.

aschrijver avatar Apr 06 '24 06:04 aschrijver

The things that are a bit github specific are the cache interactions

  • Save during Discovery https://github.com/divnix/std-action/blob/main/discover%2Faction.yml#L46-L51
  • Retrieval during Run: https://github.com/divnix/std-action/blob/main/run%2Faction.yaml#L55-L61

From a quick review of the code, the rest, especially the scripts is agnostic.

A different question to address is how to install and setup nix, which in my use cases is https://github.com/nixbuild/nix-quick-install-action

blaggacao avatar Apr 06 '24 08:04 blaggacao