10 runs-on: windows-latest
11 name: (${{ matrix.target }}, nightly)
13 # https://help.github.com/en/actions/getting-started-with-github-actions/about-github-actions#usage-limits
14 # There's a limit of 60 concurrent jobs across all repos in the rust-lang organization.
15 # In order to prevent overusing too much of that 60 limit, we throttle the
16 # number of rustfmt jobs that will run concurrently.
23 x86_64-pc-windows-gnu,
24 x86_64-pc-windows-msvc,
28 # The Windows runners have autocrlf enabled by default
29 # which causes failures for some of rustfmt's line-ending sensitive tests
30 - name: disable git eol translation
31 run: git config --global core.autocrlf false
33 uses: actions/checkout@v2
36 - name: Install Rustup using win.rustup.rs
38 # Disable the download progress bar which can cause perf issues
39 $ProgressPreference = "SilentlyContinue"
40 Invoke-WebRequest https://win.rustup.rs/ -OutFile rustup-init.exe
41 .\rustup-init.exe -y --default-host=x86_64-pc-windows-msvc --default-toolchain=none
43 rustup target add ${{ matrix.target }}
46 - name: Add mingw32 to path for i686-gnu
48 echo "C:\msys64\mingw32\bin" >> $GITHUB_PATH
49 if: matrix.target == 'i686-pc-windows-gnu' && matrix.channel == 'nightly'
52 - name: Add mingw64 to path for x86_64-gnu
53 run: echo "C:\msys64\mingw64\bin" >> $GITHUB_PATH
54 if: matrix.target == 'x86_64-pc-windows-gnu' && matrix.channel == 'nightly'