@@ -22,20 +22,10 @@ jobs:
2222 with :
2323 python-version : ' 3.x' # Adjust to the version you need
2424
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-
3625 - name : Build and store buildA binaries
3726 run : |
38- echo "Repo storage available: `df -h .`"
27+ mkdir ../buildA
28+ cp -r "$(pwd)" ../buildA
3929 pushd ../buildA
4030 SOURCE_DIR=$(dirname $(find . -maxdepth 2 -name x.py))
4131 $SOURCE_DIR/configure --set rust.channel=nightly
4939
5040 - name : Build and store buildA_extended binaries
5141 run : |
52- echo "Repo storage available: `df -h .`"
42+ mkdir ../buildA_extended
43+ cp -r "$(pwd)" ../buildA_extended
5344 pushd ../buildA_extended
5445 SOURCE_DIR=$(dirname $(find . -maxdepth 2 -name x.py))
5546 $SOURCE_DIR/configure --set rust.channel=nightly
@@ -61,13 +52,10 @@ jobs:
6152 rm -rf build
6253 popd
6354
64- - name : Install diffoscope
55+ - name : Compare builds and archive artifacts
6556 run : |
6657 sudo apt-get update
6758 sudo apt-get install -y diffoscope
68-
69- - name : Compare builds
70- run : |
7159 # Ensure the directories exist
7260 if [[ ! -d "../buildA" || ! -d "../buildA_extended" ]]; then
7361 echo "Error: Build directories not found!"
@@ -77,17 +65,15 @@ jobs:
7765 # Perform a diff between the two builds
7866 diffoscope ../buildA/stage2 ../buildA_extended/stage2 > diffoscope_output.txt || echo "Differences found!"
7967
68+ tar -czf buildA.tar.gz ../buildA
69+ tar -czf buildA_extended.tar.gz ../buildA_extended
70+
8071 - name : Upload diffoscope output
8172 uses : actions/upload-artifact@v4
8273 with :
8374 name : diffoscope-report
8475 path : diffoscope_output.txt
8576
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-
9177 - name : Upload buildA artifact
9278 uses : actions/upload-artifact@v4
9379 with :
0 commit comments