File tree Expand file tree Collapse file tree 15 files changed +43
-141
lines changed Expand file tree Collapse file tree 15 files changed +43
-141
lines changed Original file line number Diff line number Diff line change @@ -34,13 +34,11 @@ jobs:
34
34
steps :
35
35
- uses : actions/checkout@v4
36
36
- name : install ${{ matrix.rust }}
37
- uses : actions-rs/ toolchain@v1
37
+ uses : dtolnay/rust- toolchain@master
38
38
with :
39
39
toolchain : ${{ matrix.rust }}
40
- override : true
41
- default : true
42
40
components : rust-src
43
- target : ${{ matrix.platform.target }}
41
+ targets : ${{ matrix.platform.target }}
44
42
45
43
- name : setup python
46
44
uses : actions/setup-python@v2
Original file line number Diff line number Diff line change 58
58
steps :
59
59
- uses : actions/checkout@v4
60
60
61
- - name : install stable
62
- uses : actions-rs/toolchain@v1
63
- with :
64
- toolchain : stable
65
- override : true
61
+ - uses : dtolnay/rust-toolchain@stable
66
62
67
63
- name : install Linux dependencies
68
64
run : |
74
70
workspaces : core -> ../target
75
71
76
72
- name : generate schema.json
77
- uses : actions-rs/cargo@v1
78
- with :
79
- command : build
80
- args : --manifest-path ./core/tauri-config-schema/Cargo.toml
73
+ run : cargo build --manifest-path ./core/tauri-config-schema/Cargo.toml
81
74
82
75
- name : check schema
83
76
run : ./.scripts/ci/has-diff.sh
Original file line number Diff line number Diff line change 22
22
- uses : actions/checkout@v4
23
23
with :
24
24
fetch-depth : 0
25
- - name : install stable
26
- uses : actions-rs/toolchain@v1
27
- with :
28
- toolchain : stable
25
+
26
+ - uses : dtolnay/rust-toolchain@stable
27
+
29
28
- name : install Linux dependencies
30
29
if : matrix.platform == 'ubuntu-22.04'
31
30
run : |
39
38
tooling/cli
40
39
41
40
- name : build CLI
42
- uses : actions-rs/cargo@v1
43
- with :
44
- command : build
45
- args : --manifest-path ./tooling/cli/Cargo.toml
41
+ run : cargo build --manifest-path ./tooling/cli/Cargo.toml
46
42
47
43
- name : run integration tests
48
44
run : cargo test --test '*' -- --ignored
Original file line number Diff line number Diff line change 19
19
- name : Checkout
20
20
uses : actions/checkout@v4
21
21
22
- - name : install stable
23
- uses : actions-rs/toolchain@v1
24
- with :
25
- toolchain : stable
22
+ - uses : dtolnay/rust-toolchain@stable
26
23
27
24
- name : install Linux dependencies
28
25
run : |
40
37
if-no-files-found : error
41
38
42
39
- name : build CLI
43
- uses : actions-rs/cargo@v1
44
- with :
45
- command : build
46
- args : --manifest-path ./tooling/cli/Cargo.toml
40
+ run : cargo build --manifest-path ./tooling/cli/Cargo.toml
47
41
48
42
- name : Upload CLI
49
43
uses : actions/upload-artifact@v4
66
60
- name : Checkout
67
61
uses : actions/checkout@v4
68
62
69
- - name : install stable
70
- uses : actions-rs/toolchain@v1
63
+ - uses : dtolnay/rust-toolchain@stable
71
64
with :
72
- toolchain : stable
73
- override : true
74
- default : true
75
- target : ${{ matrix.target.name }}
65
+ targets : ${{ matrix.target.name }}
76
66
77
67
- name : Setup node
78
68
uses : actions/setup-node@v4
Original file line number Diff line number Diff line change @@ -29,29 +29,21 @@ jobs:
29
29
steps :
30
30
- uses : actions/checkout@v4
31
31
32
- - uses : actions-rs/ toolchain@v1
32
+ - uses : dtolnay/rust- toolchain@stable
33
33
with :
34
- profile : minimal
35
- toolchain : stable
36
- override : true
37
34
components : rustfmt
38
35
39
- - uses : actions-rs/cargo@v1
40
- with :
41
- command : fmt
42
- args : --manifest-path ./tooling/cli/Cargo.toml --all -- --check
36
+ - name : Check formatting
37
+ run : cargo fmt --manifest-path ./tooling/cli/Cargo.toml --all -- --check
43
38
44
39
clippy :
45
40
runs-on : ubuntu-latest
46
41
47
42
steps :
48
43
- uses : actions/checkout@v4
49
44
50
- - uses : actions-rs/ toolchain@v1
45
+ - uses : dtolnay/rust- toolchain@stable
51
46
with :
52
- profile : minimal
53
- toolchain : stable
54
- override : true
55
47
components : clippy
56
48
57
49
- name : install dependencies
63
55
with :
64
56
workspaces : tooling/cli
65
57
66
- - uses : actions-rs/clippy-check@v1
67
- with :
68
- token : ${{ secrets.GITHUB_TOKEN }}
69
- args : --manifest-path ./tooling/cli/Cargo.toml --all-targets --all-features -- -D warnings
70
- name : cli
58
+ - name : Run clippy
59
+ run : cargo clippy --manifest-path ./tooling/cli/Cargo.toml --all-targets --all-features -- -D warnings
Original file line number Diff line number Diff line change @@ -31,17 +31,11 @@ jobs:
31
31
steps :
32
32
- uses : actions/checkout@v4
33
33
34
- - uses : actions-rs/ toolchain@v1
34
+ - uses : dtolnay/rust- toolchain@stable
35
35
with :
36
- profile : minimal
37
- toolchain : stable
38
- override : true
39
36
components : rustfmt
40
37
41
- - uses : actions-rs/cargo@v1
42
- with :
43
- command : fmt
44
- args : --all -- --check
38
+ - run : cargo fmt --all -- --check
45
39
46
40
clippy :
47
41
runs-on : ubuntu-22.04
@@ -64,20 +58,13 @@ jobs:
64
58
sudo apt-get update
65
59
sudo apt-get install -y webkit2gtk-4.0 libayatana-appindicator3-dev
66
60
67
- - uses : actions-rs/ toolchain@v1
61
+ - uses : dtolnay/rust- toolchain@stable
68
62
with :
69
- profile : minimal
70
- toolchain : stable
71
- override : true
72
63
components : clippy
73
64
74
65
- uses : Swatinem/rust-cache@v2
75
66
with :
76
67
workspaces : core -> ../target
77
68
save-if : ${{ matrix.clippy.key == 'all' }}
78
69
79
- - uses : actions-rs/clippy-check@v1
80
- with :
81
- token : ${{ secrets.GITHUB_TOKEN }}
82
- args : --manifest-path ./core/tauri/Cargo.toml --all-targets ${{ matrix.clippy.args }} -- -D warnings
83
- name : ${{ matrix.clippy.key }}
70
+ - run : cargo clippy --manifest-path ./core/tauri/Cargo.toml --all-targets ${{ matrix.clippy.args }} -- -D warnings
Original file line number Diff line number Diff line change @@ -101,14 +101,10 @@ jobs:
101
101
cache : yarn
102
102
cache-dependency-path : " tooling/cli/node/yarn.lock"
103
103
architecture : ${{ matrix.settings.architecture }}
104
- - name : Install
105
- uses : actions-rs/toolchain@v1
104
+ - uses : dtolnay/rust-toolchain@stable
106
105
if : ${{ !matrix.settings.docker }}
107
106
with :
108
- profile : minimal
109
- override : true
110
- toolchain : stable
111
- target : ${{ matrix.settings.target }}
107
+ targets : ${{ matrix.settings.target }}
112
108
- uses : Swatinem/rust-cache@v1
113
109
with :
114
110
key : ${{ matrix.settings.target }}
Original file line number Diff line number Diff line change 59
59
sudo apt-get install -y libgtk-3-dev
60
60
61
61
- name : Build CLI
62
- uses : actions-rs/cargo@v1
63
- with :
64
- command : build
65
- args : --manifest-path ./tooling/cli/Cargo.toml --release ${{ matrix.config.args }}
62
+ run : cargo build --manifest-path ./tooling/cli/Cargo.toml --release ${{ matrix.config.args }}
66
63
67
64
- name : Upload CLI
68
65
uses : actions/upload-artifact@v4
Original file line number Diff line number Diff line change 36
36
- uses : actions/checkout@v4
37
37
38
38
- name : install Rust stable
39
- uses : actions-rs/toolchain@v1
40
- with :
41
- toolchain : 1.71
42
- override : true
39
+
40
+
43
41
- name : setup node
44
42
uses : actions/setup-node@v4
45
43
with :
Original file line number Diff line number Diff line change 35
35
- uses : actions/checkout@v4
36
36
37
37
- name : install stable
38
- uses : actions-rs/toolchain@v1
39
- with :
40
- toolchain : 1.71.0
41
- override : true
38
+
42
39
43
40
- name : install Linux dependencies
44
41
if : matrix.platform == 'ubuntu-latest'
51
48
workspaces : tooling/cli
52
49
53
50
- name : test CLI
54
- uses : actions-rs/cargo@v1
55
- with :
56
- command : test
57
- args : --manifest-path ./tooling/cli/Cargo.toml
51
+ run : cargo test --manifest-path ./tooling/cli/Cargo.toml
Original file line number Diff line number Diff line change @@ -65,13 +65,10 @@ jobs:
65
65
steps :
66
66
- uses : actions/checkout@v4
67
67
68
- - name : install stable
69
- uses : actions-rs/toolchain@v1
68
+ - uses : dtolnay/rust-toolchain@stable
70
69
with :
71
70
toolchain : ${{ matrix.platform.toolchain }}
72
- target : ${{ matrix.platform.target }}
73
- override : true
74
- default : true
71
+ targets : ${{ matrix.platform.target }}
75
72
76
73
- name : install Linux dependencies
77
74
if : contains(matrix.platform.target, 'unknown-linux')
Original file line number Diff line number Diff line change 34
34
steps :
35
35
- uses : actions/checkout@v4
36
36
37
- - name : install stable
38
- uses : actions-rs/toolchain@v1
39
- with :
40
- toolchain : stable
37
+ - uses : dtolnay/rust-toolchain@stable
41
38
42
39
- uses : Swatinem/rust-cache@v2
43
40
with :
@@ -54,17 +51,11 @@ jobs:
54
51
steps :
55
52
- uses : actions/checkout@v4
56
53
57
- - uses : actions-rs/ toolchain@v1
54
+ - uses : dtolnay/rust- toolchain@stable
58
55
with :
59
- profile : minimal
60
- toolchain : stable
61
- override : true
62
56
components : rustfmt
63
57
64
- - uses : actions-rs/cargo@v1
65
- with :
66
- command : fmt
67
- args : --manifest-path ./tooling/bundler/Cargo.toml --all -- --check
58
+ - run : cargo fmt --manifest-path ./tooling/bundler/Cargo.toml --all -- --check
68
59
69
60
clippy :
70
61
runs-on : ubuntu-22.04
@@ -73,21 +64,13 @@ jobs:
73
64
- uses : actions/checkout@v4
74
65
75
66
- name : install minimal stable with clippy and rustfmt
76
- uses : actions-rs/ toolchain@v1
67
+ uses : dtolnay/rust- toolchain@stable
77
68
with :
78
- profile : minimal
79
- toolchain : stable
80
- override : true
81
- default : true
82
69
components : rustfmt, clippy
83
70
84
71
- uses : Swatinem/rust-cache@v2
85
72
with :
86
73
workspaces : tooling/bundler
87
74
88
75
- name : clippy check
89
- uses : actions-rs/clippy-check@v1
90
- with :
91
- token : ${{ secrets.GITHUB_TOKEN }}
92
- args : --manifest-path ./tooling/bundler/Cargo.toml --all-targets -- -D warnings
93
- name : bundler
76
+ run : cargo clippy --manifest-path ./tooling/bundler/Cargo.toml --all-targets -- -D warnings
Original file line number Diff line number Diff line change 31
31
32
32
steps :
33
33
- uses : actions/checkout@v4
34
- - name : install stable
35
- uses : actions-rs/toolchain@v1
36
- with :
37
- toolchain : stable
34
+
35
+ - uses : dtolnay/rust-toolchain@stable
38
36
39
37
- name : install Linux dependencies
40
38
if : matrix.platform == 'ubuntu-22.04'
Original file line number Diff line number Diff line change 74
74
steps :
75
75
- uses : actions/checkout@v4
76
76
77
- - uses : actions-rs/toolchain@v1
78
- with :
79
- profile : minimal
80
- toolchain : nightly
81
- override : true
77
+ - uses : dtolnay/rust-toolchain@nightly
82
78
83
- - uses : actions-rs/cargo@v1
84
- with :
85
- command : install
86
- args : cargo-udeps --locked --force
79
+ - run : cargo install cargo-udeps --locked --force
87
80
88
81
- name : Upload udeps
89
82
uses : actions/upload-artifact@v4
@@ -128,11 +121,7 @@ jobs:
128
121
steps :
129
122
- uses : actions/checkout@v4
130
123
131
- - uses : actions-rs/toolchain@v1
132
- with :
133
- profile : minimal
134
- toolchain : nightly
135
- override : true
124
+ - uses : dtolnay/rust-toolchain@nightly
136
125
137
126
- name : install dependencies
138
127
run : |
@@ -159,7 +148,4 @@ jobs:
159
148
sudo apt-get update
160
149
sudo apt-get install -y webkit2gtk-4.0 libayatana-appindicator3-dev
161
150
162
- - uses : actions-rs/cargo@v1
163
- with :
164
- command : udeps
165
- args : --manifest-path ${{ matrix.path }}/Cargo.toml --all-targets --all-features
151
+ - run : cargo udeps --manifest-path ${{ matrix.path }}/Cargo.toml --all-targets --all-features
Original file line number Diff line number Diff line change @@ -46,7 +46,7 @@ const MIN_JSON_PARSE_LEN: usize = 10_240;
46
46
///
47
47
/// 1. `serde_json`'s ability to correctly escape and format json into a string.
48
48
/// 2. JavaScript engines not accepting anything except another unescaped, literal single quote
49
- /// character to end a string that was opened with it.
49
+ /// character to end a string that was opened with it.
50
50
///
51
51
/// # Examples
52
52
///
You can’t perform that action at this time.
0 commit comments