Verify ROM hashes for all CI test projects (#1384)

Ucity and Libbet build files in a nondeterministic order, which
we have to patch to sort consistently for reproducible builds.
This commit is contained in:
Sylvie
2024-03-28 22:37:33 -04:00
committed by GitHub
parent 9dac583e45
commit 7326cc6875
4 changed files with 34 additions and 11 deletions

View File

@@ -1,8 +1,17 @@
diff --git a/Makefile b/Makefile
index 22c65e9..e7c888d 100644
index 22c65e9..fce4930 100644
--- a/Makefile
+++ b/Makefile
@@ -51,7 +51,7 @@ ASMFILES := $(foreach dir,$(SOURCE_ALL_DIRS),$(wildcard $(dir)/*.asm))
@@ -44,14 +44,14 @@ BIN := $(NAME).$(EXT)
COMPAT_BIN := $(NAME)_compat.$(EXT)
# List of relative paths to all folders and subfolders with code or data.
-SOURCE_ALL_DIRS := $(shell find $(SOURCE) -type d -print)
+SOURCE_ALL_DIRS := $(sort $(shell find $(SOURCE) -type d -print))
# All files with extension asm are assembled.
-ASMFILES := $(foreach dir,$(SOURCE_ALL_DIRS),$(wildcard $(dir)/*.asm))
+ASMFILES := $(foreach dir,$(SOURCE_ALL_DIRS),$(sort $(wildcard $(dir)/*.asm)))
# List of include directories: All source and data folders.
# A '/' is appended to the path.