Merge pull request #2 from esl/otp24

Test in OTP24
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index a1b49db..285b205 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -12,8 +12,10 @@
     name: OTP ${{matrix.otp}}
     strategy:
       matrix:
-        otp: ['23.2', '22.3', '21.3']
+        otp: ['24.0', '23.3', '22.3', '21.3']
     runs-on: 'ubuntu-20.04'
+    env:
+      OTPVER: ${{ matrix.otp }}
     steps:
       - uses: actions/checkout@v2
       - uses: ErlGang/setup-erlang@v1.0.0
@@ -23,12 +25,12 @@
       - run: make deps
       - run: make test
       - run: make dialyzer
-        if: ${{ matrix.otp == '23.2' }}
+        if: ${{ matrix.otp == '24.0' }}
       - run: make codecov
-        if: ${{ matrix.otp == '23.2' }}
+        if: ${{ matrix.otp == '24.0' }}
       - run: make gcov
-        if: ${{ matrix.otp == '23.2' }}
+        if: ${{ matrix.otp == '24.0' }}
       - run: pip install --user codecov
-        if: ${{ matrix.otp == '23.2' }}
+        if: ${{ matrix.otp == '24.0' }}
       - run: /home/runner/.local/bin/codecov
-        if: ${{ matrix.otp == '23.2' }}
+        if: ${{ matrix.otp == '24.0' }}
diff --git a/Makefile b/Makefile
index 8138f3f..b4457cc 100644
--- a/Makefile
+++ b/Makefile
@@ -1,5 +1,10 @@
 .PHONY: rel deps test
 
+REBARVER = 3.13.2
+ifeq ($(OTPVER),24.0)
+	REBARVER = 3.15.1
+endif
+
 all: deps compile
 
 compile: rebar3
@@ -27,7 +32,7 @@
 	gcov -o c_src fast_pbkdf2
 
 rebar3:
-	wget https://github.com/erlang/rebar3/releases/download/3.13.2/rebar3 &&\
+	wget https://github.com/erlang/rebar3/releases/download/${REBARVER}/rebar3 &&\
 	chmod u+x rebar3
 
 dialyzer: rebar3