erlef / setup-beam

Set up your BEAM-based GitHub Actions workflow (Erlang, Elixir, Gleam, ...)
MIT License
378 stars 50 forks source link

Feature tool-cache for Gleam and rebar3 #223

Closed paulo-ferraz-oliveira closed 1 year ago

paulo-ferraz-oliveira commented 1 year ago

Description

This pull request:

Closes #204.

Callback -based tool-cacheing -related behaviour

As an example, we show how Gleam is now configured for tool caching, on Linux (simplified here for illustration purposes):

downloadToolURL: () =>
  `https://github.com/gleam-lang/gleam/releases/download/${versionSpec}/gleam-${versionSpec}-x86_64-unknown-linux-musl.tar.gz`,
extract: async (file) =>
  ['dir', await tc.extractTar(file, undefined, ['zx'])],
postExtract: async () =>
  {},
reportVersion: () =>
  ['gleam', ['--version']]
paulo-ferraz-oliveira commented 1 year ago

Force-pushing to resolve conflicts. Flagging this as "Ready for review", too...

paulo-ferraz-oliveira commented 1 year ago

Rebased on top of main.

paulo-ferraz-oliveira commented 1 year ago

ping @starbelly