#Using nightly on CI

1 messages · Page 1 of 1 (latest)

proper nova
#

There are lots of cool things on the main branch of Gleam, which haven't been released yet, and so I like to use nightly to develop my Gleam projects. However, when I use a feature that hasn't been released yet in my code, CI breaks because it has no idea how to process those features. Is there a way I can use Gleam nightly on CI so that I get the nice upcoming features while still automatically running tests etc?

brave pasture
proper nova
#

No I haven't, I'll give it a look, thanks!

#

Hmm no that doesn't seem to have worked

brave pasture
proper nova
#

Ah yes! Do you know how I could use it in my workflow file?

brave pasture
#

What happens when you specify the gleam-version as nightly?

proper nova
#

This error:

brave pasture
#

Set version-type: strict

#

This works:

      - name: Setup Gleam
        uses: erlef/setup-beam@v1
        with:
          otp-version: "27.1.2"
          gleam-version: nightly
          rebar3-version: "3.24.0"
          version-type: strict
proper nova
#

Ok thanks

#

I know it said it in the error message but that didn't seem like it was the correct option

#

I would have imagined version-type: strict would disallow more cases, not allow more cases

#

That works! Thanks so much