@@ -25,59 +25,41 @@ jobs:
2525 fail-fast : false
2626 matrix :
2727 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" }
4832 steps :
4933 - uses : actions/checkout@v4
5034
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
5337
54- - name : ' 🛠️ Activate Developer Command Prompt'
38+ - name : " 🛠️ Activate Developer Command Prompt"
5539 if : contains(matrix.config.os, 'win')
5640 uses : ilammy/msvc-dev-cmd@v1
5741 with :
5842 arch : ${{ matrix.config.arch }}
5943
60- - name : ' 🛠️ Win build dependencies'
44+ - name : " 🛠️ Win build dependencies"
6145 if : contains(matrix.config.os, 'win')
6246 shell : bash
6347 run : |
6448 choco install ninja
6549
66- - name : ' 🛠️ macOS build dependencies'
50+ - name : " 🛠️ macOS build dependencies"
6751 if : contains(matrix.config.os, 'macOS')
6852 shell : bash
6953 run : |
7054 brew install ninja
7155
72- - name : ' 🚧 Cargo test'
56+ - name : " 🚧 Cargo test"
7357 if : " !startsWith(github.ref, 'refs/tags')"
7458 run : |
7559 cargo test
7660
77- - name : ' 📦 Cargo Publish '
61+ - name : Publish crates to Crates.io
7862 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