Skip to content

Commit aa59f92

Browse files
ci: remove no-longer needed mingw setup
1 parent cac9971 commit aa59f92

File tree

1 file changed

+0
-37
lines changed

1 file changed

+0
-37
lines changed

Diff for: .github/workflows/windows.yml

-37
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ jobs:
2323
include:
2424
- channel: nightly
2525
target: i686-pc-windows-gnu
26-
mingw-7z-path: mingw
2726

2827
env:
2928
CFG_RELEASE_CHANNEL: nightly
@@ -37,42 +36,6 @@ jobs:
3736
- name: checkout
3837
uses: actions/checkout@v2
3938

40-
# The Windows runners do not (yet) have a proper msys/mingw environment
41-
# pre-configured like AppVeyor does, though they will likely be added in the future.
42-
# https://github.com/actions/virtual-environments/issues/30
43-
#
44-
# In the interim, this ensures mingw32 is installed and available on the PATH
45-
# for the i686-pc-windows-gnu target. This approach is used because it's common in
46-
# other rust projects and there are issues/limitations with the msys2 chocolatey nuget
47-
# package and numworks/setup-msys2 action.
48-
# https://github.com/rust-lang/rust/blob/master/src/ci/scripts/install-mingw.sh#L59
49-
# https://github.com/rust-lang/rustup/blob/master/appveyor.yml
50-
#
51-
# Use GitHub Actions cache support to avoid downloading the .7z file every time
52-
# to be cognizant of the AWS egress cost impacts
53-
# https://help.github.com/en/actions/automating-your-workflow-with-github-actions/caching-dependencies-to-speed-up-workflows#usage-limits-and-eviction-policy
54-
- name: cache mingw.7z
55-
id: cache-mingw
56-
with:
57-
path: ${{ matrix.mingw-7z-path }}
58-
key: ${{ matrix.channel }}-${{ matrix.target }}-mingw
59-
uses: actions/cache@v1
60-
if: matrix.target == 'i686-pc-windows-gnu' && matrix.channel == 'nightly'
61-
- name: download mingw.7z
62-
run: |
63-
# Disable the download progress bar which can cause perf issues
64-
$ProgressPreference = "SilentlyContinue"
65-
md -Force ${{ matrix.mingw-7z-path }}
66-
Invoke-WebRequest https://ci-mirrors.rust-lang.org/rustc/i686-6.3.0-release-posix-dwarf-rt_v5-rev2.7z -OutFile ${{ matrix.mingw-7z-path }}/mingw.7z
67-
if: matrix.target == 'i686-pc-windows-gnu' && matrix.channel == 'nightly' && steps.cache-mingw.outputs.cache-hit != 'true'
68-
shell: powershell
69-
- name: install mingw32
70-
run: |
71-
7z x -y ${{ matrix.mingw-7z-path }}/mingw.7z -oC:\msys64 | Out-Null
72-
echo "C:\msys64\mingw32\bin" >> $GITHUB_PATH
73-
if: matrix.target == 'i686-pc-windows-gnu' && matrix.channel == 'nightly'
74-
shell: powershell
75-
7639
# Run build
7740
- name: setup
7841
uses: actions-rs/toolchain@v1

0 commit comments

Comments
 (0)