about summary refs log tree commit diff
diff options
context:
space:
mode:
authorGuillaume Gomez <guillaume1.gomez@gmail.com>2022-06-29 15:38:13 +0200
committerGuillaume Gomez <guillaume1.gomez@gmail.com>2022-06-29 15:38:13 +0200
commit9a42e6b47412d09faaab685ab0a0706fbe13ba2e (patch)
treef6c61e9dd9729ac1af6d18b7ca6a97853904f0b1
parented37ed7cb8dcb2855cd95166d45b753ffab112dc (diff)
downloadrust-9a42e6b47412d09faaab685ab0a0706fbe13ba2e.tar.gz
rust-9a42e6b47412d09faaab685ab0a0706fbe13ba2e.zip
Clean up environment variables
-rw-r--r--.github/workflows/ci.yml32
1 files changed, 4 insertions, 28 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 3dbf8d92215..97ce8e31f87 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -4,6 +4,10 @@ on:
   - push
   - pull_request
 
+env:
+  # Enable backtraces for easier debugging
+  RUST_BACKTRACE: 1
+
 jobs:
   build:
     runs-on: ubuntu-latest
@@ -102,46 +106,18 @@ jobs:
 
     - name: Test std_tests
       run: |
-        # Enable backtraces for easier debugging
-        export RUST_BACKTRACE=1
-
-        # Reduce amount of benchmark runs as they are slow
-        export COMPILE_RUNS=2
-        export RUN_RUNS=2
-
         ./test.sh --release --clean --build-sysroot --std-tests ${{ matrix.libgccjit_version.extra }}
 
     - name: Test test_libcore
       run: |
-        # Enable backtraces for easier debugging
-        export RUST_BACKTRACE=1
-
-        # Reduce amount of benchmark runs as they are slow
-        export COMPILE_RUNS=2
-        export RUN_RUNS=2
-
         ./test.sh --release --test-libcore ${{ matrix.libgccjit_version.extra }}
 
     - name: Test extended_sysroot_tests
       run: |
-        # Enable backtraces for easier debugging
-        export RUST_BACKTRACE=1
-
-        # Reduce amount of benchmark runs as they are slow
-        export COMPILE_RUNS=2
-        export RUN_RUNS=2
-
         ./test.sh --release --extended-tests ${{ matrix.libgccjit_version.extra }}
 
     - name: Test test_rustc
       run: |
-        # Enable backtraces for easier debugging
-        export RUST_BACKTRACE=1
-
-        # Reduce amount of benchmark runs as they are slow
-        export COMPILE_RUNS=2
-        export RUN_RUNS=2
-
         ./test.sh --release --test-rustc ${{ matrix.libgccjit_version.extra }}
 
   duplicates: