@@ -34,20 +34,32 @@ jobs:
34
34
echo "Present Directory : `pwd`"
35
35
echo "work contents : `ls ..`"
36
36
37
- - name : Build source 1
37
+ - name : Build and store binaries from source 1
38
38
run : |
39
39
echo "Repo storage available: `df -h .`"
40
40
cd ../buildA
41
41
SOURCE_DIR=$(dirname $(find . -maxdepth 2 -name x.py))
42
42
$SOURCE_DIR/configure --set rust.channel=nightly
43
- $SOURCE_DIR/x.py build --stage 1 -j8
43
+ $SOURCE_DIR/x.py build --stage 1 -j$(($(nproc)*2/3))
44
+ rm -rf $SOURCE_DIR
45
+ STAGE1_DIR=`find build -name stage1`
46
+ cp -r "$STAGE1_DIR" .
47
+ echo "Contents stage 1 dir : `ls stage1`"
48
+ rm -rf build
44
49
45
- - name : Build source 2
50
+ - name : Build and store binaries from source 2
46
51
run : |
47
52
cd ../buildA_extended
53
+ echo "Repo storage available: `df -h .`"
48
54
SOURCE_DIR=$(dirname $(find . -maxdepth 2 -name x.py))
49
55
$SOURCE_DIR/configure --set rust.channel=nightly
50
- $SOURCE_DIR/x.py build --stage 1 -j8
56
+ $SOURCE_DIR/x.py build --stage 1 -j$(($(nproc)*2/3))
57
+ rm -rf $SOURCE_DIR
58
+ STAGE1_DIR=`find build -name stage1`
59
+ cp -r "$STAGE1_DIR" .
60
+ echo "Contents stage 1 dir : `ls stage1`"
61
+ rm -rf build
62
+ cd ..
51
63
52
64
- name : Compare builds using git diff
53
65
run : |
61
73
fi
62
74
63
75
# Perform a diff between the two builds
64
- buildA_stage1=`find buildA/build -name stage1`
65
- buildA2_stage1=`find buildA_extended/build -name stage1`
66
- diff -r $buildA_stage1/bin $buildA2_stage1/bin || echo "Differences found!"
67
-
76
+ diff -r buildA/stage1 buildA_extended/stage1 || echo "Differences found!"
0 commit comments