Skip to content

Commit

Permalink
Update for OpenRiak
Browse files Browse the repository at this point in the history
  • Loading branch information
martinsumner committed Oct 28, 2024
1 parent 5f15941 commit 35393ce
Show file tree
Hide file tree
Showing 5 changed files with 39 additions and 2 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/erlang.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Erlang CI

on:
push:
branches:
- openriak-3.2
pull_request:
branches:
- openriak-3.2

jobs:

build:

name: Test on ${{ matrix.os }} with OTP ${{ matrix.otp }}
runs-on: ${{ matrix.os }}

strategy:
fail-fast: false
matrix:
otp: [24, 26]
os: [ubuntu-latest]

steps:
- uses: lukka/get-cmake@latest
- uses: actions/checkout@v4
- name: Install Erlang/OTP
uses: erlef/setup-beam@v1
with:
otp-version: ${{ matrix.otp }}
- name: Compile
run: ./rebar3 compile
- name: Run xref (no dialyzer due to issues with rebar provider)
run: ./rebar3 do xref
- name: Run eunit
run: ./rebar3 as gha do eunit
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,3 @@ _plugins
_tdeps
logs
_build
rebar.lock
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
rebar3_cuttlefish
=====

![Rebar3 Cuttlefish Plugin OpenRiak Status](https://github.com/OpenRiak/rebar3_cuttlefish/actions/workflows/erlang.yml/badge.svg?branch=openriak-3.2)

This plugin provides cuttlefish and automatically updates the release configuration at runtime to utilize cuttlefish. There is no need to add schema files to the relx overlay, copy the cuttlefish escript or create a custom start script, it is all handled by the plugin provider.

Add the plugin to your top level rebar config under `project_plugins` so it can override the default `release` and `tar` providers:
Expand Down
2 changes: 1 addition & 1 deletion rebar.config
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
warnings_as_errors]}.

{deps, [
{cuttlefish, {git, "https://github.com/OpenRiak/cuttlefish.git", {branch, "nhse-develop"}}}
{cuttlefish, {git, "https://github.com/OpenRiak/cuttlefish.git", {branch, "openriak-3.2"}}}
]}.

{xref_checks, [
Expand Down
Binary file added rebar3
Binary file not shown.

0 comments on commit 35393ce

Please sign in to comment.