Skip to content

Commit a5f284b

Browse files
authored
Override toolchain to 1.65. (#107)
1 parent 4d253d5 commit a5f284b

File tree

3 files changed

+13
-18
lines changed

3 files changed

+13
-18
lines changed

.github/workflows/ci.yml

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -96,20 +96,11 @@ jobs:
9696
uses: actions-rs/toolchain@v1
9797
with:
9898
toolchain: nightly
99-
override: true
10099
components: rustfmt
101100

102-
- name: Install Rust Stable
103-
uses: actions-rs/toolchain@v1
104-
with:
105-
toolchain: stable
106-
override: true
107-
components: clippy
108-
109101
- name: Cargo generate lockfile
110102
uses: actions-rs/cargo@v1
111103
with:
112-
toolchain: stable
113104
command: generate-lockfile
114105

115106
- name: Setup cargo cache
@@ -133,21 +124,18 @@ jobs:
133124
- name: Cargo clippy
134125
uses: actions-rs/cargo@v1
135126
with:
136-
toolchain: stable
137127
command: clippy
138128
args: --release
139129

140130
- name: Cargo build
141131
uses: actions-rs/cargo@v1
142132
with:
143-
toolchain: stable
144133
command: build
145134
args: --release
146135

147136
- name: Cargo test
148137
uses: actions-rs/cargo@v1
149138
with:
150-
toolchain: stable
151139
command: test
152140
args: --release -- --nocapture
153141

.github/workflows/publish.yml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -40,12 +40,6 @@ jobs:
4040
php-version: 7.4
4141
tools: php-config
4242

43-
- name: Install Rust Stable
44-
uses: actions-rs/toolchain@v1
45-
with:
46-
toolchain: stable
47-
override: true
48-
4943
- name: Cargo publish phper-sys
5044
uses: actions-rs/cargo@v1
5145
with:

rust-toolchain.toml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# Copyright (c) 2022 PHPER Framework Team
2+
# PHPER is licensed under Mulan PSL v2.
3+
# You can use this software according to the terms and conditions of the Mulan
4+
# PSL v2. You may obtain a copy of Mulan PSL v2 at:
5+
# http://license.coscl.org.cn/MulanPSL2
6+
# THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY
7+
# KIND, EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
8+
# NON-INFRINGEMENT, MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
9+
# See the Mulan PSL v2 for more details.
10+
11+
[toolchain]
12+
channel = "1.65"
13+
components = ["clippy", "rustfmt"]

0 commit comments

Comments
 (0)