Skip to content

Commit

Permalink
Fix calcrom. For real this time.
Browse files Browse the repository at this point in the history
  • Loading branch information
PikalaxALT committed Oct 15, 2023
1 parent 25f1c9d commit b09463c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
3 changes: 2 additions & 1 deletion .github/calcrom/calcrom.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#!/usr/bin/env python

import json
import struct
import argparse
Expand Down Expand Up @@ -41,7 +43,6 @@ def main(self):
for seg in nef.iter_segments()
if seg['p_memsz'] != 0
)
print(programs)
for command in commands:
cmdstr = command['command']
if 'mwrap mwasmarm' in cmdstr:
Expand Down
5 changes: 0 additions & 5 deletions .github/calcrom/webhook.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,6 @@ if [[ "$GITHUB_REF" != "refs/heads/main" || "$GITHUB_EVENT_NAME" != "push" ]]; t
fi

url="$1"
map_file="$2"
if [ ! -f $map_file ]; then
echo "$map_file does not exist!"
exit 1
fi

output=$(${GITHUB_WORKSPACE}/.github/calcrom/calcrom.py ${GITHUB_WORKSPACE}/build | sed -E ':a;N;$!ba;s/\r{0,1}\n/\\n/g')
curl -d "{\"username\": \"$CALCROM_DISCORD_WEBHOOK_USERNAME\", \"avatar_url\": \"$CALCROM_DISCORD_WEBHOOK_AVATAR_URL\", \"content\":\"\`\`\`$build_name progress:\\n$output\`\`\`\"}" -H "Content-Type: application/json" -X POST $url

0 comments on commit b09463c

Please sign in to comment.