Skip to content

Commit

Permalink
ci: update mingw from 6.3.0 to 12.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
tesuji committed May 18, 2024
1 parent 420a318 commit ab9d576
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 6 deletions.
18 changes: 12 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,26 +7,31 @@ on:
- '!gh-pages'
pull_request:

# rust 1.68
env:
# rust 1.68
CARGO_REGISTRIES_CRATES_IO_PROTOCOL: sparse

jobs:
build:
runs-on: windows-latest
env:
RUST_BACKTRACE: 1
MINGW_URL: https://ci-mirrors.rust-lang.org/rustc
MIRIFLAGS: -Zmiri-disable-isolation
# taken from <rustc/src/ci/scripts/install-mingw.sh>.
MIRRORS_BASE: https://ci-mirrors.rust-lang.org/rustc
strategy:
matrix:
target: [x86_64-pc-windows-msvc, i686-pc-windows-msvc, x86_64-pc-windows-gnu, i686-pc-windows-gnu]
target:
- x86_64-pc-windows-msvc
- i686-pc-windows-msvc
- x86_64-pc-windows-gnu
- i686-pc-windows-gnu
include:
- target: x86_64-pc-windows-gnu
archive: x86_64-6.3.0-release-posix-seh-rt_v5-rev2.7z
archive: i686-12.2.0-release-posix-dwarf-rt_v10-rev0.7z
mingw_dir: mingw64
- target: i686-pc-windows-gnu
archive: i686-6.3.0-release-posix-dwarf-rt_v5-rev2.7z
archive: x86_64-12.2.0-release-posix-seh-rt_v10-rev0.7z
mingw_dir: mingw32
steps:
- uses: actions/checkout@v4
Expand All @@ -37,7 +42,7 @@ jobs:
- name: Check out MinGW toolchain
run: |
set -x
curl -sSf -O "${MINGW_URL}/${{ matrix.archive }}"
curl -sSf -O "$MIRRORS_BASE/${{ matrix.archive }}"
7z x -y "${{ matrix.archive }}" -o/c/mingw
rm "${{ matrix.archive }}"
echo "C:\mingw\${{ matrix.mingw_dir }}\bin" >> $GITHUB_PATH
Expand Down Expand Up @@ -132,6 +137,7 @@ jobs:
rustup set auto-self-update disable
rustup toolchain install nightly -c clippy
rustup default nightly
- run: cargo fetch
- run: cargo clippy --all-targets --all-features -- -Dwarnings -A clippy::assertions-on-constants


Expand Down
2 changes: 2 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ description = "library for working with NTFS junctions"

[features]
default = ["unstable_admin"]
# # Unstable flag
#
# Flag for trying out new rust language features
nightly = []
# # Unstable flag
Expand Down

0 comments on commit ab9d576

Please sign in to comment.