@@ -22,20 +22,10 @@ jobs:
22
22
with :
23
23
python-version : ' 3.x' # Adjust to the version you need
24
24
25
- - name : Copy source files to two separate folders
26
- run : |
27
- # Copy source files into two separate folders
28
- mkdir ../buildA ../buildA_extended
29
- # Copy the repo contents into both
30
- cp -r "$(pwd)" ../buildA
31
- cp -r "$(pwd)" ../buildA_extended
32
-
33
- echo "Present Directory : `pwd`"
34
- echo "work contents : `ls ..`"
35
-
36
25
- name : Build and store buildA binaries
37
26
run : |
38
- echo "Repo storage available: `df -h .`"
27
+ mkdir ../buildA
28
+ cp -r "$(pwd)" ../buildA
39
29
pushd ../buildA
40
30
SOURCE_DIR=$(dirname $(find . -maxdepth 2 -name x.py))
41
31
$SOURCE_DIR/configure --set rust.channel=nightly
49
39
50
40
- name : Build and store buildA_extended binaries
51
41
run : |
52
- echo "Repo storage available: `df -h .`"
42
+ mkdir ../buildA_extended
43
+ cp -r "$(pwd)" ../buildA_extended
53
44
pushd ../buildA_extended
54
45
SOURCE_DIR=$(dirname $(find . -maxdepth 2 -name x.py))
55
46
$SOURCE_DIR/configure --set rust.channel=nightly
@@ -61,13 +52,10 @@ jobs:
61
52
rm -rf build
62
53
popd
63
54
64
- - name : Install diffoscope
55
+ - name : Compare builds and archive artifacts
65
56
run : |
66
57
sudo apt-get update
67
58
sudo apt-get install -y diffoscope
68
-
69
- - name : Compare builds
70
- run : |
71
59
# Ensure the directories exist
72
60
if [[ ! -d "../buildA" || ! -d "../buildA_extended" ]]; then
73
61
echo "Error: Build directories not found!"
@@ -77,17 +65,15 @@ jobs:
77
65
# Perform a diff between the two builds
78
66
diffoscope ../buildA/stage2 ../buildA_extended/stage2 > diffoscope_output.txt || echo "Differences found!"
79
67
68
+ tar -czf buildA.tar.gz ../buildA
69
+ tar -czf buildA_extended.tar.gz ../buildA_extended
70
+
80
71
- name : Upload diffoscope output
81
72
uses : actions/upload-artifact@v4
82
73
with :
83
74
name : diffoscope-report
84
75
path : diffoscope_output.txt
85
76
86
- - name : Archive buildA and buildA_extended
87
- run : |
88
- tar -czf buildA.tar.gz ../buildA
89
- tar -czf buildA_extended.tar.gz ../buildA_extended
90
-
91
77
- name : Upload buildA artifact
92
78
uses : actions/upload-artifact@v4
93
79
with :
0 commit comments