Skip to content

Commit 3af5b83

Browse files
authored
Modify ASM compilation to use .bin output files
Updated the ASM compilation process to output .bin files and clean up object files after compilation.
1 parent 8e53b5a commit 3af5b83

1 file changed

Lines changed: 13 additions & 6 deletions

File tree

.github/workflows/avis-master-chain.yml

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,19 @@ jobs:
2727

2828
- name: FORGE: Compile All ASM
2929
run: |
30-
find . -maxdepth 2 -name "*.asm" -exec sh -c '
31-
echo "FORGE: Compiling $1"
32-
nasm -f elf64 "$1" -o "${1%.asm}.o"
33-
ld "${1%.asm}.o" -o "${1%.asm}"
34-
chmod +x "${1%.asm}"
35-
' _ {} \;
30+
find . -maxdepth 2 -name "*.asm" | while read -r f; do
31+
# Use .bin suffix to avoid directory name collisions
32+
OUT_NAME="${f%.asm}.bin"
33+
echo "FORGE: Compiling $f -> $OUT_NAME"
34+
35+
nasm -f elf64 "$f" -o "${f%.asm}.o"
36+
ld "${f%.asm}.o" -o "$OUT_NAME"
37+
chmod +x "$OUT_NAME"
38+
39+
# Optional: Clean up the object file immediately
40+
rm "${f%.asm}.o"
41+
done
42+
3643
3744
- name: EXECUTE: Generate V2 Sitemap
3845
run: |

0 commit comments

Comments
 (0)