Don't require git user to be configured for testing rust

This commit is contained in:
bjorn3 2023-01-13 13:51:51 +00:00
parent af99a369c4
commit 397fafa160
3 changed files with 4 additions and 13 deletions

View File

@ -21,10 +21,7 @@ jobs:
EOF
- name: Prepare dependencies
run: |
git config --global user.email "user@example.com"
git config --global user.name "User"
./y.rs prepare
run: ./y.rs prepare
- name: Patch Cranelift
run: |

View File

@ -24,10 +24,7 @@ jobs:
EOF
- name: Prepare dependencies
run: |
git config --global user.email "user@example.com"
git config --global user.name "User"
./y.rs prepare
run: ./y.rs prepare
- name: Test
run: ./scripts/test_bootstrap.sh
@ -51,10 +48,7 @@ jobs:
EOF
- name: Prepare dependencies
run: |
git config --global user.email "user@example.com"
git config --global user.name "User"
./y.rs prepare
run: ./y.rs prepare
- name: Test
run: ./scripts/test_rustc_tests.sh

View File

@ -10,7 +10,7 @@ git fetch
git checkout -- .
git checkout "$(rustc -V | cut -d' ' -f3 | tr -d '(')"
git am ../patches/*-sysroot-*.patch
git -c user.name=Dummy -c user.email=dummy@example.com am ../patches/*-sysroot-*.patch
git apply - <<EOF
diff --git a/library/alloc/Cargo.toml b/library/alloc/Cargo.toml