@@ -130,15 +130,13 @@ jobs:
130
130
- name : add extra environment variables
131
131
run : src/ci/scripts/setup-environment.sh
132
132
env :
133
- # Since it's not possible to merge `${{ matrix.env }}` with the other
134
- # variables in `job.<name>.env`, the variables defined in the matrix
135
- # are passed to the `setup-environment.sh` script encoded in JSON,
136
- # which then uses log commands to actually set them.
137
- EXTRA_VARIABLES : ${{ toJson(matrix.env) }}
138
-
139
- - name : ensure the channel matches the target branch
140
- run : src/ci/scripts/verify-channel.sh
141
-
133
+ EXTRA_VARIABLES : " ${{ toJson(matrix.env) }}"
134
+ if : success() && !env.SKIP_JOB
135
+ - name : decide whether to skip this job
136
+ run : src/ci/scripts/should-skip-this.sh
137
+ if : success() && !env.SKIP_JOB
138
+ - name : free up space in github runner
139
+ run : " sudo docker rmi $(docker image ls -aq) >/dev/null 2>&1 || true\n sudo rm -rf \\\n /usr/share/dotnet /usr/local/lib/android /opt/ghc \\\n /usr/local/share/powershell /usr/share/swift /usr/local/.ghcup \\\n /usr/lib/jvm || true\n echo \" some directories deleted\"\n "
142
140
- name : collect CPU statistics
143
141
run : src/ci/scripts/collect-cpu-stats.sh
144
142
@@ -271,11 +269,8 @@ jobs:
271
269
- name : decide whether to skip this job
272
270
run : src/ci/scripts/should-skip-this.sh
273
271
if : success() && !env.SKIP_JOB
274
- - name : configure GitHub Actions to kill the build when outdated
275
- uses : rust-lang/simpleinfra/github-actions/cancel-outdated-builds@master
276
- with :
277
- github_token : " ${{ secrets.github_token }}"
278
- if : " success() && !env.SKIP_JOB && github.ref != 'refs/heads/try' && github.ref != 'refs/heads/try-perf'"
272
+ - name : free up space in github runner
273
+ run : " sudo docker rmi $(docker image ls -aq) >/dev/null 2>&1 || true\n sudo rm -rf \\\n /usr/share/dotnet /usr/local/lib/android /opt/ghc \\\n /usr/local/share/powershell /usr/share/swift /usr/local/.ghcup \\\n /usr/lib/jvm || true\n echo \" some directories deleted\"\n "
279
274
- name : collect CPU statistics
280
275
run : src/ci/scripts/collect-cpu-stats.sh
281
276
if : success() && !env.SKIP_JOB
@@ -658,9 +653,8 @@ jobs:
658
653
- name : decide whether to skip this job
659
654
run : src/ci/scripts/should-skip-this.sh
660
655
if : success() && !env.SKIP_JOB
661
- - name : ensure the channel matches the target branch
662
- run : src/ci/scripts/verify-channel.sh
663
- if : success() && !env.SKIP_JOB
656
+ - name : free up space in github runner
657
+ run : " sudo docker rmi $(docker image ls -aq) >/dev/null 2>&1 || true\n sudo rm -rf \\\n /usr/share/dotnet /usr/local/lib/android /opt/ghc \\\n /usr/local/share/powershell /usr/share/swift /usr/local/.ghcup \\\n /usr/lib/jvm || true\n echo \" some directories deleted\"\n "
664
658
- name : collect CPU statistics
665
659
run : src/ci/scripts/collect-cpu-stats.sh
666
660
if : success() && !env.SKIP_JOB
@@ -788,9 +782,8 @@ jobs:
788
782
- name : decide whether to skip this job
789
783
run : src/ci/scripts/should-skip-this.sh
790
784
if : success() && !env.SKIP_JOB
791
- - name : ensure the channel matches the target branch
792
- run : src/ci/scripts/verify-channel.sh
793
- if : success() && !env.SKIP_JOB
785
+ - name : free up space in github runner
786
+ run : " sudo docker rmi $(docker image ls -aq) >/dev/null 2>&1 || true\n sudo rm -rf \\\n /usr/share/dotnet /usr/local/lib/android /opt/ghc \\\n /usr/local/share/powershell /usr/share/swift /usr/local/.ghcup \\\n /usr/lib/jvm || true\n echo \" some directories deleted\"\n "
794
787
- name : collect CPU statistics
795
788
run : src/ci/scripts/collect-cpu-stats.sh
796
789
if : success() && !env.SKIP_JOB
0 commit comments