Skip to content

Commit 61b79c6

Browse files
committed
devops: added publishing to crates.io & removed tests from building for release
1 parent 0af61c5 commit 61b79c6

File tree

2 files changed

+20
-6
lines changed

2 files changed

+20
-6
lines changed

.github/workflows/build-release.yml .github/workflows/build-for-release.yml

+4-6
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,12 @@ jobs:
2020
- os: ubuntu-latest
2121
target: x86_64-unknown-linux-gnu
2222
cross: false
23-
- os: windows-latest
23+
- os: ubuntu-latest
2424
target: x86_64-pc-windows-gnu
2525
cross: true
26+
- target: x86_64-pc-windows-msvc
27+
os: windows-latest
28+
cross: false
2629
- os: macos-latest
2730
target: x86_64-apple-darwin
2831
cross: false
@@ -48,11 +51,6 @@ jobs:
4851
use-cross: ${{matrix.cross}}
4952
command: build
5053
args: --target ${{matrix.target}} --release
51-
- name: Test
52-
uses: actions-rs/cargo@v1
53-
with:
54-
command: test
55-
args: --target ${{matrix.target}}
5654
- name: Archive production artifacts
5755
uses: actions/upload-artifact@v3
5856
with:

.github/workflows/publish.yml

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
name: Publish
2+
3+
on:
4+
release:
5+
types: [released]
6+
7+
env:
8+
CARGO_TERM_COLOR: always
9+
10+
jobs:
11+
publish:
12+
name: Publish to crates.io
13+
on: ubuntu-latest
14+
steps:
15+
- uses: actions/checkout@v3
16+
- run: cargo publish --token ${{secrets.CRATES_IO_TOKEN}}

0 commit comments

Comments
 (0)