-
-
Notifications
You must be signed in to change notification settings - Fork 24
38 lines (38 loc) · 1.32 KB
/
smallcrush.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
name: "Run SmallCrush"
on:
push:
paths:
- '**/*.rs'
- '**/*.h'
- '**/*.c'
- '.github/workflows/*.yml'
pull_request:
paths:
- '**/*.rs'
- '**/*.h'
- '**/*.c'
- '.github/workflows/*.yml'
workflow_dispatch:
jobs:
smallcrush:
name: "Run SmallCrush"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install TestU01 and Clang
run: sudo apt-get update && sudo apt-get install -y libtestu01-0-dev libtestu01-0-dev-common libtestu01-0 llvm-11 clang-11
- name: "Install stable Rust toolchain"
uses: actions-rs/toolchain@v1
with:
override: true
profile: minimal
toolchain: "stable"
- name: Build nanorand-abi
uses: actions-rs/cargo@v1
with:
args: "--release --package nanorand-abi"
command: build
- name: Build nanorand SmallCrush example
run: clang -O3 -pipe -I$GITHUB_WORKSPACE/nanorand-abi nanorand-abi/examples/smallcrush.c target/release/libnanorand_abi.so -o nanorand-smallcrush -ltestu01 -ltestu01probdist -ltestu01mylib -lm
- name: Run nanorand SmallCrush
run: ./nanorand-smallcrush