@@ -5,6 +5,7 @@ on: [pull_request, push]
5
5
env :
6
6
RUSTFLAGS : " -Dwarnings -C target-cpu=native"
7
7
RUST_BACKTRACE : 1
8
+ ACTIONS_RUNNER_DEBUG : true
8
9
9
10
jobs :
10
11
lint :
15
16
- uses : dtolnay/rust-toolchain@stable
16
17
with :
17
18
components : rustfmt, clippy
19
+ - name : Setup Dependencies
20
+ run : |
21
+ sudo apt-get install -y build-essential
18
22
- run : python3 ./scripts/install.py
19
23
- run : cargo fmt --all -- --check
20
24
- run : cargo clippy --all
@@ -35,18 +39,30 @@ jobs:
35
39
- uses : dtolnay/rust-toolchain@stable
36
40
- uses : Swatinem/rust-cache@v2
37
41
with :
38
- # The prefix cache key, this can be changed to start a new cache manually.
39
- prefix-key : " mpi-v5.0.6" # update me if brew formula changes to a new version
42
+ prefix-key : " mpi-v5.0.6"
43
+ - name : Setup Dependencies
44
+ run : |
45
+ if [ "${{ matrix.os }}" == "macos-latest" ]; then
46
+ brew install gcc make
47
+ else
48
+ sudo apt-get install -y build-essential
49
+ fi
40
50
- name : Set RUSTFLAGS for AVX
41
51
if : matrix.feature != ''
42
52
run : echo "RUSTFLAGS=$RUSTFLAGS -C target-feature=+${{ matrix.feature }}" >> $GITHUB_ENV
43
- - name : Build and Test
53
+ - name : Setup
44
54
run : |
45
55
python3 ./scripts/install.py
46
56
mpiexec --version
57
+ - name : download data
58
+ run : |
47
59
cargo run --bin=dev-setup --release
60
+ - name : Unit Tests
61
+ run : |
48
62
cargo build --all-features --release
49
63
cargo test --all-features --release --workspace
64
+ - name : E2E Test
65
+ run : |
50
66
./scripts/test_recursion.py
51
67
52
68
gkr-e2e :
@@ -84,13 +100,19 @@ jobs:
84
100
- uses : dtolnay/rust-toolchain@stable
85
101
- uses : Swatinem/rust-cache@v2
86
102
with :
87
- # The prefix cache key, this can be changed to start a new cache manually.
88
- prefix-key : " mpi-v5.0.5" # update me if brew formula changes to a new version
103
+ prefix-key : " mpi-v5.0.6"
104
+ - name : Setup Dependencies
105
+ run : |
106
+ if [ "${{ matrix.os }}" == "macos-latest" ]; then
107
+ brew install gcc make
108
+ else
109
+ sudo apt-get install -y build-essential
110
+ fi
89
111
- name : Set RUSTFLAGS for AVX
90
112
if : matrix.feature != ''
91
113
run : echo "RUSTFLAGS=$RUSTFLAGS -C target-feature=+${{ matrix.feature }}" >> $GITHUB_ENV
92
114
- name : Run benchmark
93
115
run : |
94
116
python3 ./scripts/install.py
95
117
cargo run --bin=dev-setup --release
96
- cargo run --bin=gkr --release -- -t ${{ matrix.os == 'macos-latest' && 2 || 16 }} -f ${{ matrix.field }}
118
+ cargo run --bin=gkr --release -- -t ${{ matrix.os == 'macos-latest' && 2 || 16 }} -f ${{ matrix.field }}
0 commit comments