Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix test matrix #22

Merged
merged 2 commits into from
Oct 26, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 30 additions & 0 deletions .github/workflows/dieharder.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Dieharder CI
on: [push]
jobs:
build:
runs-on: ubuntu-latest

container:
image: erlang:26

steps:
- uses: actions/checkout@v1
- name: Install dependencies
run: |
sed -i "/^# deb.*universe/ s/^# //" /etc/apt/sources.list
apt update
apt -y install libgsl-dev
- name: Install dieharder
run: |
export DIEHARDER_SHA=fe552eab52b1f9aaff282844abf37cffebaff0e9
curl -fSL -o $DIEHARDER_SHA.zip https://github.com/eddelbuettel/dieharder/archive/$DIEHARDER_SHA.zip
unzip $DIEHARDER_SHA.zip
cd dieharder-$DIEHARDER_SHA
./autogen.sh
./configure --prefix=$GITHUB_WORKSPACE
make
make install
- name: Run dieharder
run: |
PATH=$PATH:$GITHUB_WORKSPACE/bin
./dieharder.sh
19 changes: 4 additions & 15 deletions .github/workflows/erlang.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
erlang: [23, 24, 25, 26]
erlang: [24, 25, 26]
implementation: [rdrand, xorshift, pcg32]

container:
image: erlang:${{ matrix.erlang }}
Expand All @@ -17,21 +18,9 @@ jobs:
sed -i "/^# deb.*universe/ s/^# //" /etc/apt/sources.list
apt update
apt -y install libgsl-dev
- name: Install dieharder
run: |
export DIEHARDER_SHA=fe552eab52b1f9aaff282844abf37cffebaff0e9
wget --no-check-certificate https://github.com/eddelbuettel/dieharder/archive/$DIEHARDER_SHA.zip
unzip $DIEHARDER_SHA.zip
cd dieharder-$DIEHARDER_SHA
./autogen.sh
./configure --prefix=$GITHUB_WORKSPACE
make
make install
- name: Compile
run: rebar3 as test compile
env:
IMPLEMENTATION: ${{ matrix.implementation }}
- name: Run tests
run: rebar3 as test proper
- name: Run dieharder
run: |
PATH=$PATH:$GITHUB_WORKSPACE/bin
./dieharder.sh