Skip to content

Commit 9a977eb

Browse files
committed
update cd
1 parent 34ed67a commit 9a977eb

File tree

1 file changed

+6
-19
lines changed

1 file changed

+6
-19
lines changed

.github/workflows/cd.yml

Lines changed: 6 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -29,19 +29,12 @@ jobs:
2929
# binary_postfix: ".exe"
3030

3131
steps:
32-
- name: Installing Rust toolchain
33-
uses: actions-rs/toolchain@v1
32+
- uses: dtolnay/rust-toolchain@master
3433
with:
3534
toolchain: ${{ matrix.rust }}
36-
override: true
37-
- name: Checkout repository
38-
uses: actions/checkout@v2
39-
- name: Cargo build
40-
uses: actions-rs/cargo@v1
41-
with:
42-
command: build
43-
toolchain: ${{ matrix.rust }}
44-
args: --release --target ${{ matrix.target }}
35+
targets: "x86_64-apple-darwin, x86_64-unknown-linux-gnu, x86_64-pc-windows-msvc"
36+
- uses: actions/checkout@v2
37+
- run: cargo build --release --target ${{ matrix.target }}
4538

4639
- name: Packaging final binary
4740
shell: bash
@@ -69,11 +62,5 @@ jobs:
6962
runs-on: ubuntu-latest
7063
steps:
7164
- uses: actions/checkout@master
72-
- uses: actions-rs/toolchain@v1
73-
with:
74-
toolchain: stable
75-
override: true
76-
- uses: actions-rs/cargo@v1
77-
with:
78-
command: publish
79-
args: --token ${{ secrets.CARGO_API_KEY }} --allow-dirty
65+
- uses: dtolnay/rust-toolchain@stable
66+
- run: cargo publish --token ${{ secrets.CARGO_API_KEY }} --allow-dirty

0 commit comments

Comments
 (0)