Skip to content

Commit 6a448e0

Browse files
committed
Don't check git changes in CI
1 parent 623e1d6 commit 6a448e0

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

.github/workflows/rust.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,4 @@ jobs:
2323
- name: pico rom symlink
2424
run: ln -f -s ../library/blargg_test_roms/cpu_instrs/cpu_instrs.gb pico/rom.bin
2525
- name: presubmit
26-
run: ./presubmit
26+
run: SKIP_GIT_CHECK=1 ./presubmit

presubmit

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,13 @@ set -ex
55
# Download the test roms
66
$( dirname $0 )/library/download_test_roms
77

8-
CHANGES=$( git diff )
9-
if [ "$CHANGES" != "" ]; then
10-
echo "Untracked Changes"
11-
exit 1;
12-
fi;
8+
if [ -z $SKIP_GIT_CHECK ]; then
9+
CHANGES=$( git diff )
10+
if [ "$CHANGES" != "" ]; then
11+
echo "Untracked Changes"
12+
exit 1;
13+
fi
14+
fi
1315

1416
cargo build --all-features
1517
cargo build

0 commit comments

Comments
 (0)