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 25, 2024
1 parent 0893569 commit 48fd218
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 30 deletions.
53 changes: 24 additions & 29 deletions .github/workflows/erlang.yml
Original file line number Diff line number Diff line change
@@ -1,41 +1,36 @@
name: Erlang CI

on: [push, pull_request]

env:
ERL_FLAGS: "-enable-feature all"
on:
push:
branches:
- openriak-3.2
pull_request:
branches:
- openriak-3.2

jobs:

build:

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

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

steps:
- uses: actions/checkout@v2
- uses: erlef/setup-beam@v1
id: setup-beam
with:
otp-version: ${{matrix.otp}}
rebar3-version: ${{matrix.rebar}}
- name: Restore _build
uses: actions/cache@v2
with:
path: _build
key: _build-cache-for-os-${{runner.os}}-otp-${{steps.setup-beam.outputs.otp-version}}-rebar3-${{steps.setup-beam.outputs.rebar3-version}}-hash-${{hashFiles('rebar.lock')}}
- name: Restore rebar3's cache
uses: actions/cache@v2
with:
path: ~/.cache/rebar3
key: rebar3-cache-for-os-${{runner.os}}-otp-${{steps.setup-beam.outputs.otp-version}}-rebar3-${{steps.setup-beam.outputs.rebar3-version}}-hash-${{hashFiles('rebar.lock')}}
- name: Compile
run: rebar3 compile
- name: Format check
run: rebar3 format --verify
- name: Run tests and verifications
run: rebar3 test
- 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 and dialyzer
run: ./rebar3 do xref, dialyzer
- name: Run eunit
run: ./rebar3 as gha do eunit
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
zstd-erlang
=====

[![Hex.pm](https://img.shields.io/hexpm/v/zstd.svg)](https://hex.pm/packages/zstd)
![ZSTD OpenRiak Status](https://github.com/OpenRiak/zstd-erlang/actions/workflows/erlang.yml/badge.svg?branch=openriak-3.2)

Zstd binding for Erlang/Elixir

Expand Down
Binary file added rebar3
Binary file not shown.

0 comments on commit 48fd218

Please sign in to comment.