File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 6363
6464 - name : Verify native library was built
6565 run : |
66- echo "Checking for native library..."
67- ls -la build/natives/${{ matrix.platform }}-${{ matrix.arch }}/
66+ FILE_PATH="build/natives/${{ matrix.platform }}-${{ matrix.arch }}/${{ matrix.lib }}"
67+ echo "Checking for native library at $FILE_PATH..."
68+
69+ if [ ! -f "$FILE_PATH" ]; then
70+ echo "Error: Native library not found!"
71+ exit 1
72+ fi
73+
74+ # Vérification de la taille (102400 octets = 100ko)
75+ FILE_SIZE=$(wc -c < "$FILE_PATH")
76+ MIN_SIZE=102400
77+
78+ echo "File size: $FILE_SIZE bytes"
79+
80+ if [ "$FILE_SIZE" -lt "$MIN_SIZE" ]; then
81+ echo "Error: File size is too small ($FILE_SIZE bytes). Expected at least $MIN_SIZE bytes."
82+ exit 1
83+ fi
84+
85+ echo "✓ File exists and size is valid."
86+ ls -la "$FILE_PATH"
6887 shell : bash
6988
7089 - name : Upload natives artifact
Original file line number Diff line number Diff line change @@ -158,10 +158,10 @@ val compileFlecsNative by tasks.registering(Exec::class) {
158158 " -Ofast" ,
159159 archFlag,
160160 " -flto" ,
161- " -fno-semantic-interposition" ,
162- " -fno-plt" ,
163161 " -fomit-frame-pointer" ,
164162 " -funroll-loops" ,
163+ " -fno-semantic-interposition" ,
164+ " -fno-plt" ,
165165 " -std=c99" ,
166166 " -DFLECS_SHARED" ,
167167 " -DNDEBUG" ,
You can’t perform that action at this time.
0 commit comments