Skip to content

Commit a2a3335

Browse files
committed
Use diffscope and upload stage 1 binaries
1 parent a09d499 commit a2a3335

File tree

1 file changed

+29
-1
lines changed

1 file changed

+29
-1
lines changed

.github/workflows/repro_check.yml

+29-1
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,11 @@ jobs:
6161
rm -rf build
6262
cd ..
6363
64+
- name: Install diffoscope
65+
run: |
66+
sudo apt-get update
67+
sudo apt-get install -y diffoscope
68+
6469
- name: Compare builds using git diff
6570
run: |
6671
# Go back to the root directory
@@ -73,4 +78,27 @@ jobs:
7378
fi
7479
7580
# Perform a diff between the two builds
76-
diff -r buildA/stage1 buildA_extended/stage1 || echo "Differences found!"
81+
diffoscope buildA/stage1 buildA_extended/stage1 > diffoscope_output.txt || echo "Differences found!"
82+
83+
- name: Upload diffoscope output
84+
uses: actions/upload-artifact@v4
85+
with:
86+
name: diffoscope-report
87+
path: diffoscope_output.txt
88+
89+
- name: Archive buildA and buildA_extended
90+
run: |
91+
tar -czf buildA.tar.gz buildA
92+
tar -czf buildA_extended.tar.gz buildA_extended
93+
94+
- name: Upload buildA artifact
95+
uses: actions/upload-artifact@v4
96+
with:
97+
name: buildA
98+
path: buildA.tar.gz
99+
100+
- name: Upload buildA_extended artifact
101+
uses: actions/upload-artifact@v4
102+
with:
103+
name: buildA_extended
104+
path: buildA_extended.tar.gz

0 commit comments

Comments
 (0)