Skip to content

Commit 6b2040e

Browse files
authored
Merge branch 'master' into mem_func
2 parents 2ea93a1 + c333d37 commit 6b2040e

39 files changed

+1574
-2371
lines changed

.github/workflows/build.yml

+17-15
Original file line numberDiff line numberDiff line change
@@ -103,28 +103,27 @@ jobs:
103103
104104
mode='${{matrix.mode}}'
105105
config_args='--compilers /compilers --max-errors 0 --verbose --version ${{matrix.version}}'
106-
case "$mode" in
107-
'link')
108-
config_args="--map --require-protos $config_args"
109-
;;
110-
'diff') ;;
111-
*) exit 1 ;;
112-
esac
113-
echo "$config_args" | xargs python configure.py
106+
107+
function run_configure {
108+
echo "$config_args" | xargs python configure.py
109+
}
114110
115111
case "$mode" in
116112
'link')
113+
config_args="--map --require-protos $config_args"
114+
run_configure
117115
ninja || ninja diff
118116
;;
119117
'diff')
120118
root='build/${{matrix.version}}'
121119
expected="$root/expected-report.json"
122-
actual="$root/report.json"
120+
current="$root/report.json"
123121
changes="$root/changes-report.json"
124-
head=$(git rev-parse HEAD)
122+
head="$(git rev-parse HEAD)"
125123
126-
ninja all_source
127-
objdiff-cli report generate -o "$actual"
124+
function run_ninja {
125+
ninja all_source "$current"
126+
}
128127
129128
case '${{github.event_name}}' in
130129
'pull_request')
@@ -137,11 +136,14 @@ jobs:
137136
*) exit 1 ;;
138137
esac
139138
140-
ninja all_source
141-
objdiff-cli report generate -o "$expected"
139+
run_configure
140+
run_ninja
141+
cp "$current" "$expected"
142142
143143
git checkout "$head"
144-
objdiff-cli report changes -o "$changes" "$expected" "$actual"
144+
run_ninja
145+
146+
build/tools/objdiff-cli report changes -o "$changes" "$expected" "$current"
145147
python tools/diff_changes.py "$changes"
146148
status="$?"
147149
exit "$status"

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ build/
3939
*.map
4040
*.dol
4141
*.pdb
42+
/result
4243

4344
# Temporary files
4445
*.swp

.nix/decomp-toolkit.nix

+2-3
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,13 @@
77

88
rustPlatform.buildRustPackage rec {
99
pname = "decomp-toolkit";
10-
version = "0.9.3";
10+
version = "0.9.6";
1111

1212
src = fetchFromGitHub {
1313
owner = "encounter";
1414
repo = "decomp-toolkit";
1515
rev = "v${version}";
16-
hash = "sha256-5EWZwAQNso58WIWKtXNiDDBjMUYYArdRREtyD0bXurY=";
16+
hash = "sha256-mgdohsZ0ZkTSg/UsGVBPmtlJFa1rKMG6aa4XG1S9F4Y=";
1717
};
1818

1919
nativeBuildInputs = [
@@ -22,7 +22,6 @@ rustPlatform.buildRustPackage rec {
2222

2323
cargoLock.lockFile = "${src}/Cargo.lock";
2424
cargoLock.outputHashes."ar-0.8.0" = "sha256-OLyo+cRRWMsI1i8NsgsBKRJH1XsKW1CculQnJ/wcya0=";
25-
cargoLock.outputHashes."nod-1.2.0" = "sha256-M7jSBo1Dqrhy/F0osoUtTMNm2BkFnRy2MOmkTs1pvdM=";
2625
cargoLock.outputHashes."objdiff-core-2.0.0-alpha.3" = "sha256-E597zRlSpxrTGino7jqoQmyxWkLYXT1P6U2PRolm0Ek=";
2726
cargoLock.outputHashes."ppc750cl-0.3.0" = "sha256-nMJk+rgu7Ydi2VZfodJk0kBz9xLLVBVz0vEZPee8Q6M=";
2827

0 commit comments

Comments
 (0)