Skip to content

Commit 397fafa

Browse files
committed
Don't require git user to be configured for testing rust
1 parent af99a36 commit 397fafa

File tree

3 files changed

+4
-13
lines changed

3 files changed

+4
-13
lines changed

.github/workflows/nightly-cranelift.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,7 @@ jobs:
2121
EOF
2222
2323
- name: Prepare dependencies
24-
run: |
25-
git config --global user.email "user@example.com"
26-
git config --global user.name "User"
27-
./y.rs prepare
24+
run: ./y.rs prepare
2825

2926
- name: Patch Cranelift
3027
run: |

.github/workflows/rustc.yml

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,7 @@ jobs:
2424
EOF
2525
2626
- name: Prepare dependencies
27-
run: |
28-
git config --global user.email "user@example.com"
29-
git config --global user.name "User"
30-
./y.rs prepare
27+
run: ./y.rs prepare
3128

3229
- name: Test
3330
run: ./scripts/test_bootstrap.sh
@@ -51,10 +48,7 @@ jobs:
5148
EOF
5249
5350
- name: Prepare dependencies
54-
run: |
55-
git config --global user.email "user@example.com"
56-
git config --global user.name "User"
57-
./y.rs prepare
51+
run: ./y.rs prepare
5852

5953
- name: Test
6054
run: ./scripts/test_rustc_tests.sh

scripts/setup_rust_fork.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ git fetch
1010
git checkout -- .
1111
git checkout "$(rustc -V | cut -d' ' -f3 | tr -d '(')"
1212

13-
git am ../patches/*-sysroot-*.patch
13+
git -c user.name=Dummy -c user.email=dummy@example.com am ../patches/*-sysroot-*.patch
1414

1515
git apply - <<EOF
1616
diff --git a/library/alloc/Cargo.toml b/library/alloc/Cargo.toml

0 commit comments

Comments
 (0)