File tree 1 file changed +29
-1
lines changed
1 file changed +29
-1
lines changed Original file line number Diff line number Diff line change 61
61
rm -rf build
62
62
cd ..
63
63
64
+ - name : Install diffoscope
65
+ run : |
66
+ sudo apt-get update
67
+ sudo apt-get install -y diffoscope
68
+
64
69
- name : Compare builds using git diff
65
70
run : |
66
71
# Go back to the root directory
73
78
fi
74
79
75
80
# 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
You can’t perform that action at this time.
0 commit comments