|
23 | 23 | include:
|
24 | 24 | - channel: nightly
|
25 | 25 | target: i686-pc-windows-gnu
|
26 |
| - mingw-7z-path: mingw |
27 | 26 |
|
28 | 27 | env:
|
29 | 28 | CFG_RELEASE_CHANNEL: nightly
|
|
37 | 36 | - name: checkout
|
38 | 37 | uses: actions/checkout@v2
|
39 | 38 |
|
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 |
| - |
76 | 39 | # Run build
|
77 | 40 | - name: setup
|
78 | 41 | uses: actions-rs/toolchain@v1
|
|
0 commit comments