From 0eb4fd7448b3144352753ee64fc70bea5659ca31 Mon Sep 17 00:00:00 2001 From: Lzu Tao Date: Wed, 1 May 2024 22:34:38 +0700 Subject: [PATCH 01/20] Migrate to 2021 edition --- Cargo.toml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index fd6a592c..65bfe230 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -3,8 +3,7 @@ name = "junction" version = "1.1.0" # Also update `html_root_url` in lib.rs authors = ["Lzu Tao "] categories = ["api-bindings", "os::windows-apis"] -documentation = "https://docs.rs/junction/*/x86_64-pc-windows-msvc/junction/" -edition = "2018" # edition 2021 released in 1.56.0 +edition = "2021" rust-version = "1.56" exclude = [ "/.github", @@ -13,7 +12,7 @@ exclude = [ keywords = ["junction", "symlink"] license = "MIT" readme = "README.md" -repository = "https://github.com/lzutao/junction" +repository = "https://github.com/tesuji/junction" description = "library for working with NTFS junctions" [features] From 5badf2f409f27e16c9ccd9b54db275a3ca8986c1 Mon Sep 17 00:00:00 2001 From: Lzu Tao Date: Sun, 12 May 2024 09:26:15 +0700 Subject: [PATCH 02/20] fixup! Migrate to 2021 edition --- src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib.rs b/src/lib.rs index fa518329..23951c5a 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -12,7 +12,7 @@ an application accessing `D:\SYMLINK\DRIVERS` would in reality be accessing */ #![doc(html_root_url = "https://docs.rs/junction/~1")] #![cfg(windows)] -#![deny(rust_2018_idioms)] +#![deny(rust_2021_idioms)] mod internals; From 27e99c9fe055e67fd5884446e463d38a54cd7471 Mon Sep 17 00:00:00 2001 From: Lzu Tao Date: Sun, 12 May 2024 09:29:43 +0700 Subject: [PATCH 03/20] bupmp actions checkout to v4 --- .github/workflows/ci.yml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 5d8f88b6..35fc6b15 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -26,7 +26,7 @@ jobs: archive: i686-6.3.0-release-posix-dwarf-rt_v5-rev2.7z mingw_dir: mingw32 steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - run: | rustup toolchain install stable-${{ matrix.target }} rustup default stable-${{ matrix.target }} @@ -71,7 +71,7 @@ jobs: # add_of_mut! requires for soundness MSRV: 1.56.0 steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - run: | rustup toolchain install ${{ env.MSRV }} rustup default ${{ env.MSRV }} @@ -84,7 +84,7 @@ jobs: rustfmt: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - run: cargo fmt -- --check rustdoc: @@ -98,7 +98,7 @@ jobs: run: | git config --global core.autocrlf false git config --global core.eol lf - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - run: | rustup toolchain install nightly rustup default nightly @@ -129,7 +129,7 @@ jobs: env: CARGO_REGISTRIES_CRATES_IO_PROTOCOL: sparse steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - run: | rustup toolchain install nightly -c clippy rustup default nightly @@ -146,10 +146,10 @@ jobs: MSRV: nightly-2021-08-20 WIN_TARGET: x86_64-pc-windows-gnu steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: path: junction - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: repository: sslab-gatech/Rudra path: Rudra From 47ebd9acf2d264744fa22242d0dc0975da12ca08 Mon Sep 17 00:00:00 2001 From: Lzu Tao Date: Sun, 12 May 2024 09:45:34 +0700 Subject: [PATCH 04/20] ci: env cargo sparse only once --- .github/workflows/ci.yml | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 35fc6b15..933efa59 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -7,12 +7,15 @@ on: - '!gh-pages' pull_request: +# rust 1.68 +env: + CARGO_REGISTRIES_CRATES_IO_PROTOCOL: sparse + jobs: build: runs-on: windows-latest env: RUST_BACKTRACE: 1 - CARGO_REGISTRIES_CRATES_IO_PROTOCOL: sparse MINGW_URL: https://ci-mirrors.rust-lang.org/rustc MIRIFLAGS: -Zmiri-disable-isolation strategy: @@ -67,7 +70,6 @@ jobs: runs-on: windows-latest # needs: [build] env: - CARGO_REGISTRIES_CRATES_IO_PROTOCOL: sparse # add_of_mut! requires for soundness MSRV: 1.56.0 steps: @@ -126,8 +128,6 @@ jobs: clippy: runs-on: windows-latest needs: [build] - env: - CARGO_REGISTRIES_CRATES_IO_PROTOCOL: sparse steps: - uses: actions/checkout@v4 - run: | @@ -142,7 +142,6 @@ jobs: if: false runs-on: ubuntu-latest env: - CARGO_REGISTRIES_CRATES_IO_PROTOCOL: sparse MSRV: nightly-2021-08-20 WIN_TARGET: x86_64-pc-windows-gnu steps: From 981c4c35761e2a1faedf74c98b85652ca7e9a5cf Mon Sep 17 00:00:00 2001 From: Lzu Tao Date: Sun, 12 May 2024 10:07:06 +0700 Subject: [PATCH 05/20] ci: windows ci: no self update --- .github/workflows/ci.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 933efa59..7d388507 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -31,7 +31,7 @@ jobs: steps: - uses: actions/checkout@v4 - run: | - rustup toolchain install stable-${{ matrix.target }} + rustup toolchain install --no-self-update stable-${{ matrix.target }} rustup default stable-${{ matrix.target }} - name: Check out MinGW toolchain run: | @@ -75,7 +75,7 @@ jobs: steps: - uses: actions/checkout@v4 - run: | - rustup toolchain install ${{ env.MSRV }} + rustup toolchain install --no-self-update ${{ env.MSRV }} rustup default ${{ env.MSRV }} - run: | rustup run stable cargo generate-lockfile @@ -102,7 +102,7 @@ jobs: git config --global core.eol lf - uses: actions/checkout@v4 - run: | - rustup toolchain install nightly + rustup toolchain install --no-self-update nightly rustup default nightly - run: cargo doc --all --no-deps # --document-private-items - run: echo '' > target/doc/index.html @@ -131,7 +131,7 @@ jobs: steps: - uses: actions/checkout@v4 - run: | - rustup toolchain install nightly -c clippy + rustup toolchain install --no-self-update nightly -c clippy rustup default nightly - run: cargo clippy --all-targets --all-features -- -Dwarnings -A clippy::assertions-on-constants @@ -156,7 +156,7 @@ jobs: shell: bash run: | # Toolchain setup - rustup toolchain install ${{ env.MSRV }} -c rustc-dev -c miri + rustup toolchain install --no-self-update ${{ env.MSRV }} -c rustc-dev -c miri rustup default ${{ env.MSRV }} rustup target add ${{ env.WIN_TARGET }} From 1ca4894debc7907ca46257798393943ff8b62fb8 Mon Sep 17 00:00:00 2001 From: Lzu Tao Date: Sun, 12 May 2024 10:08:42 +0700 Subject: [PATCH 06/20] deny 2021 compability lints --- src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib.rs b/src/lib.rs index 23951c5a..8552d9b6 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -12,7 +12,7 @@ an application accessing `D:\SYMLINK\DRIVERS` would in reality be accessing */ #![doc(html_root_url = "https://docs.rs/junction/~1")] #![cfg(windows)] -#![deny(rust_2021_idioms)] +#![deny(rust_2021_compatibility)] mod internals; From 6f83d98405ae21646bbad714f295696bcdc84316 Mon Sep 17 00:00:00 2001 From: Lzu Tao Date: Sun, 12 May 2024 11:30:24 +0700 Subject: [PATCH 07/20] ci: use actions/deploy pages --- .github/workflows/ci.yml | 47 +++++++++++++++++++++------------------- 1 file changed, 25 insertions(+), 22 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 7d388507..a10ebee3 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -91,10 +91,6 @@ jobs: rustdoc: runs-on: windows-latest - env: - CARGO_REGISTRIES_CRATES_IO_PROTOCOL: sparse - if: github.event_name != 'pull_request' && github.event.ref == 'refs/heads/master' - needs: [build] steps: - name: Before checking out source and change \n -> \r\n run: | @@ -106,24 +102,31 @@ jobs: rustup default nightly - run: cargo doc --all --no-deps # --document-private-items - run: echo '' > target/doc/index.html - - name: Commit docs to gh-pages branch - working-directory: target/doc - run: | - # Bypassing Jekyll on GitHub Pages - touch .nojekyll - REV=$(git rev-parse --short HEAD) - git init - git config user.name "Actions" - git config user.email "" - git add -A . - # git add --renormalize . - git commit -qm "Documentation for ${{github.repository}}@${REV}" - shell: bash - - name: Push gh-pages to GitHub - working-directory: target/doc - run: | - git remote add upstream https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }} - git push -q upstream HEAD:gh-pages --force + - name: Upload artifact + uses: actions/upload-pages-artifact@v3 + with: + name: github-pages + path: target/doc + retention-days: 1 + + deploy: + if: github.event_name != 'pull_request' && github.event.ref == 'refs/heads/master' + # Grant GITHUB_TOKEN the permissions required to make a Pages deployment + permissions: + pages: write # to deploy to Pages + id-token: write # to verify the deployment originates from an appropriate source + # Deploy to the github-pages environment + # environment: + # name: github-pages + # url: ${{ steps.deployment.outputs.page_url }} + needs: [rustdoc] + runs-on: ubuntu-latest + steps: + - name: Deploy to GitHub Pages + id: deployment + uses: actions/deploy-pages@v4 + with: + artifact_name: github-pages clippy: runs-on: windows-latest From 96156d1f7fe0b3fb193a36b1f3f8454740e46be8 Mon Sep 17 00:00:00 2001 From: Lzu Tao Date: Sun, 12 May 2024 19:39:52 +0700 Subject: [PATCH 08/20] simplifying const asserts --- src/internals/c.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/internals/c.rs b/src/internals/c.rs index 30deb605..7ddfc798 100644 --- a/src/internals/c.rs +++ b/src/internals/c.rs @@ -36,8 +36,8 @@ const _: () = { let std_layout = Layout::new::(); let win_sys_layout = Layout::new::(); // MSVR(Rust v1.57): use assert! instead - [(); 1][!(std_layout.size() == win_sys_layout.size()) as usize]; - [(); 1][!(std_layout.align() == win_sys_layout.align()) as usize]; + [(); 1][std_layout.size() - win_sys_layout.size()]; + [(); 1][std_layout.align() - win_sys_layout.align()]; }; // NOTE: to use `size_of` operator, below structs should be packed. From 7c5b15eb418a27f0d67988e5365e64f6c34172d4 Mon Sep 17 00:00:00 2001 From: Lzu Tao Date: Sun, 12 May 2024 19:53:56 +0700 Subject: [PATCH 09/20] ci: fetch before build --- .github/workflows/ci.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a10ebee3..c05f5d6c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -42,6 +42,7 @@ jobs: 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 - run: cargo build --all-targets From ae15b6c77e5cddc9726f53903fbd8c6450be6a22 Mon Sep 17 00:00:00 2001 From: Lzu Tao Date: Sun, 12 May 2024 19:54:23 +0700 Subject: [PATCH 10/20] ci: pages: rm unused parts --- .github/workflows/ci.yml | 8 -------- 1 file changed, 8 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c05f5d6c..de9a8bef 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -106,7 +106,6 @@ jobs: - name: Upload artifact uses: actions/upload-pages-artifact@v3 with: - name: github-pages path: target/doc retention-days: 1 @@ -116,18 +115,11 @@ jobs: permissions: pages: write # to deploy to Pages id-token: write # to verify the deployment originates from an appropriate source - # Deploy to the github-pages environment - # environment: - # name: github-pages - # url: ${{ steps.deployment.outputs.page_url }} needs: [rustdoc] runs-on: ubuntu-latest steps: - name: Deploy to GitHub Pages - id: deployment uses: actions/deploy-pages@v4 - with: - artifact_name: github-pages clippy: runs-on: windows-latest From 9fc82ec27721846b9621cb1525be4f24c5120572 Mon Sep 17 00:00:00 2001 From: Lzu Tao Date: Fri, 10 Mar 2023 21:29:41 +0700 Subject: [PATCH 11/20] try mira --- .github/workflows/ci.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index de9a8bef..5cc7ef99 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -13,6 +13,7 @@ env: jobs: build: + if: false runs-on: windows-latest env: RUST_BACKTRACE: 1 @@ -131,6 +132,29 @@ jobs: rustup default nightly - run: cargo clippy --all-targets --all-features -- -Dwarnings -A clippy::assertions-on-constants + mirai: + # if: false + runs-on: ubuntu-latest + env: + CARGO_REGISTRIES_CRATES_IO_PROTOCOL: sparse + MSRV: nightly + WIN_TARGET: x86_64-pc-windows-gnu + steps: + - uses: actions/checkout@v3 + with: + path: junction + - uses: actions/checkout@v3 + with: + repository: facebookexperimental/MIRAI + path: mirai + - name: setup + shell: bash + run: | + cargo install --locked --path ./checker + working-directory: mirai + - run: | + cargo mirai --target ${{ env.WIN_TARGET }} --all-targets # for crate compilation + working-directory: junction # Use static analyzer Rudra . # FIXME: Disable for now since it's very costly to run. From b6e3fb9af85f1f4ed94bd80be93fcfbbe1597972 Mon Sep 17 00:00:00 2001 From: Lzu Tao Date: Fri, 10 Mar 2023 21:33:36 +0700 Subject: [PATCH 12/20] rustup --- .github/workflows/ci.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 5cc7ef99..cafd362c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -147,9 +147,16 @@ jobs: with: repository: facebookexperimental/MIRAI path: mirai + - name: rustup + run: | + # Toolchain setup + rustup toolchain install ${{ env.MSRV }} -c rustc-dev -c miri + rustup default ${{ env.MSRV }} + rustup target add ${{ env.WIN_TARGET }} - name: setup shell: bash run: | + cargo fetch cargo install --locked --path ./checker working-directory: mirai - run: | From 8c944d6a1f6a1b90590f91f38fc5e3c3c5e849c6 Mon Sep 17 00:00:00 2001 From: Lzu Tao Date: Fri, 10 Mar 2023 21:40:17 +0700 Subject: [PATCH 13/20] false --- .github/workflows/ci.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index cafd362c..b8927ec8 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -69,6 +69,7 @@ jobs: shell: cmd msrv: + if: false runs-on: windows-latest # needs: [build] env: @@ -86,6 +87,7 @@ jobs: cargo build --locked rustfmt: + if: false runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 @@ -156,7 +158,7 @@ jobs: - name: setup shell: bash run: | - cargo fetch + cargo fetch --locked --path ./checker cargo install --locked --path ./checker working-directory: mirai - run: | From 1afd204f9485b00ef8f298b50dd01a99162cc63e Mon Sep 17 00:00:00 2001 From: Lzu Tao Date: Fri, 10 Mar 2023 21:56:57 +0700 Subject: [PATCH 14/20] upstream msvr --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b8927ec8..9fd1a5a0 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -139,7 +139,7 @@ jobs: runs-on: ubuntu-latest env: CARGO_REGISTRIES_CRATES_IO_PROTOCOL: sparse - MSRV: nightly + MSRV: nightly-2023-03-08 WIN_TARGET: x86_64-pc-windows-gnu steps: - uses: actions/checkout@v3 From d168e2115c0f2fa3445069eb2ff77b1a0ae2839a Mon Sep 17 00:00:00 2001 From: Lzu Tao Date: Fri, 10 Mar 2023 22:05:25 +0700 Subject: [PATCH 15/20] on windows --- .github/workflows/ci.yml | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 9fd1a5a0..c317a9c1 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -136,11 +136,10 @@ jobs: mirai: # if: false - runs-on: ubuntu-latest + runs-on: windows-latest env: CARGO_REGISTRIES_CRATES_IO_PROTOCOL: sparse MSRV: nightly-2023-03-08 - WIN_TARGET: x86_64-pc-windows-gnu steps: - uses: actions/checkout@v3 with: @@ -152,9 +151,8 @@ jobs: - name: rustup run: | # Toolchain setup - rustup toolchain install ${{ env.MSRV }} -c rustc-dev -c miri + rustup toolchain install ${{ env.MSRV }} -c rustc-dev rustup default ${{ env.MSRV }} - rustup target add ${{ env.WIN_TARGET }} - name: setup shell: bash run: | @@ -162,7 +160,7 @@ jobs: cargo install --locked --path ./checker working-directory: mirai - run: | - cargo mirai --target ${{ env.WIN_TARGET }} --all-targets # for crate compilation + cargo mirai --all-targets # for crate compilation working-directory: junction # Use static analyzer Rudra . From 13e598b7644c11468688a726a43059c1f0d83ce2 Mon Sep 17 00:00:00 2001 From: Lzu Tao Date: Fri, 10 Mar 2023 22:06:11 +0700 Subject: [PATCH 16/20] no fetch --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c317a9c1..b6b90c8f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -156,7 +156,7 @@ jobs: - name: setup shell: bash run: | - cargo fetch --locked --path ./checker + cargo fetch cargo install --locked --path ./checker working-directory: mirai - run: | From b1e4850bbe4485d5541edc4daa3582c9c8c20bb1 Mon Sep 17 00:00:00 2001 From: Lzu Tao Date: Tue, 14 May 2024 00:21:58 +0700 Subject: [PATCH 17/20] v4 --- .github/workflows/ci.yml | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b6b90c8f..74ea132d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -138,19 +138,17 @@ jobs: # if: false runs-on: windows-latest env: - CARGO_REGISTRIES_CRATES_IO_PROTOCOL: sparse - MSRV: nightly-2023-03-08 + MSRV: nightly-2023-09-10 steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: path: junction - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: repository: facebookexperimental/MIRAI path: mirai - name: rustup run: | - # Toolchain setup rustup toolchain install ${{ env.MSRV }} -c rustc-dev rustup default ${{ env.MSRV }} - name: setup From f0b1e51ed63b8004be1995206ec18e4b362873ca Mon Sep 17 00:00:00 2001 From: Lzu Tao Date: Tue, 14 May 2024 00:23:04 +0700 Subject: [PATCH 18/20] run --- .github/workflows/ci.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 74ea132d..ef82d0bf 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -152,14 +152,15 @@ jobs: rustup toolchain install ${{ env.MSRV }} -c rustc-dev rustup default ${{ env.MSRV }} - name: setup + working-directory: mirai shell: bash run: | cargo fetch cargo install --locked --path ./checker - working-directory: mirai - - run: | - cargo mirai --all-targets # for crate compilation + - name: mirai check working-directory: junction + run: | + cargo mirai --all-targets # for crate compilation # Use static analyzer Rudra . # FIXME: Disable for now since it's very costly to run. From ebb1b2ed79d9bda16a84c0e887d37d0ca7c78b64 Mon Sep 17 00:00:00 2001 From: Lzu Tao Date: Tue, 14 May 2024 00:23:58 +0700 Subject: [PATCH 19/20] badge main --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 37a76d00..caba1b86 100644 --- a/README.md +++ b/README.md @@ -39,7 +39,7 @@ Quoted from [Computer Hope](https://www.computerhope.com/jargon/j/junction.htm): All the code in this repository is released under the MIT License, for more information, please read COPYRIGHT file. -[actions-badge]: https://github.com/lzutao/junction/workflows/Rust/badge.svg?branchName=master +[actions-badge]: https://github.com/lzutao/junction/workflows/Rust/badge.svg?branchName=main [actions-url]: https://github.com/lzutao/junction/actions [junction]: https://learn.microsoft.com/en-us/windows/win32/fileio/hard-links-and-junctions#junctions [perm]: https://en.wikipedia.org/wiki/NTFS_links#Restrictions_and_drawbacks From 3fcf7a3a287f78ab6a88306f128854ae0b4cdfba Mon Sep 17 00:00:00 2001 From: Lzu Tao Date: Tue, 14 May 2024 00:27:06 +0700 Subject: [PATCH 20/20] no rustup --- .github/workflows/ci.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ef82d0bf..54ad8dbc 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -149,6 +149,7 @@ jobs: path: mirai - name: rustup run: | + rustup set auto-self-update disable rustup toolchain install ${{ env.MSRV }} -c rustc-dev rustup default ${{ env.MSRV }} - name: setup