2023-02-11 02:57:35 +03:00
|
|
|
distributable:
|
|
|
|
url: https://github.com/gleam-lang/gleam/archive/refs/tags/v{{ version }}.tar.gz
|
|
|
|
strip-components: 1
|
|
|
|
|
|
|
|
provides:
|
|
|
|
- bin/gleam
|
|
|
|
|
|
|
|
versions:
|
|
|
|
github: gleam-lang/gleam
|
|
|
|
strip: /v/
|
|
|
|
|
|
|
|
build:
|
|
|
|
dependencies:
|
|
|
|
rust-lang.org: '>=1.60'
|
|
|
|
rust-lang.org/cargo: '*'
|
2024-03-07 02:04:47 +03:00
|
|
|
script: cargo install --path compiler-cli --force --locked --root {{prefix}}
|
2023-02-11 02:57:35 +03:00
|
|
|
|
|
|
|
test:
|
|
|
|
dependencies:
|
|
|
|
erlang.org: '*'
|
2024-03-07 02:04:47 +03:00
|
|
|
script:
|
|
|
|
- gleam --version
|
|
|
|
- gleam new pkgx_test_project
|
|
|
|
- run: cp $FIXTURE pkgx_test_project/src/pkgx_test_project.gleam
|
|
|
|
fixture: |
|
|
|
|
import gleam/io
|
2023-02-11 02:57:35 +03:00
|
|
|
|
2024-03-07 02:04:47 +03:00
|
|
|
pub fn main() {
|
|
|
|
io.print("Hello, world!")
|
|
|
|
}
|
|
|
|
- run: gleam run | grep "Hello, world!"
|
|
|
|
working-directory: pkgx_test_project
|