@@ -25,59 +25,41 @@ jobs:
25
25
fail-fast : false
26
26
matrix :
27
27
config :
28
- - {
29
- os : windows-2022,
30
- arch : x64,
31
- name : ' Windows x86_64'
32
- }
33
- - {
34
- os : windows-2022,
35
- arch : x86,
36
- name : ' Windows x86'
37
- }
38
- - {
39
- os : ubuntu-latest,
40
- arch : x64,
41
- name : ' Ubuntu x86_64'
42
- }
43
- - {
44
- os : macos-latest,
45
- arch : x64,
46
- name : ' macOS x86_64'
47
- }
28
+ - { os: windows-2022, arch: x64, name: "Windows x86_64" }
29
+ - { os: windows-2022, arch: x86, name: "Windows x86" }
30
+ - { os: ubuntu-latest, arch: x64, name: "Ubuntu x86_64" }
31
+ - { os: macos-latest, arch: x64, name: "macOS x86_64" }
48
32
steps :
49
33
- uses : actions/checkout@v4
50
34
51
- - name : ' 🛠️ Set up Rust'
52
- uses : dtolnay/ rust-toolchain@stable
35
+ - name : Set up Rust
36
+ uses : actions-rust-lang/setup- rust-toolchain@v1
53
37
54
- - name : ' 🛠️ Activate Developer Command Prompt'
38
+ - name : " 🛠️ Activate Developer Command Prompt"
55
39
if : contains(matrix.config.os, 'win')
56
40
uses : ilammy/msvc-dev-cmd@v1
57
41
with :
58
42
arch : ${{ matrix.config.arch }}
59
43
60
- - name : ' 🛠️ Win build dependencies'
44
+ - name : " 🛠️ Win build dependencies"
61
45
if : contains(matrix.config.os, 'win')
62
46
shell : bash
63
47
run : |
64
48
choco install ninja
65
49
66
- - name : ' 🛠️ macOS build dependencies'
50
+ - name : " 🛠️ macOS build dependencies"
67
51
if : contains(matrix.config.os, 'macOS')
68
52
shell : bash
69
53
run : |
70
54
brew install ninja
71
55
72
- - name : ' 🚧 Cargo test'
56
+ - name : " 🚧 Cargo test"
73
57
if : " !startsWith(github.ref, 'refs/tags')"
74
58
run : |
75
59
cargo test
76
60
77
- - name : ' 📦 Cargo Publish '
61
+ - name : Publish crates to Crates.io
78
62
if : startsWith(github.ref, 'refs/tags') && !startsWith(github.ref, 'refs/tags/v') && contains(matrix.config.os, 'ubuntu')
79
- env :
80
- TOKEN : ${{ secrets.cratesio_token }}
81
- UNICORN_VERSION : dev
82
- run : |
83
- cargo login $TOKEN && cargo test && cargo publish
63
+ uses : katyo/publish-crates@v2
64
+ with :
65
+ registry-token : ${{ secrets.cratesio_token }}
0 commit comments