-
Notifications
You must be signed in to change notification settings - Fork 0
72 lines (58 loc) · 1.6 KB
/
publish.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
name: publish
on:
push:
tags:
- "v*.*.*"
jobs:
test:
name: test
runs-on: ${{ matrix.runs-on }}
strategy:
fail-fast: false
matrix:
runs-on:
- ubuntu-22.04
- ubuntu-24.04
- macos-14
steps:
- name: checkout code
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
- name: setup rust
run: rustc --version
- name: build
run: cargo build --verbose --features all,all-addons
- name: build in release
run: cargo build --release --verbose --features all,all-addons
- name: test
run: cargo test --verbose --features all,all-addons
- name: test in release
run: cargo test --release --verbose --features all,all-addons
clippy:
uses: ./.github/workflows/clippy.yml
feature-check:
uses: ./.github/workflows/feature-check.yml
verify-gen-features:
uses: ./.github/workflows/verify-gen-features.yml
publish:
name: publish crate
runs-on: macos-14
needs:
- test
- feature-check
- verify-gen-features
# TODO enable when existing warnings have been cleared
# - clippy
steps:
- name: checkout code
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
- name: setup rust
run: rustc --version
- name: publish macro crate
working-directory: macro
run: cargo publish --verbose
env:
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
- name: publish
run: cargo publish --verbose
env:
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}