mirror of
https://github.com/erlef/setup-beam.git
synced 2026-07-23 07:06:07 +00:00
Update Gleam versions in README.md (#308)
This commit is contained in:
@@ -105,22 +105,14 @@ jobs:
|
|||||||
otp-version: '25'
|
otp-version: '25'
|
||||||
os: 'ubuntu-20.04'
|
os: 'ubuntu-20.04'
|
||||||
version-type: 'strict'
|
version-type: 'strict'
|
||||||
- gleam-version: '0.23'
|
- gleam-version: '1.5.1'
|
||||||
otp-version: '24'
|
otp-version: '27'
|
||||||
os: 'ubuntu-latest'
|
os: 'ubuntu-latest'
|
||||||
disable_problem_matchers: true
|
disable_problem_matchers: true
|
||||||
- gleam-version: '0.23.0-rc1'
|
- gleam-version: '1.5.1'
|
||||||
otp-version: '24'
|
|
||||||
os: 'ubuntu-latest'
|
|
||||||
disable_problem_matchers: true
|
|
||||||
- gleam-version: '0.23.0-rc1'
|
|
||||||
otp-version: false
|
otp-version: false
|
||||||
os: 'ubuntu-latest'
|
os: 'ubuntu-latest'
|
||||||
disable_problem_matchers: true
|
disable_problem_matchers: true
|
||||||
- gleam-version: '0.22.0' # Version with Gleam's old archive naming convention
|
|
||||||
otp-version: '24'
|
|
||||||
os: 'ubuntu-latest'
|
|
||||||
disable_problem_matchers: true
|
|
||||||
- elixir-version: 'v1.13'
|
- elixir-version: 'v1.13'
|
||||||
otp-version: '24'
|
otp-version: '24'
|
||||||
escript_packages: 'hex protobuf'
|
escript_packages: 'hex protobuf'
|
||||||
@@ -168,12 +160,12 @@ jobs:
|
|||||||
if: ${{matrix.combo.rebar3-version}}
|
if: ${{matrix.combo.rebar3-version}}
|
||||||
- name: Format Gleam project (without installing Erlang/OTP)
|
- name: Format Gleam project (without installing Erlang/OTP)
|
||||||
run: |
|
run: |
|
||||||
cd test/projects/gleam_gleam
|
cd test/projects/gleamgleam
|
||||||
gleam format
|
gleam format
|
||||||
if: ${{ matrix.combo.gleam-version && !matrix.combo.otp-version }}
|
if: ${{ matrix.combo.gleam-version && !matrix.combo.otp-version }}
|
||||||
- name: Run Gleam project tests (without `rebar3`)
|
- name: Run Gleam project tests (without `rebar3`)
|
||||||
run: |
|
run: |
|
||||||
cd test/projects/gleam_gleam
|
cd test/projects/gleamgleam
|
||||||
gleam test
|
gleam test
|
||||||
if: ${{ matrix.combo.gleam-version && matrix.combo.otp-version && !matrix.combo.rebar3-version }}
|
if: ${{ matrix.combo.gleam-version && matrix.combo.otp-version && !matrix.combo.rebar3-version }}
|
||||||
- name: Run escript
|
- name: Run escript
|
||||||
|
|||||||
@@ -58,11 +58,8 @@ jobs:
|
|||||||
otp-version: '24'
|
otp-version: '24'
|
||||||
rebar3-version: '3.15'
|
rebar3-version: '3.15'
|
||||||
os: 'windows-latest'
|
os: 'windows-latest'
|
||||||
- gleam-version: '0.19.0-rc3'
|
- gleam-version: '1.5.1'
|
||||||
otp-version: '24'
|
otp-version: '27'
|
||||||
os: 'windows-latest'
|
|
||||||
- gleam-version: '0.23.0-rc1'
|
|
||||||
otp-version: '24'
|
|
||||||
os: 'windows-latest'
|
os: 'windows-latest'
|
||||||
- elixir-version: 'v1.13'
|
- elixir-version: 'v1.13'
|
||||||
otp-version: '24'
|
otp-version: '24'
|
||||||
|
|||||||
@@ -121,7 +121,7 @@ The action provides the following outputs:
|
|||||||
|- |-
|
|- |-
|
||||||
| `otp-version` | The Erlang version, e.g. `OTP-26.0`
|
| `otp-version` | The Erlang version, e.g. `OTP-26.0`
|
||||||
| `elixir-version` | The Elixir version, e.g. `v1.14-otp-26`
|
| `elixir-version` | The Elixir version, e.g. `v1.14-otp-26`
|
||||||
| `gleam-version` | The Gleam version, e.g. `v0.23.0`
|
| `gleam-version` | The Gleam version, e.g. `v1.5.1`
|
||||||
| `rebar3-version` | The `rebar3` version, e.g. `3.18.0`
|
| `rebar3-version` | The `rebar3` version, e.g. `3.18.0`
|
||||||
| `setup-beam-version` | The commit unique id of the executed action version, e.g. `a34c98f`
|
| `setup-beam-version` | The commit unique id of the executed action version, e.g. `a34c98f`
|
||||||
|
|
||||||
@@ -293,8 +293,8 @@ jobs:
|
|||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- uses: erlef/setup-beam@v1
|
- uses: erlef/setup-beam@v1
|
||||||
with:
|
with:
|
||||||
otp-version: '24'
|
otp-version: '27'
|
||||||
gleam-version: '0.23.0-rc1'
|
gleam-version: '1.5.1'
|
||||||
- run: gleam test
|
- run: gleam test
|
||||||
```
|
```
|
||||||
|
|
||||||
@@ -312,7 +312,7 @@ jobs:
|
|||||||
- uses: erlef/setup-beam@v1
|
- uses: erlef/setup-beam@v1
|
||||||
with:
|
with:
|
||||||
otp-version: false
|
otp-version: false
|
||||||
gleam-version: '0.23.0-rc1'
|
gleam-version: '1.5.1'
|
||||||
- run: gleam check
|
- run: gleam check
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|||||||
@@ -1,19 +0,0 @@
|
|||||||
# gleam_gleam
|
|
||||||
|
|
||||||
A Gleam project
|
|
||||||
|
|
||||||
## Quick start
|
|
||||||
|
|
||||||
```sh
|
|
||||||
gleam run # Run the project
|
|
||||||
gleam test # Run the tests
|
|
||||||
gleam shell # Run an Erlang shell
|
|
||||||
```
|
|
||||||
|
|
||||||
## Installation
|
|
||||||
|
|
||||||
If available on Hex this package can be added to your Gleam project.
|
|
||||||
|
|
||||||
```sh
|
|
||||||
gleam add gleam_gleam
|
|
||||||
```
|
|
||||||
@@ -1,16 +0,0 @@
|
|||||||
name = "gleam_gleam"
|
|
||||||
version = "0.1.0"
|
|
||||||
|
|
||||||
# Fill out these fields if you intend to generate HTML documentation or publish
|
|
||||||
# your project to the Hex package manager.
|
|
||||||
#
|
|
||||||
# licences = ["Apache-2.0"]
|
|
||||||
# description = "A Gleam library..."
|
|
||||||
# repository = { type = "github", user = "username", repo = "project" }
|
|
||||||
# links = [{ title = "Website", href = "https://gleam.run" }]
|
|
||||||
|
|
||||||
[dependencies]
|
|
||||||
gleam_stdlib = "~> 0.18"
|
|
||||||
|
|
||||||
[dev-dependencies]
|
|
||||||
gleeunit = "~> 0.5"
|
|
||||||
@@ -1,11 +0,0 @@
|
|||||||
# This file was generated by Gleam
|
|
||||||
# You typically do not need to edit this file
|
|
||||||
|
|
||||||
packages = [
|
|
||||||
{ name = "gleam_stdlib", version = "0.22.3", build_tools = ["gleam"], requirements = [], otp_app = "gleam_stdlib", source = "hex", outer_checksum = "F2C2D389B06426E1289D5419F89BDE8E0F7F35A40B2BBB3C88188481F0D44A9F" },
|
|
||||||
{ name = "gleeunit", version = "0.6.2", build_tools = ["gleam"], requirements = ["gleam_stdlib"], otp_app = "gleeunit", source = "hex", outer_checksum = "A006864621DB80C4FBB0746580703502FD81A4D38D23FCB20A8120984D353DF0" },
|
|
||||||
]
|
|
||||||
|
|
||||||
[requirements]
|
|
||||||
gleam_stdlib = "~> 0.18"
|
|
||||||
gleeunit = "~> 0.5"
|
|
||||||
@@ -1,5 +0,0 @@
|
|||||||
import gleam/io
|
|
||||||
|
|
||||||
pub fn main() {
|
|
||||||
io.println("Hello from gleam_gleam!")
|
|
||||||
}
|
|
||||||
+5
-3
@@ -14,8 +14,10 @@ jobs:
|
|||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- uses: erlef/setup-beam@v1
|
- uses: erlef/setup-beam@v1
|
||||||
with:
|
with:
|
||||||
otp-version: "23.2"
|
otp-version: "26.0.2"
|
||||||
gleam-version: "0.23.0-rc1"
|
gleam-version: "1.5.0"
|
||||||
- run: gleam format --check src test
|
rebar3-version: "3"
|
||||||
|
# elixir-version: "1.15.4"
|
||||||
- run: gleam deps download
|
- run: gleam deps download
|
||||||
- run: gleam test
|
- run: gleam test
|
||||||
|
- run: gleam format --check src test
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
*.beam
|
*.beam
|
||||||
*.ez
|
*.ez
|
||||||
build
|
/build
|
||||||
erl_crash.dump
|
erl_crash.dump
|
||||||
@@ -0,0 +1,24 @@
|
|||||||
|
# gleamgleam
|
||||||
|
|
||||||
|
[](https://hex.pm/packages/gleamgleam)
|
||||||
|
[](https://hexdocs.pm/gleamgleam/)
|
||||||
|
|
||||||
|
```sh
|
||||||
|
gleam add gleamgleam@1
|
||||||
|
```
|
||||||
|
```gleam
|
||||||
|
import gleamgleam
|
||||||
|
|
||||||
|
pub fn main() {
|
||||||
|
// TODO: An example of the project in use
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
Further documentation can be found at <https://hexdocs.pm/gleamgleam>.
|
||||||
|
|
||||||
|
## Development
|
||||||
|
|
||||||
|
```sh
|
||||||
|
gleam run # Run the project
|
||||||
|
gleam test # Run the tests
|
||||||
|
```
|
||||||
@@ -0,0 +1,19 @@
|
|||||||
|
name = "gleamgleam"
|
||||||
|
version = "1.0.0"
|
||||||
|
|
||||||
|
# Fill out these fields if you intend to generate HTML documentation or publish
|
||||||
|
# your project to the Hex package manager.
|
||||||
|
#
|
||||||
|
# description = ""
|
||||||
|
# licences = ["Apache-2.0"]
|
||||||
|
# repository = { type = "github", user = "", repo = "" }
|
||||||
|
# links = [{ title = "Website", href = "" }]
|
||||||
|
#
|
||||||
|
# For a full reference of all the available options, you can have a look at
|
||||||
|
# https://gleam.run/writing-gleam/gleam-toml/.
|
||||||
|
|
||||||
|
[dependencies]
|
||||||
|
gleam_stdlib = ">= 0.34.0 and < 2.0.0"
|
||||||
|
|
||||||
|
[dev-dependencies]
|
||||||
|
gleeunit = ">= 1.0.0 and < 2.0.0"
|
||||||
@@ -0,0 +1,5 @@
|
|||||||
|
import gleam/io
|
||||||
|
|
||||||
|
pub fn main() {
|
||||||
|
io.println("Hello from gleamgleam!")
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user