Remove deprecated actions-rs/toolchain (#1874)
This commit is contained in:
parent
eb8227744e
commit
77e7cfe763
19
.github/workflows/ci.yaml
vendored
19
.github/workflows/ci.yaml
vendored
@ -22,12 +22,6 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Install Rust Toolchain Components
|
|
||||||
uses: actions-rs/toolchain@v1
|
|
||||||
with:
|
|
||||||
components: clippy, rustfmt
|
|
||||||
toolchain: stable
|
|
||||||
|
|
||||||
- uses: Swatinem/rust-cache@v2
|
- uses: Swatinem/rust-cache@v2
|
||||||
|
|
||||||
- name: Clippy
|
- name: Clippy
|
||||||
@ -59,12 +53,6 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Install Rust Toolchain Components
|
|
||||||
uses: actions-rs/toolchain@v1
|
|
||||||
with:
|
|
||||||
profile: minimal
|
|
||||||
toolchain: stable
|
|
||||||
|
|
||||||
- uses: Swatinem/rust-cache@v2
|
- uses: Swatinem/rust-cache@v2
|
||||||
|
|
||||||
- name: Install `mdbook`
|
- name: Install `mdbook`
|
||||||
@ -118,13 +106,6 @@ jobs:
|
|||||||
icacls C:\Windows\System32\bash.exe /grant administrators:F
|
icacls C:\Windows\System32\bash.exe /grant administrators:F
|
||||||
del C:\Windows\System32\bash.exe
|
del C:\Windows\System32\bash.exe
|
||||||
|
|
||||||
- name: Install Rust Toolchain Components
|
|
||||||
uses: actions-rs/toolchain@v1
|
|
||||||
with:
|
|
||||||
components: clippy, rustfmt
|
|
||||||
override: true
|
|
||||||
toolchain: stable
|
|
||||||
|
|
||||||
- uses: Swatinem/rust-cache@v2
|
- uses: Swatinem/rust-cache@v2
|
||||||
|
|
||||||
- name: Test
|
- name: Test
|
||||||
|
7
.github/workflows/release.yaml
vendored
7
.github/workflows/release.yaml
vendored
@ -49,13 +49,6 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Install Rust Toolchain Components
|
|
||||||
uses: actions-rs/toolchain@v1
|
|
||||||
with:
|
|
||||||
profile: minimal
|
|
||||||
target: ${{ matrix.target }}
|
|
||||||
toolchain: stable
|
|
||||||
|
|
||||||
- name: Install AArch64 Toolchain
|
- name: Install AArch64 Toolchain
|
||||||
if: ${{ matrix.target == 'aarch64-unknown-linux-musl' }}
|
if: ${{ matrix.target == 'aarch64-unknown-linux-musl' }}
|
||||||
run: |
|
run: |
|
||||||
|
@ -9,6 +9,9 @@ echo "Packaging just $VERSION for $TARGET..."
|
|||||||
|
|
||||||
test -f Cargo.lock || cargo generate-lockfile
|
test -f Cargo.lock || cargo generate-lockfile
|
||||||
|
|
||||||
|
echo "Installing rust toolchain for $TARGET..."
|
||||||
|
rustup target add $TARGET
|
||||||
|
|
||||||
echo "Building just..."
|
echo "Building just..."
|
||||||
RUSTFLAGS="--deny warnings --codegen target-feature=+crt-static $TARGET_RUSTFLAGS" \
|
RUSTFLAGS="--deny warnings --codegen target-feature=+crt-static $TARGET_RUSTFLAGS" \
|
||||||
cargo build --bin just --target $TARGET --release
|
cargo build --bin just --target $TARGET --release
|
||||||
|
Loading…
Reference in New Issue
Block a user