Skip to content

Commit

Permalink
Update CI scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
NelsonVides committed Nov 20, 2023
1 parent a8c90f2 commit 6b62c78
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 53 deletions.
41 changes: 25 additions & 16 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,25 +12,34 @@ jobs:
name: OTP ${{matrix.otp}}
strategy:
matrix:
otp: ['24.0', '23.3', '22.3', '21.3']
runs-on: 'ubuntu-20.04'
otp: ['26.1', '25.3', '24.3', '23.3', '22.3', '21.3']
runs-on: 'ubuntu-22.04'
env:
OTPVER: ${{ matrix.otp }}
steps:
- uses: actions/checkout@v2
- uses: ErlGang/setup-erlang@v1.0.0
- uses: actions/checkout@v3
- uses: erlef/setup-beam@v1
with:
otp-version: ${{ matrix.otp }}
- run: make rebar3
- run: make deps
- run: make test
- run: make dialyzer
if: ${{ matrix.otp == '24.0' }}
- run: make codecov
if: ${{ matrix.otp == '24.0' }}
- run: make gcov
if: ${{ matrix.otp == '24.0' }}
otp-version: ${{matrix.otp}}
- name: Restore _build
uses: actions/cache@v3
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@v3
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')}}
- run: rebar3 as test get-deps
- run: rebar3 as test compile
- run: rebar3 as test dialyzer
if: ${{ matrix.otp == '26.1' }}
- run: rebar3 as test codecov analyze
if: ${{ matrix.otp == '26.1' }}
- run: gcov -o c_src fast_pbkdf2
if: ${{ matrix.otp == '26.1' }}
- run: pip install --user codecov
if: ${{ matrix.otp == '24.0' }}
if: ${{ matrix.otp == '26.1' }}
- run: /home/runner/.local/bin/codecov
if: ${{ matrix.otp == '24.0' }}
if: ${{ matrix.otp == '26.1' }}
36 changes: 0 additions & 36 deletions Makefile

This file was deleted.

2 changes: 1 addition & 1 deletion rebar.config
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
{proper, "1.4.0"}
]},
{plugins, [
{rebar3_codecov, "0.3.0"}]},
{rebar3_codecov, "0.6.0"}]},
{port_env,
[
{"CFLAGS", "$CFLAGS -std=c99 -O3 -g -Wall -Wextra -fPIC -I/opt/homebrew/include -I/usr/local/include --coverage"},
Expand Down

0 comments on commit 6b62c78

Please sign in to comment.