From 3e9e2fbe5f5fa6fce1e715d009a337ddba60f620 Mon Sep 17 00:00:00 2001 From: Lzu Tao Date: Fri, 31 May 2024 09:57:05 +0700 Subject: [PATCH] ci: mingw: use rust-mingw --- .github/workflows/ci.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 1e17af2f..1c697d46 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -40,6 +40,10 @@ jobs: rustup toolchain install stable-${{ matrix.target }} rustup default stable-${{ matrix.target }} - name: Check out MinGW toolchain + # NOTE: The self-contained rust-mingw is enough for linking to Windows. + # Full MinGW toolchain is only needed when compiling C code. + #if: matrix.mingw_dir + if: false run: | set -x curl -sSf -O "$MIRRORS_BASE/${{ matrix.archive }}" @@ -48,7 +52,6 @@ jobs: ls -l "/c/mingw/${{ matrix.mingw_dir }}/bin" echo "C:\mingw\${{ matrix.mingw_dir }}\bin" >> $GITHUB_PATH shell: bash - if: matrix.mingw_dir - run: cargo fetch - run: cargo build - run: cargo build --features nightly