Skip to content

Commit

Permalink
wip - write README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
intjelic committed Oct 22, 2024
1 parent 4a3af3e commit e96f0ff
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# Setup Erlang Examples

This repository showcases how to use the
[setup-erlang](https://github.com/erlangsters/setup-erlang) action in a Github
Actions workflow.

For each supported version of Erlang (25.x, 26.x and 27.x), for each supported
platforms (Linux, macOS and Windows), and for the [Rebar3](https://rebar3.org/)
and [Erlang.mk](https://erlang.mk/)) build tools, it shows how to build the
following types of Erlang projects.

- Build an OTP application/release
- Build a NIF-based library

It also helps verify that those projects continue to be "buildable" despite
ongoing environment changes.

XXX: Perhaps add "driver-based library" and "escript" projects to the examples.

## Repository organization

Find one folder per Erlang project type and build tool.

- `otp-release-rebar3` - How to build OTP release with Rebar3.
- `otp-release-erlang-mk` - How to build OTP release with Erlang.mk
- `nif-library-rebar3` - How to build a NIF-based library with Rebar3
- `nif-library-erlang-mk` - How to build a NIF-based library with Erlang.mk

They're good starting points if you struggle with how to structure your Erlang
projects.

And finally, find Github Actions
[workflow](.github/workflows/setup-erlang-examples.yml) that will show you how
to write your workflows to build those projects (install dependencies, the
right commands to execute, etc).

0 comments on commit e96f0ff

Please sign in to comment.