@@ -28,25 +28,34 @@ jobs:
2828 run : zig version
2929
3030 - name : Check formatting
31- run : zig fmt --check .
32-
33- - name : Build project
34- run : zig build
35-
36- - name : Run tests
37- run : ./zig-out/bin/zevm-test
31+ run : zig fmt --check src/
3832
3933 - name : Install dependencies
34+ run : make install-deps
35+
36+ - name : Verify blst headers (macOS)
37+ if : runner.os == 'macOS'
4038 run : |
41- if [ "${{ runner.os }}" == "Linux" ]; then
42- sudo apt-get update
43- sudo apt-get install -y libsecp256k1-dev libssl-dev
44- elif [ "${{ runner.os }}" == "macOS" ]; then
45- brew install libsecp256k1 openssl
39+ if [ -f /tmp/blst/bindings/blst.h ]; then
40+ echo "✓ blst.h found at /tmp/blst/bindings/blst.h"
41+ ls -la /tmp/blst/bindings/blst.h
42+ elif [ -f /opt/homebrew/include/blst/blst.h ]; then
43+ echo "✓ blst.h found at /opt/homebrew/include/blst/blst.h"
44+ elif [ -f /usr/local/include/blst/blst.h ]; then
45+ echo "✓ blst.h found at /usr/local/include/blst/blst.h"
46+ else
47+ echo "✗ blst.h not found in expected locations"
48+ find /tmp/blst -name "blst.h" 2>/dev/null || echo "No blst.h in /tmp/blst"
49+ exit 1
4650 fi
4751
48- - name : Run precompile unit tests
49- run : zig test src/precompile/tests.zig -I src
52+ - name : Build project
53+ run : make build
54+
55+ - name : Run tests
56+ env :
57+ DYLD_LIBRARY_PATH : /opt/homebrew/lib:/usr/local/lib
58+ run : make test
5059
5160 - name : Run examples
5261 run : |
7685 version : ' 0.15.1'
7786
7887 - name : Format check
79- run : zig fmt --check .
88+ run : zig fmt --check src/
8089
8190 security :
8291 name : Security Scan
@@ -91,8 +100,12 @@ jobs:
91100 with :
92101 version : ' 0.15.1'
93102
103+ - name : Install dependencies
104+ run : make install-deps
105+
94106 - name : Build with security checks
95107 run : |
108+ make build
96109 zig build -Doptimize=ReleaseSafe
97110 zig build -Doptimize=ReleaseFast
98111
@@ -110,8 +123,13 @@ jobs:
110123 with :
111124 version : ' 0.15.1'
112125
126+ - name : Install dependencies
127+ run : make install-deps
128+
113129 - name : Build optimized version
114- run : zig build -Doptimize=ReleaseFast
130+ run : |
131+ make build
132+ zig build -Doptimize=ReleaseFast
115133
116134 - name : Run benchmarks
117135 run : ./zig-out/bin/zevm-bench
0 commit comments