Skip to content

Commit 4272cba

Browse files
committed
temp
1 parent 474ddc5 commit 4272cba

File tree

1 file changed

+13
-14
lines changed

1 file changed

+13
-14
lines changed

.github/workflows/repro_check.yml

Lines changed: 13 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -36,47 +36,46 @@ jobs:
3636
- name: Build and store binaries from source 1
3737
run: |
3838
echo "Repo storage available: `df -h .`"
39-
cd ../buildA
39+
pushd ../buildA
4040
SOURCE_DIR=$(dirname $(find . -maxdepth 2 -name x.py))
4141
$SOURCE_DIR/configure --set rust.channel=nightly
42-
$SOURCE_DIR/x.py build --stage 2 -j$(($(nproc)*2/3))
42+
mkdir stage2
43+
echo "build1" > stage2/build.txt
4344
rm -rf $SOURCE_DIR
44-
STAGE1_DIR=`find build -name stage2`
45-
cp -r "$STAGE1_DIR" .
4645
echo "Contents stage 2 dir : `ls stage2`"
4746
rm -rf build
47+
popd
4848
4949
- name: Build and store binaries from source 2
5050
run: |
51-
cd ../buildA_extended
5251
echo "Repo storage available: `df -h .`"
52+
pushd ../buildA_extended
5353
SOURCE_DIR=$(dirname $(find . -maxdepth 2 -name x.py))
5454
$SOURCE_DIR/configure --set rust.channel=nightly
55-
$SOURCE_DIR/x.py build --stage 2 -j$(($(nproc)*2/3))
55+
mkdir stage2
56+
echo "buildA_extended" > stage2/build.txt
5657
rm -rf $SOURCE_DIR
57-
STAGE1_DIR=`find build -name stage2`
58-
cp -r "$STAGE1_DIR" .
5958
echo "Contents stage 2 dir : `ls stage2`"
6059
rm -rf build
60+
popd
6161
6262
- name: Install diffoscope
6363
run: |
6464
sudo apt-get update
6565
sudo apt-get install -y diffoscope
6666
67-
- name: Compare builds using git diff
67+
- name: Compare builds
6868
run: |
6969
# Go back to the root directory
70-
cd ..
7170
7271
# Ensure the directories exist
73-
if [[ ! -d "buildA" || ! -d "buildA_extended" ]]; then
72+
if [[ ! -d "../buildA" || ! -d "../buildA_extended" ]]; then
7473
echo "Error: Build directories not found!"
7574
exit 1
7675
fi
7776
7877
# Perform a diff between the two builds
79-
diffoscope buildA/stage2 buildA_extended/stage2 > diffoscope_output.txt || echo "Differences found!"
78+
diffoscope ../buildA/stage2 ../buildA_extended/stage2 > diffoscope_output.txt || echo "Differences found!"
8079
8180
- name: Upload diffoscope output
8281
uses: actions/upload-artifact@v4
@@ -86,8 +85,8 @@ jobs:
8685

8786
- name: Archive buildA and buildA_extended
8887
run: |
89-
tar -czf buildA.tar.gz buildA
90-
tar -czf buildA_extended.tar.gz buildA_extended
88+
tar -czf buildA.tar.gz ../buildA
89+
tar -czf buildA_extended.tar.gz ../buildA_extended
9190
9291
- name: Upload buildA artifact
9392
uses: actions/upload-artifact@v4

0 commit comments

Comments
 (0)