Skip to content

Commit

Permalink
Split Erlang and Dieharder CI
Browse files Browse the repository at this point in the history
  • Loading branch information
lpgauth authored and tokenrove committed Oct 26, 2023
1 parent b6f1578 commit eb5a7e0
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 15 deletions.
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
16 changes: 1 addition & 15 deletions .github/workflows/erlang.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
erlang: [23, 24, 25, 26]
erlang: [24, 25, 26]
implementation: [rdrand, xorshift, pcg32]

container:
Expand All @@ -24,17 +24,3 @@ jobs:
IMPLEMENTATION: ${{ matrix.implementation }}
- name: Run tests
run: rebar3 as test proper
- 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: Run dieharder
run: |
PATH=$PATH:$GITHUB_WORKSPACE/bin
./dieharder.sh

0 comments on commit eb5a7e0

Please sign in to comment.