Skip to content

Commit c32aeac

Browse files
committed
revert build.gradle to 0.3.5
1 parent 737e37a commit c32aeac

2 files changed

Lines changed: 23 additions & 4 deletions

File tree

.github/workflows/build-and-publish.yml

Lines changed: 21 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,27 @@ jobs:
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

build.gradle.kts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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",

0 commit comments

Comments
 (0)