File tree Expand file tree Collapse file tree 4 files changed +16
-39
lines changed Expand file tree Collapse file tree 4 files changed +16
-39
lines changed Original file line number Diff line number Diff line change 51
51
# Starts the server in background
52
52
python ./css-inline/tests/server.py &
53
53
54
- - uses : actions-rs/toolchain@v1
55
- with :
56
- profile : minimal
57
- toolchain : stable
58
- override : true
54
+ - uses : dtolnay/rust-toolchain@stable
59
55
60
56
- uses : Swatinem/rust-cache@v2
61
57
with :
Original file line number Diff line number Diff line change 26
26
with :
27
27
python-version : ${{ env.PYTHON_VERSION }}
28
28
architecture : x64
29
- - name : Install Rust toolchain
30
- uses : actions-rs/toolchain@v1
31
- with :
32
- toolchain : stable
33
- profile : minimal
34
- default : true
29
+ - uses : dtolnay/rust-toolchain@stable
35
30
- name : Build sdist
36
31
uses : messense/maturin-action@v1
37
32
with :
54
49
with :
55
50
python-version : ${{ env.PYTHON_VERSION }}
56
51
architecture : x64
57
- - name : Install Rust toolchain
58
- uses : actions-rs/toolchain@v1
59
- with :
60
- toolchain : stable
61
- profile : minimal
62
- default : true
52
+ - uses : dtolnay/rust-toolchain@stable
63
53
- name : Build wheels - x86_64
64
54
uses : messense/maturin-action@v1
65
55
with :
82
72
with :
83
73
python-version : ${{ env.PYTHON_VERSION }}
84
74
architecture : x64
85
- - name : Install Rust toolchain
86
- uses : actions-rs/toolchain@v1
87
- with :
88
- toolchain : stable
89
- profile : minimal
90
- default : true
75
+ - uses : dtolnay/rust-toolchain@stable
91
76
- name : Build wheels - universal2
92
77
uses : messense/maturin-action@v1
93
78
with :
@@ -112,12 +97,7 @@ jobs:
112
97
with :
113
98
python-version : ${{ env.PYTHON_VERSION }}
114
99
architecture : ${{ matrix.target }}
115
- - name : Install Rust toolchain
116
- uses : actions-rs/toolchain@v1
117
- with :
118
- toolchain : stable
119
- profile : minimal
120
- default : true
100
+ - uses : dtolnay/rust-toolchain@stable
121
101
- name : Build wheels
122
102
uses : messense/maturin-action@v1
123
103
with :
Original file line number Diff line number Diff line change @@ -10,12 +10,11 @@ jobs:
10
10
runs-on : ubuntu-22.04
11
11
steps :
12
12
- uses : actions/checkout@v3
13
- - uses : actions-rs/toolchain@v1
14
- with :
15
- profile : minimal
16
- toolchain : stable
17
- override : true
13
+
14
+ - uses : dtolnay/rust-toolchain@stable
15
+
18
16
- run : cargo login ${CRATES_IO_TOKEN}
19
17
env :
20
18
CRATES_IO_TOKEN : ${{ secrets.CRATES_IO_TOKEN }}
19
+
21
20
- run : cargo publish --manifest-path css-inline/Cargo.toml
Original file line number Diff line number Diff line change @@ -10,27 +10,29 @@ jobs:
10
10
runs-on : ubuntu-22.04
11
11
steps :
12
12
- uses : actions/checkout@v3
13
- - uses : actions-rs/toolchain@v1
14
- with :
15
- profile : minimal
16
- toolchain : stable
17
- override : true
13
+
14
+ - uses : dtolnay/rust-toolchain@stable
15
+
18
16
- name : Install wasm-pack
19
17
uses : actions-rs/cargo@v1
20
18
with :
21
19
command : install
22
20
args : wasm-pack
21
+
23
22
- name : Build package
24
23
run : wasm-pack build --release --target nodejs
25
24
working-directory : ./bindings/wasm
25
+
26
26
- name : Fix package name
27
27
# wasm-pack generates the package name from the crate name.
28
28
# Since the original Rust crate has this name (`css-inline`), the WASM crate has `css-inline-wasm` to
29
29
# avoid conflicts during the build. The easiest way to handle it is to rename it inside the package.json file.
30
30
run : sed -i 's/css-inline-wasm/css-inline/' pkg/package.json
31
31
working-directory : ./bindings/wasm
32
+
32
33
- run : npm config set '//registry.npmjs.org/:_authToken' "${NPM_AUTH_TOKEN}"
33
34
env :
34
35
NPM_AUTH_TOKEN : ${{ secrets.NPM_AUTH_TOKEN }}
36
+
35
37
- run : npm publish --access public
36
38
working-directory : ./bindings/wasm/pkg
You can’t perform that action at this time.
0 commit comments